‎2010 Oct 13 5:33 AM
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
‎2010 Oct 13 5:48 AM
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
‎2010 Oct 13 5:44 AM
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
‎2010 Oct 13 5:48 AM
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
‎2010 Oct 13 5:54 AM
‎2010 Oct 13 8:25 AM
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