2008 Nov 03 12:45 PM
hai,
can any one tell me how to retrieve data from results table.
i am able to get all the wage types that are shown in
PC00_M99_CWTR ( Wage Type Reporter ) report,
but not all the wage types in PC00_M40_CALC (Start payroll) report.
can u suggest any code for retreiving data from results in PC00_M40_CALC report.
thanks
rajesh
hai,
can any one tell me how to retrieve data from results table.
i am able to get all the wage types that are shown in
PC00_M99_CWTR ( Wage Type Reporter ) report,
but not all the wage types in PC00_M40_CALC (Start payroll) report.
can u suggest any code for retreiving data from results in PC00_M40_CALC report.
thanks
rajesh
2008 Nov 03 9:56 PM
Here is how you get data from results table. I am not giving you whole program, but just a few main logical parts. If you cannot make it running then no one can help you.
*Get the payroll Register
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR = P_PERNR
TABLES
IN_RGDIR = IN_RGDIR
*Get the payroll Seq. Number for the Selection screen Date Range
CALL FUNCTION 'CD_READ_LAST'
EXPORTING
begin_date = pn-begda
end_date = pn-endda
IMPORTING
out_seqnr = seqnr
*Get the Payroll Results data for this sequence number
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
clusterid = 'RU' " for US
employeenumber = pernr-pernr
sequencenumber = seqnr
CHANGING
payroll_result = payroll
LOOP AT payroll-inter-rt INTO rt_header.
* Now rt_header will have all the information needed