Application Development and Automation 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: 
Read only

Copy Infotype record

former_member188001
Active Participant
0 Likes
3,164

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
Read only

former_member226519
Active Contributor
0 Likes
2,623

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

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.

7 REPLIES 7
Read only

former_member226519
Active Contributor
0 Likes
2,623

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.

Read only

former_member188001
Active Participant
0 Likes
2,623

Thanks Volker but it gave me shortdump

Fehler in ASSIGN-Zuweisung im Programm "SAPLHRMM".

Read only

former_member188001
Active Participant
0 Likes
2,623

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

Read only

former_member226519
Active Contributor
0 Likes
2,623

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

Read only

former_member188001
Active Participant
0 Likes
2,623

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

Read only

former_member226519
Active Contributor
0 Likes
2,624

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

Read only

former_member188001
Active Participant
0 Likes
2,623

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.