Skip to Content
-1

Copy Infotype record

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    Jan 18, 2017 at 03:10 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 17, 2017 at 03:45 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 17, 2017 at 05:17 PM

    Thanks Volker but it gave me shortdump

    Fehler in ASSIGN-Zuweisung im Programm "SAPLHRMM".

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 17, 2017 at 05:22 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 07:49 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 02:09 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 04:00 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded