cancel
Showing results for 
Search instead for 
Did you mean: 

Update multiple records in one infotype

dan_spitzig
Explorer
0 Kudos
484

How can I update all records for a given PERNR in a specific infotype?  I am trying to use FM HR_MAINTAIN_MASTERDATA, but it seems that the PAKEY must be specified for each call to the FM.  Basically, what I am trying to do is set the TELNR (among other fields) for all records for a given PERNR in PA0006 to the same random value.

Accepted Solutions (0)

Answers (1)

Answers (1)

puneetLuthra08
Explorer
0 Kudos

This can be done in multiple ways -

One of the ways is to query the IT0006 and get the Start Date and End Date for the Records.

Then prepare a LSMW - with which you provide the necessary key data fields to identify that record and provide the TELNR value. Let me know if you have any more questions on this approach.

 

dan_spitzig
Explorer
0 Kudos
I am new to working with infotypes. Will I have to get the start and end dates for each record in each infotype? This could involve 100K+ records in each of the 7 infotypes we are updating?What is a LSMW, and how do I prepare it?
dan_spitzig
Explorer
0 Kudos
I am using the function module HR_MAINTAIN_MASTERDATA to update IT 0009 (PA0009), making a separate call for each record. If there are records for a single PERNR, but with different subtypes, it is changing all subtypes to '0'. I have the PSPAR filled with all the PAKEY values to identify the record to be updated. I also have those fields, as well as the fields to be updated, loaded into the PROP_T table. How can it change my infotypes to '0'?