Fonction SAP BAPI_BUS2054_SET_STATUS - Set/Reset 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
I_WBS_SYSTEM_STATUS BAPI_WBS_MNT_SYSTEM_STATUS 32 X Set/Reset WBS Element System Status
I_WBS_USER_STATUS BAPI_WBS_MNT_USER_STATUS 32 X Set/Reset WBS Element User Status

Functionality
You can use BAPI_BUS2054_SET_STATUS in a list of WBS elements to revokea system status and a user status respectively, as well as to set asystem status and a user status respectively.
The following system statuses are supported:

  • 'REL' Released (I0002) set

  • 'LKD' Locked (I0043) set/revoke

  • 'TECO' Technically completed (I0045) set/revoke

  • 'CLSD' Closed (I0046) set/revoke

  • 'AALK' Account assignment locked (I0064) set/revoke

  • 'MDLK' Master data locked (I0065) set/revoke

  • 'DLFL' Deletion flag (I0076) set/revoke

  • User statuses can be set or revoked in accordance with the statusprofile assigned to the WBS element structure. This must be assignedusing the key in the respective log-on language.
    The sequence should be worked through as follows:
    Revoke system status
    Revoke user status
    Set system status
    Set user status
    If a system/user status cannot be set/revoked, all the other actionsare still performed.
    The inheritance of statuses does not occur integrated between projectand network. A status change only affects the current project, but notany networks that were potentially assigned to that project.
    You can call up the BAPI as often as you like until a Logical Unit ofWork (LUW) is closed with the BAPI BAPI_PS_PRECOMMIT and BAPI COMMITWORK.
    Only one project or WBS element from a project can be processed in aLUW.

    Notes
    In the RETURN return parameter there is an error message if an erroroccurred during processing. After the call up, the notifications whichwere generated during processing are in the table BAPI_STATUS_RESULT.

    Further information
    For more information, see the SAP library under Project System ->Structures -> Interfaces to the Project System -> PS-EPS InterfacetoExternal Project Management Software.

    Description
    Return code with error messages

    Value range
    If an error occurs, the following message is returned if necessary:
    Type ID number message

    • E CNIF_STATUS 004 Error in reading/locking object.

    • 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 information on the cause of the error intable E_MESSAGE_TABLE.

      Description
      Error messages for setting/revoking statuses

      Value range
      If errors occur when setting/revoking system/user statuses for the WBSelement, then the corresponding object and the error message are outputin this table. Table structure:
      OBJECTKEY: SAP-external object key data type CHAR field length 90
      STATUS_ACTION: Setting or revoking a status data type CHAR field length1
      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
      Table with WBS elements and the respective system status to be set/revoked.
      Structure of table:
      WBS_ELEMENT: External number of the work breakdown structure element(WBS element) CHAR field length 24
      UNDO_SYSTEM_STATUS: System status which should be revoked data typeCHAR field length 4
      SET_SYSTEM_STATUS: System status which should be set data type CHARfield length 4

      Value range
      System statuses supported:

      • 'REL' Released (I0002) set

      • 'LKD' Locked (I0043) set/revoke

      • 'TECO' Technically completed (I0045) set/revoke

      • 'CLSD' Closed (I0046) set/revoke

      • 'AALK' Account assignment locked (I0064) set/revoke

      • 'MDLK' Master data locked (I0065) set/revoke

      • 'DLFL' Deletion flag (I0076) set/revoke
      • Description
        Table with WBS elements and the respective user status to be set/revoked.
        Structure of table:
        WBS_ELEMENT: External number of the work breakdown structure element(WBS element) CHAR field length 24
        UNDO_USER_STATUS: User status which should be revoked data type CHARfield length 4
        SET_USER_STATUS: User status which should be set data type CHAR fieldlength 4

        Value range
        User status can be set or revoked in accordance with the status profileassigned to the WBS elements.