Skip to Content
0
Former Member
Nov 24, 2006 at 10:09 AM

read cluster data ZL using FMs....

510 Views

hi All,

I am facing a problem with reading cluster data. I am trying to extract data for employee number '08002891' for the table ZL for the period of january. I executed the program RPCSTB2 and it shows me the data. But when i run my own program using the function module CU_READ_RGDIR and HRCM_PAYROLL_RESULTS_GET, i dont get any data. I have checked the authorizations and it does not give me problem. I am sending the code, please check out and help me if possible. I knw there is data for sure.

help me if u can plzzzz..

thanks in advance...

reena..

INCLUDE RPC2ZL00.

tables : PCL2.

Infotypes : 0000,

0001.

TABLES: pa0000, "HR Master Record: Infotype 0000 (Actions)

pa0001,"HR Master Record: Infotype 0001 (Org. Assignment).

TYPES : PAYROLL_RESULT_TAB1 TYPE PAY99_RESULT.

DATA: PAYROLL_RESULT_TAB TYPE table of PAYROLL_RESULT_TAB1 with header line,

PAYROLL_RESULT_HEADER type line of HRPAY99_RT.

CALL FUNCTION 'HRCM_PAYROLL_RESULTS_GET'

EXPORTING

PERNR = '08002891'

BEGDA = '20060101'

ENDDA = '20060102'

IMPORTING

  • SUBRC =

  • MOLGA =

PAYROLL_RESULT_TAB = PAYROLL_RESULT_TAB[].

write : 'its done'.

_____________________________________________________________________

i check the tbale payroll_result_tab and it does not have any data..

any suggestions plz..