2023 Jan 26 4:09 PM
Hi all,
I am having one issue, when I use the call transaction and returns to program, but no data are saved. The code that I have written is as follows:
I have implemented a double click event in an ALV List, and the part where the call transaction is happening is:
SET PARAMETER ID 'MPL' FIELD lv_warpl.
CALL TRANSACTION 'IP02'.
* COMMIT WORK.
LEAVE TO SCREEN '400'.
If I use the leave transaction, the data are saved, but it does not return back to my program. I also used the commit work, but the data are still not saved. Can anyone please help me with this issue?
Thanks,
R
2023 Jan 26 8:08 PM
You say that the data is not saved, is it the data of your custom program, or the standard data that the user changes in IP02?
The second case is not linked to the custom program, if there's a problem with standard data, it's not related to your code.
In the first case, we can't help you because we don't know the rest of your code.
2023 Jan 27 7:05 AM
Most transactions use the WAIT option when they update data in their COMMIT statements, so you will have to wait for update tasks to be fully executed (and database buffer to be refreshed)
2023 Jan 27 8:23 AM
If you get the expected result with LEAVE TO TRANSACTION, you could compare INSERT and UPDATE statements in ST05 traces for implementations with CALL and LEAVE TO find out a difference.