2008 Jul 14 5:08 AM
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
2008 Jul 14 6:04 AM
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
2008 Jul 14 5:19 AM
2008 Jul 14 5:25 AM
Anubhav,
Just refer:
http://help.sap.com/saphelp_nw04/helpdata/en/a5/94e8288eec11d4b2fb00010220c65f/frameset.htm
Amit.
2008 Jul 14 6:04 AM
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