Skip to Content
0
Former Member
Apr 06, 2005 at 02:44 PM

BSP set external theme at runtime

46 Views

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:// :8000/sap/bc/bsp/sap/zeci_upload_km/ upload.do?sap-themeRoot=http%3A%2F% %3A %2Firj%2Fportalapps%2Fcom.sap.portal.themes.lafservice%2Fthemes%2Fportal%2Fcustomer%my_Theme

everything work correctly.

I saw the post :

portal-style-to-bsp

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