sap-language
.?sap-language=EN
to the url or if it already exists in the url with another locale code (e.g. &sap-language=DE
) then he or she must change that locale code to the desire locale (e.g. to EN
for English instead of DE
which is for German).SAP On Premise System
, and you have a customised launchpad currently.SAP NetWeaver
you mostly used SICF
transactions in your steps, this is the place that we need to start our investigations.SICF
transaction (like figure 2) and then press on Execute (F8)
button on the new opened view.default_host
from the list and the find the ushell
under the following path: /default_host/sap/bc/ui5_ui5/ui2/
, then double click on ushell.Error Pages
tab and press on Configuration
button.System Logon Configuration
window is the ABAP Class textbox./UI2/CL_SRA_LOGIN
. This class involves some HTML, CSS and JS codes. What you see as a login page is the result of compiling the codes that were enclosed inside of this class.SE24
to copy the class. I hope you know how to make a copy as it is not relevant to this post's aims.ZCL_ZMDM_LOGIN_CUST
. After you made your copy successfully, you have to edit the content of the System Logon Configuration
window and put the name of your newly created class instead of the default class. At the end you have to have something like figure 7.SE80
transaction.SE80
ZCL_ZMDM_LOGIN_CUST
inside the SE80
INIT_JAVASCRIPT
function. The original code is something like the following:METHOD INIT_JAVASCRIPT.
DATA lv_javascript TYPE string.
DATA lv_context_js TYPE string.
lv_context_js = get_context_javascript( iv_context ).
CONCATENATE '<script>' iv_javascript co_crlf lv_context_js '</script>' INTO lv_javascript.
set_property( iv_name = 'sys_script_generated' iv_value = lv_javascript ).
ENDMETHOD.
METHOD INIT_JAVASCRIPT.
DATA lv_javascript TYPE string.
DATA lv_context_js TYPE string.
lv_context_js = get_context_javascript( iv_context ).
* CONCATENATE '<script>' iv_javascript co_crlf lv_context_js '</script>' INTO lv_javascript.
" 2017-03-15 - 9:00 Start MJZ Edit
CONCATENATE '<script>' iv_javascript co_crlf lv_context_js '</script>'
'<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>'
'<script>'
'function replaceUrlParam(url, paramName, paramValue){'
' if(paramValue == null)'
' paramValue = ""; '
' var pattern = new RegExp("\\b("+paramName+"=).*?(&|$)");'
' if(url.search(pattern)>=0){'
' return url.replace(pattern,"$1" + paramValue + "$2");'
' }'
' return url + (url.indexOf("?")>0 ? "&" : "?") + paramName + "=" + paramValue;'
'}'
'$( document ).ready(function() {'
' var oLang = $("#LANGUAGE_SELECT");'
' $("#LANGUAGE_SELECT").change(function(oEvent){'
' var sLang = $(this).val(); '
' var sUrl = window.location.href; '
' var sNewUrl = replaceUrlParam(sUrl, "sap-language", sLang);'
' window.location.replace(sNewUrl);'
'});'
'});'
'</script>'
" 2017-03-15 - 9:00 End MJZ Edit
INTO lv_javascript.
set_property( iv_name = 'sys_script_generated' iv_value = lv_javascript ).
ENDMETHOD.
Check (Ctrl + F2)
and Activate (Ctrl + F3)
the class./default_host/sap/bc/ui5_ui5/ui2/ushell
inside of the transaction SICF
. Right click on the ushell
and select the Test Service
option from the context menu. ushell
Test Service
option you probably must allow execution of the file. Press on Allow
in case you see a window like figure 11.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
36 | |
8 | |
7 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |