Fonction SAP BAPI_BUS2054_GET_STATUS - Read Status for BUS2054 (Work Breakdown Structure)

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Return Parameter

Paramètre Reférence Long. Facultatif Description
E_RESULT BAPI_STATUS_RESULT 193 X Error Messages for Setting/Resetting Status
E_SYSTEM_STATUS BAPI_WBS_SYSTEM_STATUS 28 X Return Structure for WBS Element System Status
E_USER_STATUS BAPI_WBS_USER_STATUS 28 X Return Structure of WBS Element User Status
I_WBS_ELEMENTS BAPI_WBS_ELEMENTS 24 List: WBS elements

Functionality
You can use the BAPI BAPI_BUS2054_GET_STATUS to read the active systemstatuses and user statuses for a list of PSP elements(BAPI_WBS_ELEMENTS).
The active system statuses in this case are output with theEnglish-language key.
The active user statuses are output with the key of the log-on languageif the translation of the status exists in the status profile in thelog-on language, or if the maintenance language of the status profilecorresponds to the log-on language.
If the status does not exist in the log-on language in the statusprofile, the key will be output in the maintenance language of thestatus profile.

Notes
The return parameter RETURN will contain an error message if an erroroccurred during processing. After the call, the tableBAPI_STATUS_RESULT contains all messages that were created duringprocessing.

Further information
You can find additional information in the SAP Library under ProjectSystem -> Structures -> Project System Interfaces -> PS-EPS Interfaceto External Project Management Systems.

Description
Return code with error messages

Value range
If errors occur, the following messages will be output, if necessary:
Type ID Number Message

  • E CNIF_STATUS 005 Error in processing. Function was not executed.

  • E CNIF_STATUS 006 Error in processing. Function was partially executed.

  • In this case, you can find more detailed information about the cause ofthe errors in the table E_MESSAGE_TABLE.

    Description
    Error messages when reading the statuses

    Value range
    If errors occur when reading system or user statuses of PSP elements,this table will contain the relevant object and the error message.
    Structure of the table:
    OBJECTKEY: SAP-external object key data type CHAR field length 90
    STATUS_ACTION: Set or revoke a status data type CHAR field length 1
    STATUS_TYPE: Type of status: System or user data type CHAR field length6
    MESSAGE_ID: Message identification data type CHAR field length 20
    MESSAGE_NUMBER: Number of message data type CHAR field length 3
    MESSAGE_TYPE: Type of message data type CHAR field length 1
    MESSAGE_TEXT: Text of message data type CHAR field length 72

    Description
    List of the active system statuses for each PSP element.
    Structure of the table:
    WBS_ELEMENT: External number of the project structure plan element (PSPelement). CHAR field length 24
    SYSTEM_STATUS: Language-dependent text for system status data category.CHAR field length 4.

    Description
    List of the active user statuses for each PSP element.
    Structure of the table:
    WBS_ELEMENT: External number of the project structure plan element (PSPelement). CHAR field length 24.
    USER_STATUS: Language-dependent text for user status data category.CHAR field length 4.

    Value range

    Description
    Table of the PSP elements whose status is to be read.
    Structure of the table:
    WBS_ELEMENT: External number of the project structure plan element (PSPelement) CHAR field length 24.