SAP ABAP IMG Activity OHFBNTL05 (BAdI: Enhancement for GB FlexBens Holiday Buying/Selling Factor)
Hierarchy
EA-HRCGB (Software Component) Sub component EA-HRCGB of EA-HR
   PA-BN-FB-XX (Application Component) General Parts
     PAOC_BEN_FBN (Package) Flexible Benefits System
IMG Activity
ID OHFBNTL05 BAdI: Enhancement for GB FlexBens Holiday Buying/Selling Factor  
Transaction Code S_P2H_60000044   (empty) 
Created on 20040220    
Customizing Attributes OHFBNTL05   BAdI: Enhancement for GB FlexBens Holiday Buying/Selling Factor 
Customizing Activity OHFBNTL05   BAdI: Enhancement for GB FlexBens Holiday Buying/Selling Factor 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name PFBN0003    

BAdI: Enhancement for GB FlexBens Holiday Buying/Selling Factor (PFBN0003)

Use

This Business Add-In (BAdI) is used in Flexible Benefits for Great Britain (PA-BN-FB-GB), for the Holiday Plan buying/selling factor. You must configure this buying/selling factor for your Holiday Plan in the Benefits Administration IMG, in the customizing step Define Holiday Buying/Selling Factor (FLEX).

For example, your organisation decides that eligible employees can buy or sell up to a maximum of five days holiday during the benefits year, but employees who join the organisation in September can only buy or sell two days in the remainder of the benefits year. You maintain a buying and selling prorating factor for holiday of two days for September in the above IMG step, using table T74_FBN11. In the standard GB FlexBens system, the holiday buying/selling factor is only valid for those employees who join your organisation after the benefits year has commenced.

The SAP-delivered Business Add-In (BAdI) PFBN0003 enables you to implement your own rule to decide the holiday buying/selling factor. You can set different prorating factors for different holiday plans. This BAdI is called when you wish to create your own rules to decide the holiday buying/selling factor, replacing the SAP standard rule.

Standard settings

  • This BAdI is not activated in the standard system.
  • If this BAdI is activated without being modified, the SAP standard rule to decide the holiday buying/selling factor will be ignored.
  • This BAdI is not reusable.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

Your organisation has implemented two GB FlexBens holiday plans, one plan for full-time employees and a separate plan for part-time employees. You wish to assign a different buying/selling prorating factor for each of these plans, as follows (here the month of September is used as an example):

  • For the full-time Holiday Plan, an employee joining your organisation in September can buy or sell two days holiday
  • For the part-time Holiday Plan, an employee joining your organisation in September can buy or sell only one days holiday

In this situation, you must write your own coding using the BAdI: Enhancement for GB FlexBens Holiday Buying/Selling Factor (PFBN0003) [GET_HOLIDAY_PLAN_FACTOR] to set your required proration factors for each respective Holiday Plan.

See also

Method

GET_HOLIDAY_PLAN_FACTOR

For more information on how to use Business Add-Ins, access the SAP Library and choose: mySAP Technology Components -> SAP Web Application Server -> ABAP Workbench (BC-DWB) -> Changing the SAP Standard (BC) -> Business Add-Ins.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 1   Critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
OHFBNTL05 GB United Kingdom
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20040225 
SAP Release Created in 200