cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO CAPTURE PAY RESULTS IN REPORT OR SMART FORM.

former_member564796
Participant
0 Kudos
Dear All,
Gud Afternoon....
As I know our pay results are stored in cluster tables. I am preparing one report and one Smart form with Abaper.
So want to know what information I will give to abaper to catch the payroll result data.I have communicated PCL2 table & function module PYXX_READ_PAYROLL_RESULT.
I thing Abaper is new to take the HR payroll data to report or Smart Form. So let me know any imput which i can give to Abaper for completion of task soon.
Thanks & Regards
Sanjukta Nayak

Accepted Solutions (0)

Answers (3)

Answers (3)

venkateswaran_k
Active Contributor
0 Kudos

Hi Sanjukta,

Ask your abaper to use the following function.

This will reuturn internal table as below  (RT)

In that you can give your wage types - so that he can pickup from them

    CALL FUNCTION 'HRCM_PAYROLL_RESULTS_GET'
      EXPORTING
        pernr              = wa_pa0001-pernr                "'30000004'
        begda              = pnpbegda
        endda              = pnpendda
      IMPORTING
*       SUBRC              =
*       MOLGA              =
        payroll_result_tab = li_hrpay99_tab_of_results.

    LOOP AT li_hrpay99_tab_of_results INTO lwa_hrpay99_tab_of_results.
      li_hrpay99_crt[] = lwa_hrpay99_tab_of_results-inter-crt[].
      li_hrpay99_rt[] = lwa_hrpay99_tab_of_results-inter-rt[].
    ENDLOOP.

Ask yur abaper to use li_hrpay99_rt[]  - which will have Wagetype wise amount posted.

Regards,

Venkat

former_member564796
Participant
0 Kudos

Thanks, I will communicate with the Abaper...

Former Member
0 Kudos

Hi Sanjukta,

Payroll result not store in any Transparent table it stores in cluster table or Logical Table as you told PLC2 and if you want to pick amount of wage types then field is BETRG and function moulde to access PLC2 is PYXX_READ_PAYROLL_RESULT.

I think that is enough information to an ABAP r to fetch data from PLC2.

Thanks

former_member564796
Participant
0 Kudos

Thanks for the imputs.........

Former Member
0 Kudos

Hi Nayak,

You can get the result data from PCL2 Cluster i.e. through function module PYXX_READ_PAYROLL_RESULT, CU_READ_REDIR, as per logic you need to provide the wage types to abaper.

Regards

Ratan

former_member564796
Participant
0 Kudos

Hi,

Yes i understand. But my Abaper is asking Transparent table and field name.

In this case what i will communicate. I have given PCL2 cluster table, function module etc.

Thanks

Sanjukta