Skip to Content
author's profile photo Former Member
Former Member

BAPI_HRMASTER_SAVE_REPL_MULT

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 05:26 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Glen,

      I guess that ! is use for fields that will be generated by the program. For example, for new employee the number field will be populated based on number ranges.

      To update infotypes, you can also use function module HR_INFOTYPE_OPERATION. You can look at documentation on this function module on how to populate the parameters.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 08:18 AM

    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
    10|10000 characters needed characters exceeded

    • Hi Glenn

      Standard function to maintain PA-data is <b>"HR_INFOTYPE_OPERATION"</b> (search this forum to find further discussions on this FM) and for PD-data <b>"RH_INSERT_INFTY"</b>, <b>"RH_UPDATE_INFTY"</b>, <b>"RH_DELETE_INFTY"</b> and for specific to infotype 1001 although the previous ones also handle it we use <b>"RH_INSERT_INFTY_1001"</b>, ... Documentations for these FMs exist. Generally, we pass key data and the table containing flat records as rows to parameters of the FM.

      <i>About the code you have sent above</i>, you can not use "RH_INSERT_INFTY" to insert records for the infotype "0000". As stated above, you should have used "HR_INFOTYPE_OPERATION".

      <i>If you still want to use <b>BAPI</b></i>, for each infotype record you should fill also infotype and object headings using parameters <b>"BAPIHRINF"</b> and <b>"BAPIHROBJ"</b>. (These are BO method parameters, find their corresponding names at the FM's interface, I guess: BAPIHROBJ--> HR_OBJECT_HEADER, BAPIHRINF --> HR_INFOTYPE_HEADER)

      <i><b>e.g.</b></i>

      BAPIHROBJ-PLAN_VER = '01'.
      BAPIHROBJ-OBJ_TYPE = 'P '.
      BAPIHROBJ-OBJ_ID = '12345678'.
      BAPIHROBJ-PROOF = 'X'.
      BAPIHROBJ-OPERATOR = 'U'.
      BAPIHRINF-PLAN_VER = '01'.
      BAPIHRINF-OBJ_TYPE = 'P '.
      BAPIHRINF-OBJ_ID = '12345678'.
      BAPIHRINF-INFOTYPE = '0006'.
      BAPIHRINF-SUBTYPE = '1 '.
      BAPIHRINF-FROM_DATE = '20010205'.
      BAPIHRINF-TO_DATE = '99991231'.
      EMPLOYEE_PRIVATE_ADDRESS-OBJ_ID = '12345678'.
      EMPLOYEE_PRIVATE_ADDRESS-INFOTYPE = '0006'.
      EMPLOYEE_PRIVATE_ADDRESS-SUBTYPE = '1 '.
      EMPLOYEE_PRIVATE_ADDRESS-TO_DATE = '99991231'.
      EMPLOYEE_PRIVATE_ADDRESS-FROM_DATE = '20010205'.
      EMPLOYEE_PRIVATE_ADDRESS-CHANGED_ON = sy-datum.
      EMPLOYEE_PRIVATE_ADDRESS-CHANGED_BY = sy-uname.
      EMPLOYEE_PRIVATE_ADDRESS-STREET = 'Neurottstrasse 16'.
      EMPLOYEE_PRIVATE_ADDRESS-CITY = 'Walldorf'.

      <i>And for a last thing</i>, if you find answers useful you can thank people by assigning points to their posts.

      For assigning points, a thread must be marked as a question. To mark this thread as a question, edit your first post by pressing the pencil icon at its header, check the relevant checkbox at the next screen under the message box and hit "Save".

      After, you can assign points by pressing the yellow icon at the header of EACH post. You can assign;

      - one 10 points (solved)

      - two 6 points (very helpful answer)

      - many two points (helpful answer)

      Kind regards...

      *--Serdar

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 03:51 PM

    What I forgot to mention is that I am trying to move data from an existing company within SAP to a new company. So the process is completely within SAP.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.