Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Infotype record

former_member188001
Active Participant
0 Kudos

I have a requirement wherein, I need to copy existing record for an Infotype and create another record with different start and end date. What is the best way to do it and how to do it. Thanks for all your help.

1 ACCEPTED SOLUTION

former_member226519
Active Contributor
0 Kudos

the record should look like this (example is infotype 0006)

7 REPLIES 7

former_member226519
Active Contributor
0 Kudos

Use function module HR_INFOTYPE_OPERATION with operation COP. Read documentation how to use it.

You will have to enqueu/dequeue the personnel number before/after infotype operation.

former_member188001
Active Participant
0 Kudos

Thanks Volker but it gave me shortdump

Fehler in ASSIGN-Zuweisung im Programm "SAPLHRMM".

former_member188001
Active Participant
0 Kudos

I am testing this FM in SE37..and passing following

former_member226519
Active Contributor
0 Kudos

record is not "PA0001" but a record of structure P0001

former_member188001
Active Participant
0 Kudos

Sorry, that was a typo. I tried with P0001 but still got the same shortdump.

former_member226519
Active Contributor
0 Kudos

the record should look like this (example is infotype 0006)

former_member188001
Active Participant
0 Kudos

Thanks Volker. The issue what that, I was passing internal table to the parameter Record instead of passing the structure. The issue is now resolved. Thanks for all your help.