Fonction SAP BAPI_MEDDOC_SETSTATUS - IS-H*MED: Set Document Status

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHECK_PMD_RELEASE BAPINALL-XIND C 1 'X' X Checkbox: Release: Are the Checks to Be Executed in PMD?
DOCUMENTDATA BAPIMEDDOC_DATA u 640 X Document Management Data - WITHOUT Multiple Mov,Service,Req
DOCUMENTNUMBER BAPIMEDDOC_DATA-DOCUMENTNUMBER C 25 Document Number
DOCUMENTPART BAPIMEDDOC_DATA-DOCUMENTPART C 3 Document Part
DOCUMENTTYPE BAPIMEDDOC_DATA-DOCUMENTTYPE C 3 Document Type
DOCUMENTVERSION BAPIMEDDOC_DATA-DOCUMENTVERSION C 2 Document Version
LOGFIELD BAPIMEDDOC_DATA-LOGFIELD C 20 X Document Management Log Field
SET_NEXT_STATUS BAPINALL-XIND C 1 SPACE X Checkbox: Set Next Status
SET_RELEASE_STATUS BAPINALL-XIND C 1 SPACE X Checkbox: Release Document
STATUSEXTERN BAPIMEDDOC_DATAIN-STATUSEXTERN C 2 X Status Abbreviation (Language-Dependent)
STATUSINTERN BAPIMEDDOC_DATA-STATUSINTERN C 2 X Internal Document Status
TESTRUN BAPINALL-TESTRUN C 1 SPACE X Checkbox: Test Run Without Database Modifications

Paramètre Reférence Type Long. Description
WORST_RETURNED_MSGTY BAPINALL-WORSTRETMSG C 1 Most Severe Message Type

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Messages

Functionality
For medical documents, one status is set.
There are three (3) options for setting the next status:

  • The next status can be included, either the internal status (

  • STATUSINTERN) or the external language-dependent status (
    STATUSEXTERN). If the external status is transferred, the systemwill determine the internal status and store it. The internal statushas priority over the external status, if both statuses aretransferred.
    • You can make a selection so that the next status (SET_NEXT_STATUS

    • ) is set. If the system determines that more than one next status isdefined, a corresponding error message will appear.
      • You can make a selection so that the system sets the next status with a
      • release indicator (SET_RELEASE_STATUS), so that the document isreleased. If the system determines that more than one next status witha release indicator is defined, a corresponding error message willappear.
        If you select more than one option, the system will use the followingpriority:
        Transfer of the Internal Status
        Transfer of the External Status
        Release Document (Set Release Status)
        Set Next Status

        Notes
        The processing functions do not necessarily require import parameterIM_DOCDATA. Although, if you would like to increase the performance,you can transfer the following fields of this structure contained inthe management data of the current document:

        • Institution (INSTITUTION)

        • Document Category (DOCUMENT_CATEGORY)

        • Document Category Version (DOCUMENT_CATVERSION)

        • INCLUDE NBAPI_WORST_RETURNED_MSGTY
          INCLUDE N2BAPI_CHECK_PMD_RELEASE OBJECT DOKU ID TX

          Description
          INCLUDE N2BAPI_DOCDATA OBJECT DOKU ID TX
          INCLUDE N2BAPI_DOCUMENTNUMBER
          INCLUDE N2BAPI_DOCUMENTPART
          INCLUDE N2BAPI_DOCUMENTTYPE
          INCLUDE N2BAPI_DOCUMENTVERSION
          INCLUDE N2BAPI_LOGFIELD
          INCLUDE N2BAPI_SET_NEXT_STATUS
          INCLUDE N2BAPI_SET_RELEASE_STATUS

          Description
          INCLUDE N2BAPI_STATUSEXTERN

          Default
          INCLUDE N2BAPI_NO_DEFAULT

          Description
          INCLUDE N2BAPI_STATUSINTERN

          Default
          INCLUDE N2BAPI_NO_DEFAULT
          INCLUDE N2BAPI_TESTRUN OBJECT DOKU ID TX

          Description
          INCLUDE N2BAPI_RET_NO_MESSAGES