Skip to Content
0
Former Member
Oct 11, 2006 at 05:20 PM

Problem with getting payroll result

68 Views

Hello,

I was trying to write a form like the following:

*&---------------------------------------------------------------------*
*&      Form  get_payroll
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
 FORM get_payroll.
   CALL METHOD go_prr->get_pernr_payr_results_allin1
     EXPORTING
       im_pernr                      = pernr-pernr
     IMPORTING
       ex_pernr_payroll_results      = gt_pernr_pr
     EXCEPTIONS
       country_version_not_available = 1
       no_authorization              = 2
       no_entries_found              = 3
       read_error                    = 4
       OTHERS                        = 5.
   IF sy-subrc <> 0.
     MESSAGE e209(ph).
*   Error occurred while exporting archived payroll results
   ENDIF.
 ENDFORM.                    "get_payroll

And although my pernr is a valid value, and gt_pernr_pr has all the lines of results (i.e., all the fields), but the value is 0 for all these field.

I am wondering whether there is anything missing somewhere such that the actual field values are not imported.

Thanks a lot!

Regards,

Anyi