Skip to Content

FM IDOC_INPUT_HRMD not working properly

Nov 23, 2017 at 12:07 PM


avatar image

Dear All,

I am using FM IDOC_INPUT_HRMD to update infotype data but this FM is deleting the values already present.

For example:

When I use FM IDOC_INPUT_HRMD to update data in infotype 0000, it deletes all the entries already present in 0000 against that pernr and creates a single entry in it(which lacks few basic fields like AEDTM and UNAME). Also, it deletes data for that particular pernr from all the other infotypes.

Any suggestion/help would be highly appreciated.

Thanks in advance!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jörgen Lindqvist Nov 28, 2017 at 02:53 PM

When dealing with HRMD_ Idocs, be aware of the difference between Insert and Update!

If you use the operator "I" Insert, this will delete everything that might already be existing for a certain personnel number and infotype, and after that only insert the data provided in the Idoc. "U" Update will keep the existing data and add/change the update.

Sounds like this might be the case for you here...

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Jörgen,

Thanks for your response. I checked and found it was an issue of 'I' in place of 'U'. I can now modify infotypes successfully. Thanks again.

I have another issue now, when I insert a record now with I', it creates record in 0000, 0001 and 0002. But for rest of the infotypes like 0006, 0009 etc, I receive an error: "Object 01 ,P ,<pernr> does not exist: infotype 0006 cannot be created" Could you please suggest some way out for this?



Iftah Peretz
Nov 28, 2017 at 01:08 PM


Sorry to be the "bad guy" here, but, you are using a "Not released" FM (you can see it in the 'Attributes' tab of the FM), thus, you should not expect a certain behavior.

You should use "Released" FM/BAPI/Classes or develop your own logic (based on your needs).

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Iftah,

Thanks for the information.