Ansicht
Dokumentation

HR_ECM_00_AD_E09 - Business Add-In: Determine First Compensation Program Grouping

HR_ECM_00_AD_E09 - Business Add-In: Determine First Compensation Program Grouping

BAL_S_LOG - Application Log: Log header data   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

Implement this Business Add-In to define a customer-specific algorithm that enables you to determine the default first compensation program grouping that is needed on creation of infotype Compensation Program (0758). By doing so, you no longer need to evaluate feature feature First Compensation Program Grouping (CP1GP).

The Businees Add-In consists of the method described below.

The following import parameters are provided:

  • PERNR
    Personnel number.
  • KEYDT
    Key date for determining the first compensation program grouping.
  • CAREA
    Compensation area
  • MESSAGE_HANDLER
    Reference to interface IF_HRPA_MESSAGE_HANDLER. If the evaluation of the default first compensation program grouping trggiers any messages that should be sent to the frontend, you can add them to the message list using method ADD_MESSAGE of this interface or function module HR_ECM_ADD_MESSAGE.

The following export parameters must be provided by your coding:

  • CPGR1
    Default first compensation program grouping.
  • IS_OK
    Indicator set to SPACE if any error has prevented your routine from retrieving the default first compensation program grouping.
  • PROCESS_STANDARD
    Indicator set to 'X' if you want the system to ignore the result of your implementation and perform the standard routine.

The first program group should be defaulted according to the information stored on a customer-specific infotype.

After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.

If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:

1. In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.

The screen for creating BAdI implementations is now displayed.

2. Enter a short text for the implementation in the Short text for implementation field.

3. From the tab index, choose Interface.

The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.

4. Save your entries, and assign the implementation to a development class.

5. Place the cursor on the method, and double-click to enter method processing.

6. Enter the coding for the implementation between the statements method ~ and endmethod.

7. Save and implement your coding. Return to the Edit Implementation screen.

8. Save the entries on the Edit Implementation screen.

Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.

9. Choose Activate.

The coding you stored in the methods will be run when the application program is executed.

For more information on using Business Add-Ins, refer to the SAP Library under Basis Components →ABAP Workbench (BC-DWB) →Changing the SAP Standard (BC)→Business Add-Ins.






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

Length: 3720 Date: 20240523 Time: 202522     sap01-206 ( 54 ms )