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

Killing a session Programatically

Former Member
0 Likes
1,030

Dear Friends,

I have created a new session in my program using CALL FUNCTION '<NAME>' STARTING NEW TASK 'T1'.

I am doing some processing in that new session. I want to kill that window (session) after the processing is finished.

Please don't suggest SM04 (This is manual ) and 'LEAVE PROGRAM' (as this doesn't kill the window (session) ).

Any help on this regard, will be highly appreciated.

Thanks and Regards,

Sandeep Sivan

Edited by: sandeep sivan on Oct 13, 2010 10:04 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
807

Hi Sandeep,

You can check some task handler FMs as TH_SELECT_MODE followed by TH_DELETE_MODE.

Also possible may be TH_STOP_WP or any other matching TH_* FM

Regards,

Klaus

4 REPLIES 4
Read only

Former Member
0 Likes
807

Hi Sandeep ,

If my understanding of the addition to call function is correct the session gets teminated after the execution of the function is complete . You dont ned to teminate it manually.

Regards,

Arun

Read only

Former Member
0 Likes
808

Hi Sandeep,

You can check some task handler FMs as TH_SELECT_MODE followed by TH_DELETE_MODE.

Also possible may be TH_STOP_WP or any other matching TH_* FM

Regards,

Klaus

Read only

Former Member
0 Likes
807

check this ->

some adjustment needed to set this thing up.

Read only

0 Likes
807

Dear Klaus,

Thanks for the Help.

Solved it using the FM(s) 'TH_GET_OWN_WP_NO' and 'TH_STOP_WP'.

@ Sniper -> Thanks for your suggestions.

Thanks and Regards,

Sandeep Sivan