Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding the Function module HR_READ_INFOTYPE

Former Member
0 Likes
725

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

4 REPLIES 4
Read only

Former Member
0 Likes
651

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

Read only

0 Likes
651

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

Read only

former_member212005
Active Contributor
0 Likes
651

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!

Read only

varunchop
Explorer
0 Likes
651

Also try to use BYPASS_BUFFER = 'X' while calling the FM.