Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Terminate Internal Sessions

Former Member
0 Likes
867

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

2 REPLIES 2
Read only

Former Member
0 Likes
633

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.

Read only

Former Member
0 Likes
633

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.