on 01-23-2014 12:04 PM
Dear experts,
when using the "/UI2/CL_SRA_LOGIN" class as global setting I'm getting a syntax error in generated javascript file. I'm using developement tools in chrome by clicking F12 to see the error which looks like this:
.Raw(sys_script_generated)
<script src="<script src="/sap/public/bc/ui2/logon/login.js"></script>"></script>
.Raw(custom_script)
<script>
As you can see he is adding "<script src =" after <script src =
Now the launchpage looks like this:
If I'm using the standard SAP Implementation it looks like this:
Do you have any ideas why this happens?
Thanks in advance.
Best regards,
Atith
Hi Masa,
we fixed the problem. Indeed, there has been some issue in the automatic up-port process
from 7.0 to 7.40 codeline.
The simplest solution is to disregard the SAP Note 1939120 and
instead install the Service Pack 7 of SAP_UI which has just been
released --> SAP_UI 740: SP 0007 (SAPK-74007INSAPUI)
Please note that the service pack is still buggy in codeline.
During the Activation we encountered again 2 errors.
1. In Class /UI2/CL_SRA_LOGIN there are still 3 Attributes which are
double.
- M_LANGU_RTL
- CO_STYLE_DISPLAY_HIDDEN
- CO_STYLE_DISPLAY_NONE
I simply renamed them and could activate the class.
2. In Class CL_SMI_ODATA_PAYLOAD_BUILDER there is the method
BOOL_TO_STRING but the implementation is missing.
Nevertheless the launchpad seems to be working.
Regards,
Atith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atith,
What is support package level for UI_INFRA or SAP_UI?
Regards,
Masa
SAP Rapid Innovation Group - RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atith,
Please try the note 1939120 - Fiori login fixes.
Regards,
Masa
SAP Rapid Innovation Group - RIG
I used the transaction "SICF" and used a custom service to set the global setting "/UI2/CL_SRA_LOGIN". See the Images below:
and that's pretty much it. By just setting:
with the custom implementation it didn't use the custom implementation. But with setting it as global setting it uses the "/UI2/CL_SRA_LOGIN" class.
Regards,
Atith
Hi Masa,
I found the line which produced the error. It is in method "INIT_DEFAULT_PROPERTIES" in line 16.
Replace:
set_property( iv_name = 'script_included' iv_value = '<script src="/sap/public/bc/ui2/logon/login.js"></script>' ).
with:
set_property( iv_name = 'script_included' iv_value = '/sap/public/bc/ui2/logon/login.js' ).
save and activate it. The Launchpad throws no syntax error anymore. Nevertheless it seems that something is still not working because it looks wrong(look at picture):
May you have an idea for this?
Thanks in advance.
Regards,
Atith
Hi Atith,
The code is exactly fixed in the note 1939120 - Fiori login fixes.
But you said the note has been implemented. It is strange. Please double check the note again.
Regards,
Masa
SAP Rapid Innovation Group - RIG
Hi Masa,
I did and it seems that the note is for some reason buggy. For example the class "/UI2/CL_SRA_LOGIN" has some attributes conflict with older and newer attributes. We had to modify the code and change the attributes. The other example is the problem with the method "INIT_DEFAULT_PROPERTIES" which I posted earlier.
With that information I came to the conclusion that it is not implemented correctly and there should be another note with fixes for this problem.
But this is just a thought.
Regards,
Atith
Hi Atith,
There are 3 notes which update /UI2/CL_SRA_LOGIN.
Please undo the notes and re-apply in the SNOTE transaction.
1857070 - SAP Fiori system login visual design fixes
1881196 - FIORI LOGON Screen on IPHONE5
Regards,
Masa
SAP Rapid Innovation Group - RIG
Hi Masa,
thanks for your help so far. I contacted the SAP Support for help and they will now have a look at it. Those three notes you mentioned were implemented but
1857070 - SAP Fiori system login visual design fixes and
1881196 - FIORI LOGON Screen on IPHONE5
are not relevant for us. If the SAP Support finds a solution for this problem I will post it here.
Regards,
Atith
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.