Skip to Content
0
May 08, 2013 at 07:23 AM

Preoblem in HR_INFOTYPE_OPERATION

344 Views

Hi Experts,

I am facing one problem related to HR FM 'HR_INFOTYPE_OPERATION'. I will explain step by step:

1- I have to upload one record in inoftype from ouye excel file that is :

Personal Number # Last Name First Name deduction Start Date End Date Wage Type Amt PA

000001 ABACD PQRS R 20121001 20130207 U162 0 U2

2- and currently infotype 00014 is having two records:

Wage Type Begin Date End Date Amount

U162 2012/10/01 2012/12/31 22.50

U162 2013/01/01 9999/12/31 21.25

3- We call the FM 'HR_INFOTYPE_Operation' to delete first record that is (using DEL operation)


Wage Type Begin Date End Date Amount

U162 2012/10/01 2012/12/31 22.50

so only one record remains that is ::

U162 2013/01/01 9999/12/31 21.25

4- Now we have to call again that FM to insert the file record that has to be uploaded


Personal Number # Last Name First Name deduction Start Date End Date Wage Type Amt PA

000001 ABACD PQRS R 20121001 20130207 U162 0 U2

5- But after applying FM 'HR_INFOTYPE_OPERATION' with 'INS' Operation
the records refected are:

Records as coming after insert
Wage Type Begin Date End Date Amount
U162 2013/02/08 9999/12/31 21.25
U162 2012/10/01 2013/02/07 22.50

6- BUT As per requirement records should be :

Wage Type Begin Date End Date Amount


U162 2012/10/01 2012/12/31 22.50
U162 2013/01/01 2013/02/07 21.25

This FM is inserting one record of the file but again creating one other from the next start date 2013/02/08 - 9999/12/31
How to avoid that and create the record as per requirement.

Please help.

Regards,

Ashish