on 03-17-2015 2:35 PM
Hello,
I need to program a logoff functionality which is based on ABAP-Logic and not by a user activity like pressing a logoff button.
At the end I will include this function into a ITSMobile Transaction, so it would be also ok to call a Exit URL without opening a additional window.
Any ideas how to do this? I found only coding which is not running at Unicode...
Thanks
Andreas
Hello Andreas Adler,
In ITSMobile Transaction, we usually call the ICF service present at /sap/public/bc/icf/logoff. This terminates the SAP AS session from the browser since it is a URL.
However, if you want to do it from ABAP, which would mean in the normal SAP GUI, the best way would be to Exit from the Program as:
LEAVE PROGRAM.
If you want an alternative, you may try calling the Class Interface: CL_HTTP_EXT_LOGOFF through your ABAP code and see how it works.
Let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Andreas Adler,
If you want to exit from only the current internal session, use the following:
CALL FUNCTION 'TH_DELETE_MODE'
EXPORTING
MODE = -1.
If you want to terminate the entire user session, use:
CALL 'SYST_LOGOFF'.
Let me know.
Hi, Andreas,
Please check note 1910057.
You can either have a redirect to the ICF service present at /sap/public/bc/icf/logoff or call the method LOGOFF of current server object of class CL_HTTP_SERVER_NET.
Both of them will support another redirect after logoff.
Add note link Message was edited by: Oisin ONidh ITS SCN Moderator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.