Application Development 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: 

HR_READ_INFOTYPE not returning results...

Former Member
0 Kudos

Greetings!

I know there is a 167 record for this pernr. It has a begda of 1/1/2008 and an endda of 12/31/9999. Why is the call to HR_READ_INFOTYPE not returning it?

CALL FUNCTION 'HR_READ_INFOTYPE'
    EXPORTING
      pernr           = '00003667'
      infty           = '0167'
      endda           = '99991231'
    IMPORTING
      subrc           = p_subrc_out
    TABLES
      infty_tab       = p_infty_tab
    EXCEPTIONS
      infty_not_found = 1.

Thanks!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Steve,

whats the value of SUBRC ?

The SUBRC return value indicates whether and why infotype records are not returned by the function module. The following values are possible:

0 All infotype records are returned by the FM.

4 Some infotype records are not returned by the FM because

authorizations are missing.

8 There are no infotype records in the selection period.

You can respond to this value in the same way as SUBRC = 0.

12 The FM does not return any infotype records because

authorizations are missing.

Regards

Prabhu

4 REPLIES 4

Former Member
0 Kudos

Hello Steve,

whats the value of SUBRC ?

The SUBRC return value indicates whether and why infotype records are not returned by the function module. The following values are possible:

0 All infotype records are returned by the FM.

4 Some infotype records are not returned by the FM because

authorizations are missing.

8 There are no infotype records in the selection period.

You can respond to this value in the same way as SUBRC = 0.

12 The FM does not return any infotype records because

authorizations are missing.

Regards

Prabhu

Former Member
0 Kudos

<deleted>

sorry, misread the post

Former Member
0 Kudos

1. May i know the reason why are you not passing the BEGDA parameter in the FM ? Try passing BEGDA.

2. Check if you have authorizations to read the IT0167.

3. Check the SUBRC parameter.

Amandeep.

Former Member
0 Kudos

hi,

as mentioned by Prabhu Peram, check for the value returned in export parameter "subrc".

probably you do not have the required authorisations.