2010 Feb 04 8:59 AM
Can anyone tell me how to close sap session by runtime (Abap Code).
If there any FM?
My Requirement is : suppose transaction t1 is already opened in one session and i want to open that tcode (t1) again...then already opened session where that tcode is opened should get killed...
Sachin
Can anyone tell me how to close sap session by runtime (Abap Code).
If there any FM?
My Requirement is : suppose transaction t1 is already opened in one session and i want to open that tcode (t1) again...then already opened session where that tcode is opened should get killed...
Sachin
2010 Feb 04 9:03 AM
2010 Feb 04 9:07 AM
2010 Feb 04 9:09 AM
Hello
Try debugging the transaction SM04, this is used to kill a session.
Regards
Ranganath
2010 Feb 04 9:09 AM
Hi ,
In your ABAP Program use this statement.
CALL TRANSACTION 'EX'. EX stands for EXIT .It ends the SAP session.
Regards,
Lakshman.
2010 Feb 04 9:19 AM
2010 Feb 04 9:35 AM
Hi,
Try using this FM TH_DELETE_USER.
I didn't check for the previous call transaction statement.Its actually going to dump.EX is present in TSTC table.
Hence call transaction wont work.
Regards,
Lakshman.
2010 Feb 04 9:39 AM
I think TH_DELETE_USER will kill that users all session..
my requirement is i need to close only that session where my tcode is already opened.
2010 Feb 04 9:50 AM
You can create a program with option Tcode and use FM TH_USER_LIST
to get all users and sessions open.
Check if your transaction is already open then delete it.
2010 Feb 04 9:58 AM
hi write single line of code,
call transaction 'SYST_LOGOFF'. and try to execute it, if reqd create a t-code for this program.
thanks and Regards,
Thiru
2010 Feb 04 10:48 AM
2010 Feb 05 10:41 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |