09-24-2008 8:11 PM
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!
09-25-2008 3:32 AM
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
09-25-2008 3:32 AM
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
09-25-2008 3:36 AM
09-25-2008 4:02 AM
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.
09-25-2008 4:11 AM
hi,
as mentioned by Prabhu Peram, check for the value returned in export parameter "subrc".
probably you do not have the required authorisations.