cancel
Showing results for 
Search instead for 
Did you mean: 

Integrated ITS log off handling following application of portal SP22

alancecchini
Participant
0 Kudos

Hi,

We have recently applied support packages to our SAP Portal (to SP22 for EP 7.0).

We have an IAC iView which renders a SAP transaction which worked fine prior to the SPs being applied.

To improve the behaviour when the user selects the back/exit/cancel buttons from the IAC application toolbar (within the portal body) we implemented a few lines of Javascript in the ICF service on the backend SAP ECC system (under Error Pages -> Logoff Page) to redirect the user to the home page for the application.

We deemed this was preferable to the standard message issued.

The problem is that the javascript is being triggered now when the user selects 'Log off' from the portal.

The behaviour is not desirable (an extra browser window is opened and for some reason the log off takes about 2 minutes to take effect) hence we don't want the javascript triggered in this instance.

We may need to log this with SAP but does anyone know of a way of determining in the javascript whether the user has selected back/exit/cancel versus logging off from the portal?

Thanks in advance.

Alan

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member316351
Active Contributor
0 Kudos

Hello Alan,

What do you have now in the Error Pages > Logoff Page of SICF for the service?

If you wanted your custom Logoff Page only for when the service is used independent of the Portal than you could check for the Portal cookie, I think it's something like sap_wp. But if you want the Logoff Page to take effect in the Portal too than maybe you could check the ~okcode in the POST.

Edgar

alancecchini
Participant
0 Kudos

Hi Edgar,

Please see our current redirect code below.

If you can suggest suitable Javascript for checking the portal session cookie that would be a great help.

Thanks,

Alan


function reloadWindow(){  top.location.replace("http://<our redirect URL>");}reloadWindow();

former_member316351
Active Contributor
0 Kudos

Hello Alan

The Portal will have several cookies, but I believe this cookie is always present, SAPWP_active, with a value of 1. So the javascript will need to check for the cookie then execute. A search on google for how to check for cookies using javascript should help.

Edgar

Former Member
0 Kudos

Alan,

Were you able to resolve this issue? We are having similar issues after applying SP22 to our portal systems. We currently use the SICF logoff page setting as a redirect back to the portal to suppress the message coming out of ECC when one logs off a IAC or a SAP Transaction for HTML. Since we went to SP22 the redirect back to portal takes over a minute to complete and using HTTP watch we can see that it continues to call the same redirect page over and over again until it finally displays the page. Any help would be appreciated.

Thanks,

Jason

alancecchini
Participant
0 Kudos

Hi Jason,

We logged the problem with SAP who stated that a note delivered in the portal SPs had altered the way that the log off process is handled.

They suggested adding a 1 second wait until triggering the custom Javascript but we found the behaviour intermittent.

Given ITS is not on our long term radar we've removed the Javascript and put in a simple HTML page within KM that we redirect to when logging off the ITS application (using the standard option in transaction SICF).

This means we can put up a more meaningful message to the users.

We felt returning to standard was preferable in this case.

Regards,

Alan