SAP ABAP IMG Activity OHPSUSCERT92 (BAdI: Override Out-of-Field)
Hierarchy
☛SAP_HRCUS (Software Component) Sub component SAP_HRCUS of SAP_HR ⤷PY-US-PS (Application Component) Öffentlicher Dienst ⤷P10P1 (Package) HR Public Sector USA
Hypertext: Object Class - Class to which a document belongs.
Document Name
OHPSUSCERT92
Use
This step describes how to set up customer-specific enhancements using the optional Business Add-In (BAdI) HRPBSUSTC02, which can be used to override the standard output of the Out-of-Field Report, where desired, with reporting methods of your own. The method CHECK_OUT_OF_FIELD within this BAdI consists of the following parameters:
P0001
P0002
P0795
WKASG and
LS_OOF
Requirements
You wish, under certain circumstances, to override the standard output of the Out-of-Field Report with reporting methods of your own, and you understand that BAdI implementation HRPBSUSTC02 is provided as an example to achieve this goal. This example is provided "as is" to illustrate how a BAdI implementation along these lines could be developed. You should not use this implementation yourself, but rather copy it to the customer name range and maintain it to meet your specific requirements.
Standard settings
The information explained below applies to all methods of BAdI HRPBSUSTC02.
Activities
Execute this IMG step. On the subsequent screen, enter a name for the implementation you wish to create. (Alternatively, if you have already used this BAdI to create other implementations, a dialog box appears, displaying the implementations that have already been created.)
Choose Create. (Or, alternatively, Edit. The remainder of the documentation for this activity describes the steps to be performed when you create a new implementation.)
Caution If you have already implemented this BAdI, then you must re-activate your current implementation. Otherwise, the report will issue error messages or short dumps as it processes employee data.
Enter a short text for the implementation in the Implementation name field, then choose Continue.
On the subsequent screen, specify an Implementation short text, then choose the Interface tabstrip. The name of the implemented class fields are already found in this tabstrip.
Save your entries and assign the implementation to a development class.
Place the cursor on the method, then double-click to initiate method processing.
Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
Save and implement your code.
Return to the Edit Implementation screen, then save your entries there.
If you wish to activate the implementation you have created at a later date, then exit the Edit Implementation screen without activating the implementation. Otherwise, choose Activate from this screen to activate the implementation for immediate use.
Once you have completed these activities, the source code that you stored in the method will be run when the associated application is executed.