cancel
Showing results for 
Search instead for 
Did you mean: 

SAP adds an additional slash to custom CSS path

Former Member
0 Kudos

Hi everyone, I am trying to customize the stylesheet of my mobile application. I have created and published a custom CSS in the MIME Objects called ZMOBILE.CSS and I added the -ITSMOBILECSSINCLUDE parameter to the SICF transaction (value is styles/all/zmobile).

When I connect to the application if I look at the HTML code I can see that the stylesheet is not correctly loaded, there is in fact an additional slash in the path. This leads to a 500 Internal Server Error if I try to connect directly to the CSS:

500 SAP Internal Server Error

ERROR: Error in interpretation of path "/SAP/PUBLIC/BC/ITS/MIMES//SCWM/Z_EWM_E001/99/STYLE".

Object name: "/SCWM/Z_EWM_E001/99/STYLES/ALL/ZMOBILE.CSS". (termination: ERROR_MESSAGE_STATE)

As you can see there is an additional slash plus a "SCWM" that comes out of nowhere.

This is my service configuration:

~THEME 99

~TRANSACTION /SCWM/RFUI

#MOBILE This is a mobile service

#SOURCES Template search sequence

~SOURCES /scwm/rfui,ITSMOBILE,ITSMOBILE00,Z_EWM_E001

~ITSMOBILECSSINCLUDE styles/all/zmobile

~ITSMOBILE 1

~XSRFCHECK 1

~AUTO_HTML_ESCAPING 1

~NEW_XSS_FUNCTIONS 1

~ITSMOBILENOCUAINCLUDE 1

~DYNPRO_COMPRESSION 1

~DISCONNECTONCLOSE 1

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

former_member316351
Active Contributor
0 Kudos

Hello Daniele,

The extra "/" is probably because of the "/scwm/rfui" entry in the ~sources.  I would recommend moving your templates to a different directory (ie: ZRFUI) and then changing the ~sources to match.

Cheers,

Edgar

Answers (1)

Answers (1)

former_member194364
Active Contributor
0 Kudos

Hello Daniele,

The following NOTE

1323339  ITSmobile: Services with a namespace

may also be of interest to you. Especially section re: ~itsmobileNamespace

Regards,

Oisin