SAP ABAP IMG Activity CPRO_BAPI_BUS2173APP (BAdI: Approval for BOR Object Phase)
Hierarchy
CPRXRPM (Software Component) SAP Portfolio and Project Management 6.0
   PPM-PRO (Application Component) Project Management
     DEVELOPMENT_PROJECTS_CUSTOMIZE (Package) General Customizing for Project Management
IMG Activity
ID CPRO_BAPI_BUS2173APP BAdI: Approval for BOR Object Phase  
Transaction Code S_CP4_60000022   (empty) 
Created on 20040205    
Customizing Attributes CPRO_BAPI_BUS2173APP   BAdI: Approval for BOR Object Phase 
Customizing Activity CPRO_BAPI_BUS2173APP   BAdI: Approval for BOR Object Phase 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BAPIEXT_BUS2173_APP    

Use

This Business Add-In (BAdI) is used in the Project Management (PPM-PRO) component. This BAdI enables you to use the customer-defined fields for the approval of a phase in the BAPIs too.

The ApprovalCreate, ApprovalChange, ApprovalBegin, ApprovalCancel, ApprovalVersionCreate, ApprovalReject, and ApprovalGrant methods contain the importing parameter IS_EXTENSION_IN and the exporting parameter ES_EXTENSION_OUT for you to use. The ApprovalGetDetail method also contains the IS_EXTENSION_OUT exporting parameter.

  • If you fill the IS_EXTENSION_IN extension structure correctly and have implemented the methods named below of the BAdI, you can carry out customer-defined checks before the action that belongs to the method is performed for the current approval.

    If the method in the return table returns at least one message of the type 'E', 'A', or 'X', the system cancels the processing of the BAPI.

Method        Action

CREATE_EXIT_IN        Create approval

CHANGE_EXIT_IN        Change approval (name and comment)

BEGIN_EXIT_IN        Start approval

CANCEL_EXIT_IN        Cancel approval

CREATE_VERSION_EXIT_IN        Create version for approval

REJECT_EXIT_IN        Reject approval

GRANT_EXIT_IN        Grant approval

  • If you fill the IS_EXTENSION_IN extension structure correctly in the ApprovalChange method and if the Extensions indicator has been set in the update structure, you can use the CHANGE_EXIT_MAP method of the BAdI to fill the customer-defined fields of the CI structure CI_DPR_APPROVAL with the values from this extension structure.
  • After the action for the current approval has been performed, you can fill the ES_EXTENSION_OUT exporting structure provided that the IS_EXTENSION_IN importing structure has been filled correctly and you have implemented the methods named below of the BAdI.
    This method cannot undo the action. All messages in the return table are transferred to the log.

Method    Action

CREATE_EXIT_OUT    Create approval

CHANGE_EXIT_OUT    Change approval (name and comment)

BEGIN_EXIT_OUT    Start approval

CANCEL_EXIT_OUT    Cancel approval

CREATE_VERSION_EXIT_OUT    Create version for approval

REJECT_EXIT_OUT    Reject approval

GRANT_EXIT_OUT    Grant approval

  • You can use the GET_DETAIL_EXIT_MAP method of the BAdI to transfer the customer-defined fields (that is, the content of the CI_DPR_APPROVAL CI include for the current approval) to the ES_EXTENSION_OUT parameter.

Requirements

Standard settings

Activities

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20040205 
SAP Release Created in 310