Skip to Content
0

Changing Start Date (BEGDA) in Infotype 0001

Jan 13, 2017 at 06:30 PM

53

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Mangesh Parihar Apr 19, 2017 at 07:53 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Volker Binder Apr 19, 2017 at 08:16 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded