cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Launchpad syntax error

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Atith,

What is support package level for UI_INFRA or SAP_UI?

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

seems to be SAP_UI.

Regards,
Atith

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Atith,

Please try the note 1939120 - Fiori login fixes.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

the note was already installed. But the problem still occurs.

Do you have any further suggestions?

Regards,

Atith

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Atith,

Please share more details.

Where and which service did you set the "/UI2/CL_SRA_LOGIN"?

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

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:

  • /sap/bc/ui2/start_up
  • /sap/bc/ui5_ui5/ui2/launchpage
  • /sap/bc/ui5_ui5/ui2/tilechips
  • SAP Fiori UI add-ons nodes /sap/bc/ui5_ui5 /sap/xxx

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

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Atith,

You can troubleshoot HTM_LOGIN method in the class /UI2/CL_SRA_LOGIN.

or

You can create a customer message in SAP Service Marketplace and ask SAP Support to help.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

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

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

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

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

1939120 - Fiori login fixes

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

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