Hi Michel,
I think I have the solution now.
Using SSI will not help, as the "if" statement is not supported by ICM.
What I tested: following the help pages above, I created a page ICMERR-ENOSESSION.shtml, which is thrown when the session is no longer available.
The actual HTML code is:
<html>
<head>
</head>
<body style="margin: 0; padding: 0">
<iframe id="frame" src="" style="width: 100%; height: 100%;"></iframe>
</body>
<script type="text/javascript">
var path = window.location.pathname;
var spath = '/sap/public/icmandir/';
if ( path.indexOf('/its/webgui') >= 0) {
document.getElementById('frame').src = spath + '400.html';
} else {
document.getElementById('frame').src = spath + 'generic.html';
}
</script>
</html>
So, basically you will be using javascript to determine whether the path matches your service name. In the example above, I put "/its/webgui". If it was present in the URL, then the browser will call a file called 400.html, which was placed inside the "icmandir" of the application server. If the service is not webgui, then the generic.html file (also placed under "icmandir" directory) is called.
The actual content of "400.html" and "generic.html" is up to your own discretion. For the 400.html you can put a link to the service, so it can be called again.
I hope this helps.
Kind regards,
Cris