Fonction SAP BAPI_BUS2001_CREATE - Use BAPI to Create Project Definition

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_PROJECT_DEFINITION BAPI_BUS2001_NEW u 347 Data Structure: Create 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
You can create a project definition using the BAPI"BAPI_BUS2001_CREATE". The fields for the project definition must beentered in the structure "I_PROJECT_DEFINITION". You must specify atleast the project definition (PROJECT_DEFINITION) and the projectprofile (PROJECT_PROFILE).
Before the project definition is created, the following is checked:

  • Is another project already being processed in the LUW (Logical Unit of
  • Work)?
    • Does another project with the same project definition already exist?

    • Is the transferred data consistent (do the company code and the
    • controlling area match)?
      If all checks are successful, then the project definition is created inthe document tables.
      INCLUDE CNIF_PI_PROJECT_STOCK OBJECT DOKU ID TX
      The project definition is created 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 created.The first message variable is the object category, the second is theobject ID and the GUID (if it was created) is in the fourth messagevariable. All messages that were generated during the processing arelisted underneath, and the parameters of the individual messages arefilled 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 toExternal Project Management Systems.

      Description
      All data that is to be created for the project definition can betransferred in the project definition.

      Description
      Data for customer enhancements are imported using the container"ExtensionIn", as described in the BAPI Programming Guide. Dataprocessing continues in the corresponding BAdI.

      Description
      Customer enhancements are exported using the container "ExtensionOut",as described in the BAPI Programming Guide. The data is procured in thecorresponding BAdI.

602776BAPI: object class entered in wrong language: no error msg.
601087Simulation profile not transferred from project profile