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

Update IT 1016 using BAPI_HRMASTER_SAVE_REPL_MULT

Hi,

I have to update Infotype 1016 using the BAPI FM "BAPI_HRMASTER_SAVE_REPL_MULT".

Two tables need to get updated, HRP1016 & HRT1016.

The Data in the HRT 1016 is a Table Data for Record in HRP1016.

Say: Orgunit O 10000001 has two standrd Profiles..

IF I go to PP01 and create the two standard profiles,

I will have a single record in HRP1016 which has a TABNR field value generated.

Now for this TABNR, I have two record in HRT1016 each corresponding to one Profile.

I need to create these three ( 1 + 2 ) entries using the FM.

The FM has Input structure BAPIHR1016 which allows only one profile per structure. Also it asks for the TABNR field, which I donot know until the actual creation.

If I send one profile & TAB_SEQNR as 00001, its working fine, generating a TABNR for me.

But when I send two records in the FM, one with TAB_SEQNR 00001 & other with TAB_SEQNR 00002, the second one is overwriting the first one, and I have only the second profile assigned.

Please help to solve this issue.

Thanks in Advance.

Suryakiran D.

I Passed the REF_TABNR Field in the BAPI STRUCTURE.

Say some value "ABCDEFGHIJKLM".

For the first record I send TAB_SEQNR as 000001, for the second record, I will send TAB_SEQNR as 000002.

The Key Data (HRP Data) remains the same for these two records.

The TABNR Field is also same for these two records which is the "ABCDEFGHIJKLM".

With this, the FM works fine.

It generated a new TABNR for me in the Database, the HRP1016 got created with this TABNR, the HRT Table has two records for this TABNR.

But, how & why did it ask for the TABNR when it is of really no relevance....?

Thanks,

Suryakiran D.

Message was edited by: Suryakiran Devavarapu

Message was edited by: Suryakiran Devavarapu

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 10:21 AM

    For updating the IT 1011, we have 6 fields in the BAPI.

    But when I go to PP01, i have only one field in input mode, rest all are disabled for input.

    Even if I fill the values in all the fields, only one is considered for update, and rest all are recalculated using this.

    Can someone please let me know how we can decide this.

    Thanks,

    Surya

    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.