I need to create new info types: 0, 1, 2, 1000 and 1001 using BAPI_HRMASTER_SAVE_REPL_MULT. The error message I get is: No entry in HR_INFOTYPE_HEADER for infotype nnnn for object", where nnnn stands for the info types as mentioned before. In the Bapi Documentation it is said to use the exclamation mark ⚠️ when creating new objects. The system provides the object-id´s. What could cause the error? Thanks in advance.
Glenn
Message was edited by: Glenn Tjon Poen Gie
Message was edited by: Glenn Tjon Poen Gie
Hello Glenn,
I'm not very familiar with the HR module, but you have said in your post that the BAPI documentation says that we have to use the '!' (exclamation mark) for creating new objects. I have just had a look at the documentation for this BAPI and found no reference to this exclamation mark !!
Could you please re-check the documentation and verify?The closest I could find is that the documentation says we need to have I / U / D in the HR_OBJECT_HEADER-OPERATOR, according as whether we want to insert, update or delete.
Further, there's a small note towards the end of the documentation which you might want to consider.
"If the error messages are not precise enough for you to localize the error, you can import data to the R/3 System using the 'RH_HRMASTER_SAVE_REPL_MULT' function module instead of the BAPI. The data records for error analysis are displayed online using report 'RHALEBAPIPROOF'.
Hope this helps,
Regards,
Anand Mandalika.
Hi,
Just a suggestion :
Why not try using function 'RH_INSERT_INFTY' instead. It is much easier to use. You only have to pass the infotype details.
If you do use this one, make sure you also call the following functions to clear the buffers each time otherwise performance is hampered :
CALL FUNCTION 'RH_CLEAR_BUFFER'.
CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
Kind regards
Colin.
Add a comment