Skip to Content
0
Aug 08, 2023 at 12:28 PM

Continuous confirmation of Transfer order items

41 Views

Hi, I have a custom program where I have to continuously confirm TO line items one after the other which is displayed in the ALV. The user scans the SU for each item and clicks on confirm button and the TO item should get confirmed. I'm using the FM L_TO_CONFIRM with commit as 'X'.

All works fine when confirming a single TO item but when the user scans multiple SU and tries to confirm multiple items one after the other, the FM gives an error message. At this point we have to come out the custom program and then re-execute it again, scan the same SU and try confirm the same TO items, the items get confirmed.

I believe the FM is not getting initialised to process the next entry and it still has the previous data in its buffer or something and that's why its giving error. I tried putting DESTINATION 'NONE' as I read that it creates a separate session for the process and returns back but still the error occurs. Its not happening consistently and it's very random but when we come out of the prog and re-execute for the same dataset, the errors wont appear and the item gets confirmed.

What can be done here to make sure that the FM or whatever buffer or cache the system is using gets cleared so that the next item gets processed without any errors?