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: 

Changing Start Date (BEGDA) in Infotype 0001

former_member188001
Active Participant
0 Kudos

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

2 REPLIES 2

mangesh_parihar
Explorer
0 Kudos

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

former_member226519
Active Contributor
0 Kudos

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.