cancel
Showing results for 
Search instead for 
Did you mean: 

get payroll event

Former Member
0 Kudos

Hi All,

How to Read and write payroll result using event GET PAYROLL.

Please provide me some code so that i can get some idea regarding it.

Thanks & Regards,

Amruta.

Accepted Solutions (0)

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

Did you take a look at the sample program EXAMPLE_PNP_GET_PAYROLL in your system?

~Suresh

Former Member
0 Kudos

whe nwe use the get payroll it will retrieve all the payroll data from starting to ending ................................ u will the structure when u call the get payroll like pay99_result!

!

inter

!

nat

!

evp

Former Member
0 Kudos

Hi ,

thanx for the help..

I had 1 more query

what is the significance of following statements.....

GET pernr.

CREATE OBJECT pay.

CALL METHOD pay->read_result IMPORTING list = it_rgdir.

CALL METHOD pay->write_result EXPORTING list = it_rgdir.

GET pernr LATE.

Thanx in advance.

Former Member
0 Kudos

Hi Amruta,

GET PERNR is an Event used for PA Reports and its significance is

GET PERNR. " Loop

;;;;;;;;;;

End-Of-Selection. '" Endloop.

these statments act like a loop and endloop.

at GET PERNR Statement System reads the First Employee from the Database and all the infotypes data that you declared under INFOTYPES statments related to that perticular employee will be fetched into there corresponding P Internal tables. like 0000(Actions) we have P0000 and so on., Then we can Process the required information to the basiclist.

This continues till the Last employee and ends at End-of-Selection event.

CREATE OBJECT pay. No IDEA

CALL METHOD pay->read_result IMPORTING list = it_rgdir.

This Function module is used to get the Payroll results into internal table it_rgdir of type PC261 for a Perticular Employee.

CALL METHOD pay->write_result EXPORTING list = it_rgdir.

Once the Employee Payroll Results were fetched and for furthur process.

Executes the code following "GET dbtab LATE." only when all the subordinate tables have been read and processed.

Regards,

Narendra.