cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Update Infotype 41 by using HR_Infotype_Operation

Former Member
0 Likes
1,399

Hi Guru,

I am new in HR ABAP and I have a requirement to update Infotype 41 with different types of date type (42 Last Working Days, ZH For Resignation Date) and value. It is working when fixed one date type with value in Dat01 field and Dat02.

But it comes difficult when DAT01 already have with some different date type. I don't want to overwrite those fields if records already exists then in next field the value should be inserted.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Hello,

If I understood your question correctly you're trying to update infotype 0041 fields DAT01 and DAT02 - with different dates.

The data type for those 2 fields is DATS length 8 so the format they probably need to be put into the system can be YYYYMMDD.

For making sure not to override record and only insert new one in the FM 'HR_INFOTYPE_OPERATION' you can make sure the operation is 'INS' Insertion and not 'MOD' Modification. [Using BAPI_EMPLOYEE_ENQUEUE and BAPI_EMPLOYEE_DEQUEUE is also important as it would allow only 1 employee record to go through the infotype updation]

Hope this was useful.