Hierarchy

⤷

⤷

IMG Activity
ID | OHAN9270 | BAdI: create enhancements in Employee Annual Tax Statement |
Transaction Code | S_L7D_24000581 | IMG Activity |
Created on | 20070206 | |
Customizing Attributes | OHAN9270 | BAdI: create enhancements in Employee Annual Tax Statement |
Customizing Activity | OHAN9270 | BAdI: create enhancements in Employee Annual Tax Statement |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | OHAN9270 |
Use
Use this IMG step to create enhancements for the Annual Statement Employee (HR_NL_JAAROPGAVE) with a Business Add In (BAdI). This makes it possible to create extra fields on the annual statement, such as personnel number and cost center.
Additionally, you can change the print formatting of the form.
Requirements
The form must be present in the SAP system. To add extra fields, you should also enhance print structure P05_JAAR_WN_PRINT_STRUC by means of transaction SE11 and also add the fields themselves to the form by means of transaction SE71 (SAPscript) or SFP (PDF).
Activities
1. After calling the IMG activity a dialog box opens where you can enter a name for the implementation in the field Implementation.
If implementations have already been created with this BAdI, a dialog box opens that shows the existing implementations. In this dialog box select Create and proceed as follows:
2. Enter a short text for implementation in the initial screen in field Short text for implementation.
3. Select tab Interface. The field Name of implemented class is automatically entered on the tab, because the system assigns a class name based on the name of the implementation.
4. Save the data entered and assign a development class.
5. Put the cursor on Method and double click to go to method processing.
6. In-between method <Interface name>~<Name of method> and endmethod, enter the desired code of the implementation.
7. Save and activate your code. Return to screen: Change Implementation.
8. Save your data in screen Change Implementation.
It is possible to create an implementation for a BAdI and to activate it at a later stage. In this case you close the current operation.
9.Select Activate
You can find additional information on the use of Business Add Ins in the SAP Library under Basis->ABAP Workbench->Changing the SAP-Standard (BC)->Business Add-Ins.
Example
To print the personnel number on the form you should enhance structure P05_JAAR_WN_PRINT_STRUC with field "pernr". Next you should implement the BAdI to fill the field with rule pernr = iv_pernr. Finally, you should adapt form HR_NL_JAAR_WN_B to print field &g_pd-pernr& (SAPscript).
Business Attributes
ASAP Roadmap ID | 204 | Establish Functions and Processes |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | OHAN9270 | 0 | HLA0009675 | Evaluations/Statistics |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20071122 |
SAP Release Created in |