Application Development 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: 

How to create IT3213 trought HR_INFOTYPE_OPERATION

0 Kudos

Hi Gurus,

i hace created a program that creates all infotypes for a new partner, now i hace a problem with the it3213, it is being created properly in two subtypes (we have 3) now the problem is taht subtyoe that is wrong, indeed gets created but it do not take the right waers, so my pension calculation squema fails and the amount is incorrect.

I try even send the structure Q3213 as an aditional record but still got bad creation. I am saving the P3213 field in correct form (fixdd01, fixxx02, etc) and both structures are send filled with right data.

I execute in dialog mode '2' but for some reason the field so not take the proper input... i need help.... please... thanks!!!

1 ACCEPTED SOLUTION

antoine_foucault
Active Contributor
0 Kudos

Miguel:

It looks like your issue is that the currency is being defaulted during insert operation in form get_default of module-pool MP321340.

If you don't want to change to customizing so that FM RP_GET_CURRENCY return the correct currency for your country grouping in T500C or T510F (because it will change the behavior of the system beyond inserting record in IT3213), a really simple option for you would be to use HR_INFOTYPE_OPERATION a second time after the original insert to modify the record you have just inserted changing the currency code.

1. HR_INFOTYPE_OPERATION to INSERT.

2. Read IT3213 to fetch the record and modify the currency to your target value.

3. HR_INFOTYPE_OPERATION to MODIFY

You should be good!.

Other options could be to enhance XPADU or HRPADINFTY00 BADi to default currency at PAI. That way it would also change the behavior of the system while users creates IT3213 records manually in PA30.

Best,

Antoine

2 REPLIES 2

antoine_foucault
Active Contributor
0 Kudos

Miguel:

It looks like your issue is that the currency is being defaulted during insert operation in form get_default of module-pool MP321340.

If you don't want to change to customizing so that FM RP_GET_CURRENCY return the correct currency for your country grouping in T500C or T510F (because it will change the behavior of the system beyond inserting record in IT3213), a really simple option for you would be to use HR_INFOTYPE_OPERATION a second time after the original insert to modify the record you have just inserted changing the currency code.

1. HR_INFOTYPE_OPERATION to INSERT.

2. Read IT3213 to fetch the record and modify the currency to your target value.

3. HR_INFOTYPE_OPERATION to MODIFY

You should be good!.

Other options could be to enhance XPADU or HRPADINFTY00 BADi to default currency at PAI. That way it would also change the behavior of the system while users creates IT3213 records manually in PA30.

Best,

Antoine

0 Kudos

Works like a Charm... Antoine... many many thanks for your answer!!!!