ITS ABOUT SAP-HR ONLY

Saturday, October 20, 2007



Creating Customer Specific Functions for HR Payroll

During the execution of payroll, 'Personnel Calculation Schema' (created using Transaction: PE01) is used to calculate the employee's salary. The schema comprises of funtions (created using Transaction: PE04), inorder to incorporate cutomer specific calculation routines during execution of payroll, SAP allows you to create payroll functions in customer namspace (Starting from Y or Z).


Step by Step creation of SAP Payroll Funcitons:


1) Follow the menu path

HumanResources>>TimeManagement>>Administration>>Tools>>Funtions/Operations or transaction PE04. Enter a four digit name for e.g ZIABC, and press the create button, enter the description. On creation the system proposes the name of the routine use it, or enter a name of your choice by selecting the option 'Self-defined'.


2) During the execution of payroll some tables are filled with wage types and there amounts to make these tables available to your routine enter the name of the table for e.g (RT or CRT) in the input parameters, and to make the changes done to the data in the tables avaiable to the payroll enter the name of the table in the Output parameters as well.


Input Parameters
----------------

Ctry

Num

Object Name

99

99

1

2

RT
CRT


and same shall be done in the Output Paramters if required.


3) Create an include in the program PCBURZ990 (using Transaction: SE38), in which create a subroutine with the name supplied by SAP or the name selected by you during Funtion creation, in our case, it is FUZIABC.


Note: The program PCBURZ990 is in SAP Namespace, so an Access Key
will be required before you can proceed. But it will not be overwritten during any upgrade.


*Example of the subroutine
*-------------------------


FORM FUZIABC.
*enter the code
ENDFORM.

4) After this activate the program the Funtion and add it in the schema used for payroll processing.

No comments:

http://sap-career.blogspot.com