Skip to Content

Changing Start Date (BEGDA) in Infotype 0001

Hello all,

I looked at lots of post on this Infotype but could not get this to work.

I need to change the Start Date of the Infotype. What is the best way to do it via coding.

Thanks,

Salil

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 19, 2017 at 07:53 AM

    Hi Salil,

    Have you tried HR_INFOTYPE_OPERATION or HR_MAINTAIN_MASTERDATA FM?

    Please try it. You can also find sample code for the same in sap archive.

    Hope it helps.

    Regards,

    Mangesh

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 19, 2017 at 08:16 AM

    It is not that simple. BEGDA is key field so you can not change it by function module.

    if new BEGDA is before existing BEGDA you could insert a new P0001 record with new Begda and ENDDA = old BEGDA - 1

    if new BEGDA is after exiting BEGDA you could split the existing record at new BEGDA

    if you want to "move" BEGDA from old to new you will have to delete the old record and insert the new one.

    Add comment
    10|10000 characters needed characters exceeded