Sunteți pe pagina 1din 8

Creating custom payroll function

This document contains step by step procedure to create custom payroll functions. Before starting development procedure, we will cover basic details of payroll Schema and payroll functions. Payroll Function and Schema: Payroll function and Schema plays very important roles in SAP HCM payroll run. Functions are used to calculate different amounts on the basis of Infotype values, wage type values etc. SAP provides many standard functions to calculate the amount for payroll run. Now lets have a small description of Schema. Schema is just a collection of payroll functions executed in specific order. You can create Schema using transaction code PE01. SAP Payroll driver reads the schema and execute the embedded payroll functions. Let create payroll function. Execute transaction code PE04. Pass Custom function name and press Create.

Now click on Green Tick in pop up box.

Now pass the function description. There is option available to create function to corresponding to any countries. Select Other Countries.

Next click on Input parameters.

Now we come to important features of payroll functions. Let have a small idea about Input parameters and output parameters. Again theory and boring part :- ( . But we need to be sure what input parameters and what output parameter we require to calculate the amount. Payroll function use some internal tables to calculate the amount. Below are some of the tables and concept for internal tables in payroll function. Process Input Table (PIT) : This table contains the wage type details with the amount and other information. Its having the structure of internal table IT, which you can access at runtime to calculate the values. Process Result Table (PRT) : This table is use to give the results in RT table.PRT work much the same as PIT, looping through the RT and applying logic from a rule Now let resume again from Input parameters screen. Below is the screen after clicking on Input parameters. Now click on change.

Now click on New Entries.

Now pass the values.

Now maintained the output parameters.

Now come back and save the data. System will ask to assign the function to a SAP Standard package. After assigning, it will ask for a transport request and later system will activate the function. Now you need to create a Form routine with name FUZTEST in include PCBURZ990. For that you need to require access key. After adding the Form, you can write the business logic. Now lets see the below steps to use your Custom Payroll function in Schema. Execute the PE01 transaction and pass the required Schema in which you want to call your custom function

Click on change. Here you can insert new lines and use to Custom function.

S-ar putea să vă placă și