Skip to Content

ITS Mobile Logoff and return to Logon Screen

My client is running ECC 6.0 with basis 7.31 patch 5(SAPKB73105).

I have created a z service to run my custom ITS transactions. 

In the service I have selected Altertnate Logon Prodedure and have removed all the procedures except Logon Through HTTP Fields.  There is no option for Fields Authentication, as all the help that I read indicates that should be the option. 

When I run my service and then select F8 Logoff, I am able to logout.  But I would like to be redireted to the logon screen.  So, I have created an Explicit Reponse Body page under the Error Pages->Logoff Page.  That code reads:

<html><head><title> Logoff Page </title><script> function home() { var url = 'http://' + window.location.host + '/sap/bc/gui/sap/its/zlm_its?command=logoff?';window.location.replace(url); } </script> </head> <body onload="home();" > ...Disconnecting... </body></html>

I run the service, I am prompted to logon (as should be), then I F8 Logoff and the popup for Yes/No displays.  I select Yes and I see the Disconnecting then I am returned to the Menu and not to the Logon Screen as should be.

What am I missing?  I have read all the OSS notes and help, but none has been relevant to my issue.

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 07, 2013 at 09:36 PM

    Hi Donna,

    I think, you have error in JS home() function.

    You write:

    function home() {      var url = 'http://' + window.location.host + '/sap/bc/gui/sap/its/zlm_its?command=logoff?';window.location.replace(url); }

    Should be like this:

    function home() {      var url = 'http://' + window.location.host + '/sap/bc/gui/sap/its/zlm_its?~command=logoff?';window.location.replace(url); }

    Sometimes ITS wants to exit URL in path:

    function home() {      var url = 'http://' + window.location.host + '/sap/bc/gui/sap/its/zlm_its?~command=logoff&exiturl=http://<host>/path_to_logon_page';}

    BTW: Why you decided to use old ITS? I think the better (and more flexible) way is to use WebDynpro for ABAP to achieve this.

    Regards,

    Marcin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Donna Allbritten

      Hi Donna,

      Thanks for your reply 😊

      I did this change before posting this question here. weirdly this was not working on my desktop browser IE and was working fine(logging out & then logged in) without any problem in the Scan gun's browser.

      I was reading few threads to understand this, it looks like it differs from browser to browser.

      Thanks & Regards,

      Avinash