⤷ PA-PM-PB (Application Component) Position Budgeting and Control
⤷ PAOC_FPM_CUSTOMIZING (Package) Position Management: Customizing
|ID||PBCS_0041||Create BAdI Implementation for Filter Value|
|Customizing Attributes||PBCS_0041||Maintain BAdI Implementation for Filter Value|
|Customizing Activity||PBCS_0041||Maintain BAdI Implementation for Filter Value|
|Document Class||SIMG||Hypertext: Object Class - Class to which a document belongs.|
This Business Add In (BAdI) is used in the component Position Budgeting and Control (PA-PM-PB).
Using this BAdI, you can individually define the commitment period depending on the person or position for which the commitment should be created.
The BAdI is called at the start of an automatic commitment creation run for each person/position selected. In this way, you can replace specific objects of the commitment period which you entered in the implementation guide (IMG) Position Budgeting and Control in the IMG activity Define Period for Automatic Commitment Creation.
If you require your own implementation, you first have to define your own filter value in the IMG activity Create Filter Value for BAdI. You enter this filter value in your BAdI implementation.
SAP delivers the implementation HRFPM_ENC_STANDARD which is assigned to the filter value STANDARD. This implementation evaluates the periods defined in the IMG Position Budgeting and Control.
If you want to create your own implementation, define a new filter value and assign your implementation to this filter value. Then define the new filter value as a global filter.
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>and
- 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.
If you created your own implementation with your own filter value, you have to define this filter value as a global filter in the IMG activity Define Global Filter Value for BAdI.
An individual implementation may be required, for example, if you want to determine the commitment period depending on the financing source.
You can find code examples in the implementation delivered by SAP.
You can find more information on using Business Add Ins in the SAP library under SAP NetWeaver Components -> SAP Web Application Server -> ABAP Workbench -> Changes to SAP Standard -> Business Add Ins.
|ASAP Roadmap ID||204||Establish Functions and Processes|
|Mandatory / Optional||3||Nonrequired activity|
|Critical / Non-Critical||2||Non-critical|
|Country-Dependency||A||Valid for all countries|
|Maintenance object type||E||Business Add-In - Definition|
|Last changed by/on||SAP||20020703|
|SAP Release Created in||110|