Ansicht
Dokumentation

DPR_BAPI_BUS2167_APP - BAdI: Approval for BOR Object Phase in a Template

DPR_BAPI_BUS2167_APP - BAdI: Approval for BOR Object Phase in a Template

Fill RESBD Structure from EBP Component Structure   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This Business Add-In (BAdI) is used in the Project Managment (PPM-PRO) component. This BAdI enables you to use the customer-defined fields in the BAPIs when approving a phase in a template.

The ApprovalCreate and ApprovalChange methods of the BAPI for creating an approval each contain the importing parameter IS_EXTENSION_IN and the exporting parameter ES_EXTENSION_OUT for you to use, the ApprovalGetDetail method only contains the exporting parameter ES_EXTENSION_OUT.

If you fill the IS_EXTENSION_IN extension structure correctly and have implemented the following methods of the BAdI, you can carry out customer-defined checks before the approval is created or changed:

Method   Action
CREATE_EXIT_IN   Create approval
CHANGE_EXIT_IN   Change approval (name and comment)

  • If you fill the extension structure IS_EXTENSION_IN correctly in the ApprovalChange method, and 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 current approval has been created or changed, you can fill the exporting structure ES_EXTENSION_OUT provided that the importing structure IS_EXTENSION_IN has been filled correctly and you have implemented the following methods of the BAdI.
    This method cannot undo the action. All messages from the return table are transferred to the log.
Method Action
CREATE_EXIT_OUT Create approval
CHANGE_EXIT_OUT Change approval (name and comment)

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

Requirements

Standard settings

  • The BAdI is not active in the standard system and there is no default code.
  • The BAdI is not dependent on a filter and cannot be used more than once.

Activities

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

Example






ABAP Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 5815 Date: 20240523 Time: 155321     sap01-206 ( 84 ms )