SAP Function BAPI_BUS2054_CHANGE_MULTI - Change WBS Elements Using BAPI

Parameter Reference Type Length Default Optional Text
I_PROJECT_DEFINITION BAPI_BUS2001_NEW-PROJECT_DEFINITION C 24 Project Definition

Parameter Reference Length Optional Text
ET_RETURN BAPIRET2 548 X Return Parameter
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
IT_UPDATE_WBS_ELEMENT BAPI_BUS2054_UPD 110 Data Structure: Create WBS Element
IT_WBS_ELEMENT BAPI_BUS2054_CHG 614 Data Structure: Create WBS Element

Functionality
WBS elements of a project can be changed with BAPI"BAPI_BUS2054_CHANGE_MULTI". Here, parameter I_PROJECT_DEFINITION mustcontain the project definition to which the WBS elements belong. Thenames of the individual WBS elements (WBS_ELEMENT) and the new valuesmust be entered in table "IT_WBS_ELEMENT_TABLE". The names of theindividual WBS elements (WBS_ELEMENT) must also be entered in table"IT_WBS_ELEMENT_TABLE_UPD", so that they can be assigned. In addition,the fields that are to be changed are flagged here with an 'X'. Theother fields remain unchanged.
Before anything is changed, the following is checked:

  • Is another project already being processed in the LUW (Logical Unit of
  • Work)?
    • Can the project be locked?

    • If the checks were not successful, nothing is changed. Otherwise, eachWBS element is changed individually in "IT_WBS_ELEMENT_TABLE", althoughfirst the following is checked:
      • Is the changed data still consistent?

      • Does each individual entry in table "IT_WBS_ELEMENT_TABLE" have a
      • corresponding entry in table "IT_WBS_ELEMENT_TABLE_UPD" (same entryWBS_ELEMENT)?
        If all checks were successful, the individual WBS element is changed inthe document tables.
        As soon as a LUW (Logical Unit of Work) is completed with the BAPIBAPI_PS_PRECOMMIT and COMMIT WORK, the WBS element is finally changed.
        Only one project or WBS element from a project can be processed at atime in one LUW.
        The return parameter RETURN displays first an error or success messagethat shows whether the WBS element could be changed. The first messagevariable contains the object type, the second contains the object ID,and the fourth contains the GUID (if it could be read). All relatedmessages that were generated during processing are listed underneaththe error or success messages. The parameters of the individualmessages are filled with the object ID.

        Notes
        INCLUDE CNIF_PI_BAPI_HINTS OBJECT DOKU ID TX

        Further information
        For more information, refer to the SAP Library under Project System ->Structures -> Project System Interfaces -> PS-EPS Interface to ExternalProject Management Systems.

        Description
        Number that uniquely identifies a project definition within a client.

        Description
        Data for customer enhancements is imported using the container"ExtensionIn", as described in the BAPI Programming Guide. Furtherprocessing of the data takes place in the relevant BAdI.

        Description
        Customer enhancement data is exported using the container"ExtensionOut" as described in the BAPI Programming Guide. Procurementof the data takes place in the relevant BAdI.

        Description
        Specifies the fields that are to be updated.

        Value range
        The name of the WBS element (WBS_ELEMENT) must be specified for eachentry. Everything else is optional. The fields that are flagged hereare updated with the data from IT_WBS_ELEMENT. Everything else remainsunchanged.

        Description
        Table that contains all WBS elements with the data that is to bechanged.

        Value range
        The WBS element (WBS_ELEMENT) must be specified for each entry.Everything else is optional. Fields that are specified, but that arenot in the update structure, are meaningless.

588124Setting up/changing hierarchy leads to online mssges in BAPI