HR_READ_INFOTYPE - Sy-Subrc = 0 but no data returned
Posted on 2003-10-29
I am using a 'HR_READ_INFOTYPE' function to read infotype 32 data. I have everything declared correctly and parameters are passed correctly as far as i can see. For me this function should work fine and return data. However the when the function executes the subrc is returned as zero but no data is place in the internal table.
There is definitely Infotype 32 data for the personnel numbers and i can get this data using a select statement. Can anybody please tell me why this code isnt working ? Are there any know problems with this function ?
Many thanks for your help. It is greatly appreciated.
Below is the code I have wrote.
DATA: it0032 LIKE p0032 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'HR_READ_INFOTYPE'
pernr = audit-pernr
infty = '0032'
infty_tab = it0032.
IF NOT it0032 IS INITIAL.
SORT it0032 BY begda DESCENDING.
LOOP AT it0032 WHERE begda LE p_cutoff.
out-data = it0032-tel01.
IF sy-subrc NE 0.