Ansicht
Dokumentation

BAPI_BUS2001_CHANGE - Change Project Definition Using BAPI

BAPI_BUS2001_CHANGE - Change Project Definition Using BAPI

Addresses (Business Address Services)   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

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 the structure "I_PROJECT_DEFINITION". In the structure "I_PROJECT_DEFINITION_UPD", the fields that are to be changed must be marked 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 the document tables.


The project definition is changed as soon as a LUW (Logical Unit of Work) is completed with the BAPI "BAPI_PS_PRECOMMIT" and "COMMIT WORK".

Only one project or one WBS element from a project can be processed at a time in one LUW.

The return parameter "RETURN", displays first an error or success message that states whether the project definition could be changed. The first message variable is the object category, the second is the object ID and the GUID (if it was possible to read it) is in the fourth message variable. All messages that were generated during the processing are listed underneath, and the parameters of the individual messages are filled with the object ID.

Example

Notes

Further information

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





Parameters

ET_RETURN
EXTENSIONIN
EXTENSIONOUT
I_PROJECT_DEFINITION
I_PROJECT_DEFINITION_UPD

Exceptions

Function Group

CJ2001

PERFORM Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 2451 Date: 20240523 Time: 105519     sap01-206 ( 56 ms )