I have a subroutine in the dynmic actions configuered when a RETURN FROM LEAVE action is done.
In the subroutine I am updating the IT0041 for Continuous Service date by adding the number of days of leave to previously existing Continuous Service date.
The record is getting updated properly using the FM HR_INFOTYPE_OPERATION, as i checkd it through SE11 as soon as FM is getting executed. The values populated in IT0041 are right. and if we skip that screen and go to PA30 and checks the values, again these are cirrect.
Then after that it goes to next screen of IT001 and then to the screen IT0041.
ON IT0041 screen that pops up after IT0001 screen, it shows the values from the previous record and not from the latest record. These values are before the updation of the IT0041.
What should be done so that the screen IT0041 would take the latest values from IT0041.