Fonction SAP BAPI_BUS2001_CHANGE - Change Project Definition Using BAPI

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_PROJECT_DEFINITION BAPI_BUS2001_CHG u 336 Data Structure: Change Project Definition
I_PROJECT_DEFINITION_UPD BAPI_BUS2001_UPD u 49 Update Structure: Change Project Definition

Paramètre Reférence Long. Facultatif Description
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

Functionality
A project definition can be changed using the BAPI"BAPI_BUS2001_CHANGE". To do this, the project definition(PROJECT_DEFINITION) and the new values must be entered in thestructure "I_PROJECT_DEFINITION". In the structure"I_PROJECT_DEFINITION_UPD", the fields that are to be changed must bemarked with 'x'. The other fields remain unchanged.
Before the project definition is changed, the following is checked:

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

    • Is the changed data still consistent (do the company code and
    • controlling area match?)
      If all checks are successful, the project definition is changed in thedocument tables.
      INCLUDE CNIF_PI_PROJECT_STOCK OBJECT DOKU ID TX
      The project definition is changed as soon as a LUW (Logical Unit ofWork) is completed with the BAPI "BAPI_PS_PRECOMMIT" and "COMMIT WORK".
      Only one project or one WBS element from a project can be processed ata time in one LUW.
      The return parameter "RETURN", displays first an error or successmessage that states whether the project definition could be changed.The first message variable is the object category, the second is theobject ID and the GUID (if it was possible to read it) is in the fourthmessage variable. All messages that were generated during theprocessing are listed underneath, and 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
      All data that is to be changed can be transferred in the projectdefinition.

      Value range
      The project definition (PROJECT_DEFINITION) has to be specified.Everything else is optional. Fields that are specified, but which arenot contained in the update structure, are meaningless.

      Description
      Specifies those fields that are to be updated.

      Value range
      The project definition (PROJECT_DEFINITION) must definitely bespecified. Everything else is optional. Fields that are selected hereare updated with the data from I_PROJECT_DEFINITION. All other fieldsremain unchanged.

      Description
      Data for customer enhancements is imported using the container"ExtensionIn", as described in the BAPI Programming Guide. The datacontinues to be processed in the corresponding BADI.

      Description
      Customer enhancement data is exported using the container"ExtensionOut", as described in the BAPI Programming Guide. The data isprocured in the corresponding BAdI.