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

HR_READ_INFOTYPE Function Module

Former Member
0 Likes
1,056

Hi,

I am using the Function Module HR_READ_INFOTYPE and passing only two parameters PERNR = P_PERNR and INFTY = '0014'.

And for the tables, I have declared i_0014 having include structure PA0014.

But when I am executing the Program, It is not populating the i_0014 properly, actually there is no mandt field in the FM table and there is INFTY field in the FM table. So all the data is getting moved left by one place.

How can I fix this issue.

Regards,

Ishaq.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
776

Change the declaration of i_0014 to

DATA: i_0014 TYPE P0014 OCCURS 0 WITH HEADER LINE

instead of PA0014.

Let me know if still it doesn't work.

4 REPLIES 4
Read only

Former Member
0 Likes
777

Change the declaration of i_0014 to

DATA: i_0014 TYPE P0014 OCCURS 0 WITH HEADER LINE

instead of PA0014.

Let me know if still it doesn't work.

Read only

Former Member
0 Likes
776

Hi ishaq,

1. minor mistake

2. the variable has to be declared

as P0014 ( and not PA0014).

3. data . i_0014 like P0014 occurs 0 with header line.

regards,

amit m.

Read only

0 Likes
776

Hi,

Could you please let me know why we should not refer to PA0014 instead of P0014?

Thanks,

Balaji

Read only

Former Member
0 Likes
776

Thanks Radha and Amit.

It solved the problem