‎2008 Dec 02 12:01 PM
Hi all,
i am doing an lsmw for a custom transaction. Problem is the when we press back its calling
WHEN 'BACK' OR 'EXIT' OR 'CANC'.
CLEAR OK_CODE.
LEAVE TO TRANSACTION 'ZP241'.
so when i m running the LSMW and pressing back button, i am getting error as a pop up
'LEAVE TO TRANSACTION' IS NOT ALLOWED IN BATCH I/P.
And eventually my session is getting failed.
regards,
satya
‎2008 Dec 02 12:15 PM
Since you are dealing with custom code, I highly recommend you change it to better support your LSMW.
Batch input process transactions, so, once the first one is done, LEAVE TO TRANSACTION will be another transaction and therefore not supported.
Rearrange your ok_code case statement and run multiple LSMW sessions for the different transactions (or replace leave to transaction to LEAVE to screen (of the other transaction) , thus keeping it all in the same "transaction".
Good luck,
Leonardo De Araujo
‎2008 Dec 02 12:15 PM
Since you are dealing with custom code, I highly recommend you change it to better support your LSMW.
Batch input process transactions, so, once the first one is done, LEAVE TO TRANSACTION will be another transaction and therefore not supported.
Rearrange your ok_code case statement and run multiple LSMW sessions for the different transactions (or replace leave to transaction to LEAVE to screen (of the other transaction) , thus keeping it all in the same "transaction".
Good luck,
Leonardo De Araujo
‎2008 Dec 02 12:23 PM
Hi Leonardo,
We cant change the code. Is there any other option.
regards,
satya
‎2008 Dec 02 12:31 PM
Unfortunately I don't see another way.
If it is custom code, you should be able to change it (and correct it).
Leonardo
‎2009 Nov 12 9:43 AM