cancel
Showing results for 
Search instead for 
Did you mean: 

BSP set external theme at runtime

Former Member
0 Kudos
179

Hi community,

I need to set my external theme for a BSP application called in popup from EP6. I know that if I use in windows.open the following link

http://<server>:8000/sap/bc/bsp/sap/zeci_upload_km/upload.do?sap-themeRoot=http%3A%2F%<server>%3A<po...

everything work correctly.

I saw the post :

BUT I need to set it at runtime. I have a BSP with MVC and I have tried the following code

  DATA: theme     TYPE string.
  theme = 'http%3A%2F%<server>%3A<portal_port>%2Firj%2Fportalapps%2Fcom.sap.portal.themes.lafservice%2Fthemes%2Fportal%2Fcustomer%my_Theme'.
  CALL METHOD me->runtime->set_external_theme_root
    EXPORTING
      path = theme.

and i doesn't work.

Does anybody have any suggestion to set the theme (for me a custom portal theme) at runtime?

thanks

Luca

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181879
Active Contributor
0 Kudos

When setting this via the URL, there theme path is escaped, thus : == %3A, / == %2F, etc. When you call the method directly, don't do this URL escaping. Just write the URL like you would normally do in the browser.