on 2007 Jul 10 2:35 PM
HI-
I am creating Dependent records (in IT0021) for an employee in my program.
After this particular statement the IT0021 is actually getting updated (I am running my program in debugging mode and after this particlular statement which creates the records; going into PA20 and seeing the IT0021 records for that particular employee).
After this I am trying to read IT0021 using HR_READ_INFOTYPE; but the internal table is not getting poupulated.
I am wondering that it is something related to the records getting commited or not when HR_READ_INFOTYPE is trying to fetch records; but then again the records are visible in PA20 for IT0021.
So I am not sure of what is happening.
Any Ideas will be greatly appreciated and rewarded.
Thanks.
Ramesh.
Make sure that you are passing the correct data in the exporting parameters for HR_READ_INFOTYPE. Your dates need to be in 'YYYYMMDD' format and the infotype should be '0021'. Also make sure that the pernr field you are passing is filled. I hope this helps.
- April King
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Ramesh,
What is the value of sy-subrc for HR_READ_INFOTYPE ?
I hope it is not 4 or 12.
4 Some infotype records are not returned by the FM because
authorizations are missing.
12 The FM does not return any infotype records because
authorizations are missing.
Hope this helps.
Kindly reward in case useful.
Regards & Thanks,
Darshan Mulmule
User | Count |
---|---|
116 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.