function dologon(f) {
var logon_user = document.getElementById('user').value;
var logon_password = document.getElementById('password').value;
// name specified?
if (logon_user == '') {
S10ErrorMessage(f, "Please enter the user name");
return;
};
// password specified?
if (logon_password == '') {
S10ErrorMessage(f, "Please enter the password");
return;
};
// set logon parameters and S10 start configuration;
var logon_client = '100';
var logon_language = document.getElementById('language').value;
var classname = "main";
var progname = "zztest01";
S10Logon(logon_client, logon_user, logon_password,
logon_language, classname, progname);
}
Parameters
Nr
Description
1
Client SAP client e.g. "100".
2
User name SAP user name
3
Password The password entered by the
user
4
Language key 2 letters, e.g. "en".
Either a fixed language key or selected by the user.
5
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.
6
Program name ABAP program, if parameter 5 is a local
class
7
Service name Optional, if a specific
ITS service is to be used for the connection to the SAP system.
Default: "s10".
8
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.
9
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:
ABAP
data: querystrings 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
With S10Logon(), you start an S10 session for the specified user in the logon
screen.
If an SAP Logon ticket MYSAPSSO2 already exists in the current browser session, the logon screen can be skipped with S10SSO() and the logon can be performed with this ticket. This is automatically the case if the S10 application was launched from a Fiori Launchpad tile.