Application Development and Automation 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: 
Read only

Updating Infotype using function module HR_INFOTYPE_OPERATION

Former Member
0 Likes
1,533

Hi There ,

lets understand my problem related to updation of infotype .

I have a record maintained in my table within date range 01/04/2010 to 31/12/9999.

now i update my new tax rate from 1st June 2010 .

The requirement is i shall two records now :

First record from 01/04/2010 to 31st may 2010 shall be maintained .

hence we need to modify the existing record only changing the end date .

Second record will be a new record starting from 1st june , ending 31/12/9999.

Approach followed by me :

using HR_READ_INFOTYPE to read the data .

Then using HR_INFOTYPE_OPERATION

---> ACTION : "MOD" to update existing record by passing end date as 31st may 2010 .

Then using action : INS to create a new record .

but this approach is failing since i am itself not able to modify the existing record .

Please let me know the correct way of updating the record .

Regards,

Abhishek.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,043

It depends on infotype. Every infotype has a time link.

Sometimes you can have a record for a day or more than one. You can have continuous records or not.

I think your infotype has class 1 and it's continuous in time to the end (99991231)

1 REPLY 1
Read only

Former Member
0 Likes
1,044

It depends on infotype. Every infotype has a time link.

Sometimes you can have a record for a day or more than one. You can have continuous records or not.

I think your infotype has class 1 and it's continuous in time to the end (99991231)