Hierarchy
⤷ PY-DE-PS-VA (Application Component) Pension Administration
⤷ P01PBSVASEN_BL (Package) HR-VADM: Employ. Periods, Pension Percent. (Business Logic)
IMG Activity
ID | HR_PBS_01_VG_SEN_04 | BAdI: Generation of Employment Periods |
Transaction Code | S_PCO_36000466 | (empty) |
Created on | 20050620 | |
Customizing Attributes | HR_PBS_01_VG_SEN_04 | Generation of Employment Periods |
Customizing Activity | HR_PBS_01_VG_SEN_04 | Generation of Employment Periods |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | HRPBSDEVASENGENP0552 |
Use
The Business Add In (BAdI) Sample Generation for Employment Periods (P0552) (HRPBSDEVASENGENP0552) provides a generation proposal for employment periods during pension administration. To control the generation, you can define generation classes as well as use selection rules.
SAP delivers the example implementation CL_EXM_IM_HRPBSDEVASENGENP0552.
Employment periods are generated using generation classes and by evaluating the selection rules. You can create generation classes as required. Each generation class must implement the IF_EX_HRPBSDEVASENGENP0552 interface. The CL_HRDEPBSVASEN_GEN_FROM_SRULE class has been created for evaluating the selection rules.
The instances of the generation classes and of the class for the selection rules are created in this BAdI and transferred to the #generation engine#. The generated times are then checked for plausibility and adjusted if necessary.
Each generation class should implement the data retrieval and business logic in the IF_HRDEPBSVASEN_GENRULE_P0552~GENERATE_P0552 method.
When the BAdI implementation is active, a generation button for calling the BAdI becomes visible in the Employment Periods sub process scenario. No employment periods are overwritten; only new employment periods are generated.
Note:
For generated employment periods, the Do not evaluate checkbox is selected. This must be changed if employment periods are to be taken into account. This logic can also be implemented in the IF_HRDEPBSVASEN_GENRULE_P0552~GENERATE_P0552 method.
If you set the export parameter E_DEL_ALL in the BAdI implementation to the value #X#, all existing records are deleted before the new infotype records are added. Before the records are deleted, the administrator must confirm the deletion in an additional dialog box.
Requirements
Standard settings
The BAdI implementation is not active in the standard delivery.
Activities
To copy the sample code for your implementation, choose in the menu Goto -> Sample Code -> Copy.
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:
- 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.
- Enter a short text for the implementation in the Short text for implementation field.
- 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.
- Save your entries, and assign the implementation to a development class.
- Place the cursor on the method, and double-click to enter method processing.
- Enter the code for the implementation between the statements
method <Interface name> ~ <Name of method>
andendmethod
. - Save and implement your code. Return to the Edit Implementation screen.
- 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.
- Choose Activate
The code you stored in the method will be run when the application program is executed.
Example
Example BAdI implementation: CL_EXM_IM_HRPBSDEVASENGENP0552
Example for a generation class: CL_HRDEPBSVASEN_GEN_BEAMTZEIT
Business Attributes
ASAP Roadmap ID | 204 | Establish Functions and Processes |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | I | Valid for countries specified |
Customizing Attributes | Country Key | Country Name |
---|---|---|
HR_PBS_01_VG_SEN_04 | DE | Germany |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20050621 |
SAP Release Created in | 600 |