100% found this document useful (6 votes)
3K views8 pages

SAP HCM - Creating Custom Payroll Function

This document provides steps to create a custom payroll function in SAP HCM. It describes the payroll schema and functions, how to create a new function using transaction code PE04, how to define input and output parameters, and how to assign and transport the new function. It also provides an overview of how to call the custom function within a payroll schema.

Uploaded by

sainath89
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (6 votes)
3K views8 pages

SAP HCM - Creating Custom Payroll Function

This document provides steps to create a custom payroll function in SAP HCM. It describes the payroll schema and functions, how to create a new function using transaction code PE04, how to define input and output parameters, and how to assign and transport the new function. It also provides an overview of how to call the custom function within a payroll schema.

Uploaded by

sainath89
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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.

You might also like