Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to read payroll data for a particular month

Former Member
0 Kudos
923

Hi to all

Please tell me how to read payroll data from RT table for a particular month.

How to delimit for a particular month.

Regards

Anubhav

1 ACCEPTED SOLUTION

Former Member
0 Kudos
192

Hi Anubhav,

We cannot give the full code, but follow these steps and try to build your program.

Reading Payroll Data:

1. Fetch the Payroll runs from result directory.

Use Function Module - CD_READ_RGDIR / CU_READ_RGDIR

2. You need to declare the fields molga,seqnr,relid.

Internal tables of type PC261 and of type PAY99_ReSULT.

3. Identify required sequence number or last sequence number from result

directory internal table, by passing corresponding date and enddate.

Use F'n Module - CD_READ_LAST

4. Fetch Cluster table name or clusterid or relid for employee by passing MOLGA

to table T500L.

5. Extract Payroll Result data from table clusters.

Use F'n Module - PYXX_READ_PAYROLL_RESULT

6. Process the Records.

Hope this helps you.

Regards,

Chandra Sekhar

3 REPLIES 3

Former Member
0 Kudos
192

Hi

Go through the link given below :

Hope it will solve your problem

Thanks & Regards

Nikunj shah

Former Member
0 Kudos
193

Hi Anubhav,

We cannot give the full code, but follow these steps and try to build your program.

Reading Payroll Data:

1. Fetch the Payroll runs from result directory.

Use Function Module - CD_READ_RGDIR / CU_READ_RGDIR

2. You need to declare the fields molga,seqnr,relid.

Internal tables of type PC261 and of type PAY99_ReSULT.

3. Identify required sequence number or last sequence number from result

directory internal table, by passing corresponding date and enddate.

Use F'n Module - CD_READ_LAST

4. Fetch Cluster table name or clusterid or relid for employee by passing MOLGA

to table T500L.

5. Extract Payroll Result data from table clusters.

Use F'n Module - PYXX_READ_PAYROLL_RESULT

6. Process the Records.

Hope this helps you.

Regards,

Chandra Sekhar