cancel
Showing results for 
Search instead for 
Did you mean: 

ITS Mobile Logoff and return to Logon Screen

DonnaA
Explorer
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

DonnaA
Explorer
0 Kudos

Marcin, Thank you for responding.  I have made the changes that you suggested.  My logoff page now 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&exiturl=http://hostname.com:8000/sap/bc/gui/sap/its/zlm_its';

window.location.replace(url); }

</script> </head> <body onload="home();">

...Disconnecting...

</body></html>

(Note that I have removed the actual clients hostname and replaced with hostname for privacy here).

However, it is still, after pressing F8 Logoff and selecting Yes button, returning me to the menu instead of the logon screen.  Suggestions?

former_member194364
Active Contributor
0 Kudos

Hi Donna,

As of release 7.31 the http security management is active per default.
See note 1322944 for additional information.
FYI This also means you should harmonize the security timeout with
the timeout settings mentioned in note 705013.

For proper logoff please adapt your service as explained in note
1777513. To be re-routed to the logon screen you should add this
string to the field "Redirect to URL"
/sap/public/bc/icf/logoff?redirecturl=/zlm_its

###### Note's - SDN logon required #######
1322944  ABAP: HTTP security session management
1777513  WebGUI logoff does not work
705013  Timeout for ICF services based on ITS

Regards,

Oisín

DonnaA
Explorer
0 Kudos

Thank you for the note 1777513, I had not found that one.  It is exactly what I needed to know about putting the redirect to the /sap/public/bc/icf/logoff?redirecturl=

Now is working!

Former Member
0 Kudos

Hi , ,

Does this work? i used /sap/public/bc/icf/logoff?redirecturl=/PATH_TO_MY_SERVICE/ but of no use.

i used system logon in the logon tab in my internet service. but of no use.!

can you please tell me how exactly did you'll achieve this re-login after log off functionality.

Thanks & Regards,

Avinash

DonnaA
Explorer
0 Kudos

I only entered the logoff in the redirect on the Logoff Page.  Be sure that the Logoff service exists and is activated/started.  Ive run into some systems that this service doesnt exist.

You are able to logon?  But what are you seeing/getting after a logoff?

Former Member
0 Kudos

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

Answers (0)