Hi all,
For updating the infotype 8 (Basic Pay), this function module has been written.
Before Updating the HRA in basic pay it is checking the wage type. and at the last it is adding "HRA" component without removing "Company Booked Accommodation".
My requirement is, while updating HRA in basic pay it should remove "Company Booked Accommodation" .
In order to achieve this requirement, I am checking If
<F1> = "2022". "2022 = Company Booked Accommodation
<F1> = ' '.
Again I am checking if <F1> is initial, adding wage type 1012 for HRA.
This way it is adding 1012 HRA but amount it is showing the existing one ("Company Booked Accommodation" amount).
How to achieve the requirement,,, please help.
Thank you in advance .