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 Infotype Update

Former Member
0 Likes
769

Hello,

In WDA, I am trying to update an infotype i.e. 0021.

I have made a call to the FM HR_INFOTYPE_OPERATION.

Now I get an error in the function module that the record that I am trying to access does not exist, although it is there.

This particularly happens when I use the operation mode as 'MOD'.

When I use operation mode as 'INS', it goes and updates the record.

So if the operation mode is 'INS' then it should insert a record rather than updating.

Happy Coding,

Rahul

Hello,

In WDA, I am trying to update an infotype i.e. 0021.

I have made a call to the FM HR_INFOTYPE_OPERATION.

Now I get an error in the function module that the record that I am trying to access does not exist, although it is there.

This particularly happens when I use the operation mode as 'MOD'.

When I use operation mode as 'INS', it goes and updates the record.

So if the operation mode is 'INS' then it should insert a record rather than updating.

Happy Coding,

Rahul

4 REPLIES 4
Read only

thomas_jung
Developer Advocate
Developer Advocate
0 Likes
735

This question doesn't appear to be really WDA related. Your problem seems to be with the function module call itself and the fact you are doing so from WDA is not relevant. I'm moving this thread to the ABAP general forum.

Read only

0 Likes
735

Hello Thomas,

Is there any standard documentation on this particular FM that I can read.

I have been trying to search but could not find one.

Happy Coding,

Rahul

Read only

0 Likes
735

I have no idea. I have no experience with HR or this particluar FM. I am only acting as the WDA forum moderator and letting you know you posted your question in the wrong forum (and moved it for you). Hopefully you can find help in this forum.

Read only

0 Likes
735

Rahul, for MOD you have to match the primary key of the target record which you want to update. I am sure that must not be matching thats why you are getting this error. Go into debugger and see if you have all the primary key values properly populated that you are passing to this FM