cancel
Showing results for 
Search instead for 
Did you mean: 

Steps to create a custom function in pe04 and to create the code include

Former Member
0 Kudos

I am new to HR time management.i require to create a custom quota

function in pe04 .

I believe it requires me to first include the source code under

the include RPTMOZ00..Its not editable and throws mesage that

its lckd by some other 'client'..Do i need some access key

there? moreover without this i do not know how to proceed in

pe04.I dont evn have any idea what all should be put in the

paramaters in the pe04 attributes.Just have been told about the

countries to specify there. please suggest what all inputs

should i ask my functional people to provide on this and what

all can i handle technically and how..any help would be

appreciated.Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

Hi,

Step by Step creation of SAP Payroll Funcitons:

1) Follow the menu path

Human Resources>>Time Management>>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 1 RT

99 2 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.

Reward points if helpful.

Regards,

Manoj.

Former Member
0 Kudos

Thanks for your answer Manoj..its very well relevent here...only differnce being that I am processing time managemnt instead of payroll..but the process anyhow remains same..

Yes I am now clear that i definitely need to procure teh access key to write the include code.

As you suggested here that we have to put table name(CRT,RT) into the parameters section, I am not aware which tables to put in here for time management.Just require this help that should this be askd from the functional people or not, as in if its technically determined then i must go dig into it...

Former Member
0 Kudos

Hi,

You definetly require Functional help because some time they need to include the functions in rules or schema.

All the Best!!

Regards,

Manoj.