Application Development and Automation 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: 
Read only

regarding abap-hr.

Former Member
0 Likes
316

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

1 REPLY 1
Read only

Shafiq_Rehman1
Active Contributor
0 Likes
290

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