edwinguedez
12/4/2013 - 1:58 PM

Get payroll result

Get payroll result

FORM f_get_payroll_result USING    ud_pernr TYPE pernr_d
                                   ud_begda TYPE begda
                                   ud_endda TYPE endda
                          CHANGING ut_payve TYPE hrpay99_tab_of_results "TODO: validar typo de dato
                                   ud_subrc TYPE sysubrc.
  " Datos locales
  DATA: ld_subrc TYPE sysubrc.
  DATA: ld_molga TYPE molga.
  " Lectura de resultados de nómina
  CALL FUNCTION 'HRCM_PAYROLL_RESULTS_GET'
    EXPORTING
      pernr              = ud_pernr  " pernr_d
      begda              = ud_begda  " begda
      endda              = ud_endda  " endda
    IMPORTING
      subrc              = ld_subrc  " sysubrc
      molga              = ld_molga  " molga
      payroll_result_tab = ut_payve. " hrpay99_tab_of_results

ENDFORM.