2012 Feb 09 9:36 PM
HI,
I was trying to find how I can terminate or kill any internal sessions created from my CALL TRANSACTION.
My requirement is, the user will select the rows on the ALV table and hit process. So the program reads all the rows selected
and process each row using CALL TRANSACTION with BDT options(The call should return back to the original program because if any row fails, the subsequent rows should not be processed and the return messages should be displayed).
If the total process is taking a lot of time, the user should be able to STOP the session. This works sometimes when the process returns to the called program.
Is there any way the user can terminate the internal session created.
Thanks&Rgds,
Matrix
HI,
I was trying to find how I can terminate or kill any internal sessions created from my CALL TRANSACTION.
My requirement is, the user will select the rows on the ALV table and hit process. So the program reads all the rows selected
and process each row using CALL TRANSACTION with BDT options(The call should return back to the original program because if any row fails, the subsequent rows should not be processed and the return messages should be displayed).
If the total process is taking a lot of time, the user should be able to STOP the session. This works sometimes when the process returns to the called program.
Is there any way the user can terminate the internal session created.
Thanks&Rgds,
Matrix
2012 Feb 09 10:29 PM
Hi K,
Try this might be helpful, I know about external sessions it works, but not sure for internal sessions.
FM : 'TH_DELETE_USER'.
Br,
Tapodipta Khan.
2012 Feb 09 10:36 PM
Hi K,
Another idea, go through the below comments.
ABAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data within this area is retained within a sequence of program calls, allowing you to pass data between programs that call one another. It is also possible to pass data between sessions using SAP Memory. SAP Memory is a memory area to which all sessions within a SAPgui have access.
So the moment you say leave to transaction it deletes the session anyways.
Br,
Tapodipta Khan.