Fonction SAP BAPI_MEDDOC_GETSTATUSLIST - IS-H*MED: Get Next Status or Status Network

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOCUMENTTYPE BAPIMEDDOC_DATA-DOCUMENTTYPE C 3 Document Type
GET_NEXT_STATUS BAPINALL-XIND C 1 SPACE X Checkbox: Get Next Status
GET_NORELEASE_STATUS BAPINALL-XIND C 1 SPACE X Checkbox: Determine Non-Release Status
GET_RELEASE_STATUS BAPINALL-XIND C 1 SPACE X Checkbox: Get Release Status
GET_STATUS_CREATE BAPINALL-XIND C 1 SPACE X Checkbox: Determine Creation Status
GET_STATUS_DATA BAPINALL-XIND C 1 SPACE X Checkbox: Export Data of a Status
STATUSEXTERN BAPIMEDDOC_DATAIN-STATUSEXTERN C 2 X Status Abbreviation (Language-Dependent)
STATUSINTERN BAPIMEDDOC_DATA-STATUSINTERN C 2 X Internal Document Status

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
STATUSDATA BAPI_DOC_TDWS 40 X List of the Statuses Determined

Functionality
This method retrieves the next status, the data of the statustransferred or the status network of the document type. For medicaldocuments, you can define different status networks for each documenttype in the customizing function. You can set up the status network sothat a status has one or more next statuses.
These can contain the following status information:

  • You can make a selection for the system to retrieve the next status with
  • a release indicator (GET_RELEASE_STATUS). When Releasing a Document
    , you can only set one status with a release indicator. If the systemdetermines that a next status with a release indicator is not included,a corresponding error message will appear. If more than one releasestatus exists as a next status, no message will appear. The tableSTATUSDATA contains the corresponding number of entries.
    • You can make a selection so that the system retrieves the next status
    • without a release indicator (GET_NORELEASE_STATUS). If the systemdetermines that no next status without an indicator should be included,an error message is returned. If more than one status without a releaseindicator exists as the next status, no message is displayed. The tableEXT_STATUSDATA contains the corresponding number of entries.
      • You can make a selection so that the system retrieves the next status
      • (GET_NEXT_STATUS). The system will then search for all next statuses,independent of their release indicator. If the system determines that anext status should not be included, a corresponding error message willappear. If more than one next status exists, no message will appear. Thetable STATUSDATA contains the corresponding number of entries.
        • If the system should retrieve a next status, that is, if either
        • GET_NEXT_STATUS, GET_NORELEASE_STATUS or GET_RELEASE_STATUS is selected,the system will require a status. You can include either the internalstatus (STATUSINTERN) or the external language-dependent status(STATUSEXTERN). If no status is included, the system will retrieve thefirst status(es) of the status network, that is, the status that can beallocated when creating a document.
          • You can make a selection directing the system to transfer data for a
          • status (GET_STATUS_DATA). You can include either the internal status(STATUSINTERN) or the external language-dependent status (STATUSEXTERN).The system exports the status data In the table STATUSDATA .
            • You can make a selection so that the first status of the status network
            • is retrieved, i.e. the status that is allocated while creating a documen
              t (GET_STATUS_CREATE). You should remember that a status network canhave several primary / initial statuses.
              • If GET_NEXT_STATUS, GET_RELEASE_STATUS, GET_STATUS_DATA and
              • GET_STATUS_CREATE are not selected, the system will export the entirestatus network of the document type.
                If you select more than one option, the system will use the followingpriority:
                Get Release Status
                Get Unreleased Status
                Get Next Status
                Get Status Data
                Get Creation Status
                Export Status Network of the Document Type
                INCLUDE NBAPI_WORST_RETURNED_MSGTY
                INCLUDE N2BAPI_DOCUMENTTYPE
                INCLUDE N2BAPI_GET_NEXT_STATUS
                INCLUDE N2BAPI_GET_NORELEASE_STATUS OBJECT DOKU ID TX
                INCLUDE N2BAPI_GET_RELEASE_STATUS
                INCLUDE N2BAPI_GET_STATUS_CREATE OBJECT DOKU ID TX
                INCLUDE N2BAPI_GET_STATUSDATA

                Description
                INCLUDE N2BAPI_STATUSEXTERN

                Default
                INCLUDE N2BAPI_NO_DEFAULT

                Description
                INCLUDE N2BAPI_STATUSINTERN

                Default
                INCLUDE N2BAPI_NO_DEFAULT

                Description
                INCLUDE N2BAPI_RET_NO_MESSAGES

                Description
                INCLUDE N2BAPI_STATUSDATA