SAP User Exits to Add functionality to the PBO and PAI of SAP HR infotypes

In order to add additional functionality and checks to the PBo & PAI of HR infotypes you need to implement enhancement 'PBAS0001' using CMOD (See implementing enhancements, step 2+). Once you have done this you need to go to the function modules EXIT_SAPFP50M_001 & EXIT_SAPFP50M_002 and create the includes within them i.e. ZXPADU01 and ZXPADU02. You can now enhance the functionality of HR infotype PBO and PAI by simply adding code to these includes. See example below:

HR Infotype User exits

Include ZXPADU01 for the PBO module
Incldue ZXPADU02 for the PAI module
*Example code.
CASE innnn-infty. "Infotype?
  WHEN '0001'.  "infotype 0001
*  Processing code
  WHEN '0008'.  "infotype 0008
*  Processing code.
*          etc.
  WHEN OTHERS.
ENDCASE.

Related Articles

ABAP Enhancements - Modify SAP standard code using the SAP enhancement transaction CMOD
SAP BADI enhancement implementation (Business Add-In)
Changing SAP Data Element documentation (F1 help text)
Changing SAP Data Element field text
Find SAP BADI triggered from a SAP transaction, also find tcode from BADI name
Access values outside the SAP customer exit
Adding fields to SAP standard Infotype
SAP User exist enhancements
SAP Field Exits implementation to update global dictionary field details
SAP filter BADI allows multiple implementations to be active
SAP migrated BADI using enhancement point implementation
Modifying Standard SAP System and help Menu options
Modifying Standard SAP System and help Menu options
SAP mutiple use BADI and enhancement spot implementation (Business Add-In)
SAP User exits to allow developers to enhance standard SAP functionality without modifiy SAP code