Function Starts an S10 session via SSO (Single Sign On)
Example

<script language='javascript‘>

        var classname = "main";
       
var progname = "/s10/equidemo";

        // try SSO
        S10SSO(classname
, progname, sso_callback);

        function sso_callback(sso_logon_done) {

            if (!sso_logon_done) {

                // display standard logon
                document.body.style.display = "block";
            };
        };

 
</script>

 

Parameters
Nr Description
1
Class name
ABAP class in which the logon method is located. An object of this class is created first by the S10 Framework and then the method "logon" is called.
The class can be a global class (SE24 class library) or a local class.
2
Program name
ABAP program, if parameter 5 is a local class
3
Callback function
JavaScipt function that is called asynchronously with the parameter
true or false, depending on whether the SSO login was successful or not.
4
Client
SAP client e.g. "100".
5
Language key
2 letters, e.g. "en". Either a fixed language key or selected by the user.
6
Service name
Optional, if a specific ITS service is to be used for the connection to the SAP system. Default: "s10".
7
View target
Optional, if the HTML pages are not to be searched under the language key of the logon, but under another abbreviation. Default: Language key.
8
Options
Additional options for special applications. The options can be read in the ABAP logon method. Structure:
 
par1=val1&par2=valw2&...

In the logon method, this string can be retrieved and processed as
s10session->clientquerystring, for example as follows:

 dataquerystrings type table of string,
       
querypart    type string,
  
 
split s10session->clientquerystring at '&' into table querystrings.

 
loop at querystrings into querypart.
   
if querypart cp 'start=*'.
     ....
   
endif.
   
if querypart cp 'customer=*'.
      ....
   
endif.

 
endloop.
Description S10SSO() allows you to start a session via SSO on the login screen without requiring the user to enter credentials. If a valid MYSAPSSO2 cookie exists in the browser, the S10 application is started immediately.
For examples of how to do this, see Tips&Tricks -> S10 Framework -> SSO.
Components S10 Framework