‎2009 May 11 7:45 AM
Hi Experts,
I'm using the Function module HR_READ_INFOTYPE and the code is as following
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = g_pernr
infty = '0002'
TABLES
infty_tab = it0002.
CLEAR wa0002.
READ TABLE it0002 INTO wa0002 WITH KEY pernr = g_pernr.
it is not fetching the data for a particular PERNR but the sy-subrc is 0 after the executing the Function module.
Please help me out.
Thanks
Nivash S
‎2009 May 11 9:17 AM
Hi Nivash,
Did you try checking the table..!
may be there are null values,,,!
since sy-subrc will be o only if the data gets selected...!
Thanks & regards,
Dileep .C
‎2009 May 12 7:48 AM
Hi Experts,
Thanks for Ur advice. Actually there is no authorization for that particular PERNR thats why it has skipped that particular record.
Thanks Once again,
Nivash S
Edited by: Nivash S on May 12, 2009 8:49 AM
‎2009 May 11 9:24 AM
Can you please ensure that the PERNR number is passed...with leading zero's...
Data type of PERNR is NUMC, so just check by passing leading zero's...
Let us know, whether the problem is solved or not!
‎2009 May 11 9:37 AM