Skip to Content
0
Former Member
Jun 26, 2009 at 08:28 PM

Trying to change ENDDA of existing PA0014 via HR_INFOTYPE_OPERATION fails

402 Views

Hello!

I'm reading in a record from PA0014 and need to change it's ENDDA (MOD). That's the requirement, i.e., they don't want to delimit it and create a new one - they just want to change the ENDDA of the one that already exists.

So, I'm using HR_INFOTYPE_OPEATION but it fails with "Infotype does not exist". I've read the current record into a structure via HR_READ_INFOTYPE / READ TABLE. The ENDDA of this record will be 12/31/9999 since it's the active one.

Then I change the ENDDA of the structure to some other date and then call HR_INFOTYPE_OPERATION. I pass the BEGDA/ENDDA of the current record I've read as VALIDITYBEGIN/VALIDITYEND, respectively and the new ENDDA is in the structure I've passed to the RECORD parameter.

Can I not change the ENDDA of an infotype this way? If not, how can I do it?

Thanks!