There are multiple ways to share a theme between webdynpro applications on different systems. One example would be to share same theme between applications on portal, ECC, CRM and BW system. Same theme can reside on all system or on any one of them (preferably Portal) and can be passed to all application as parameter or application can be enabled to use same theme as applied to portal.

1)     Same portal theme for both Portal and webdynpro application.

In this scenario all navigation in the portal and the underlying webdynpro application being called in portal will share same theme.

Theme will be retained in portal and underlying application will be enabled to use portal theme by following steps as mentioned below.

a) New Custom theme can be created in Portal using the Theme Designer tool under System Administration-> Portal Display and   the same theme needs to be applied to user via Portal Desktop.

b) Property ‘Hand over Portal Stylesheet’ in the portal iView of the webdynpro application shall be set to enable.T1.png

c) Application Parameter ‘WDFORCEEXTERNALSTYLESHEET’ shall be set to True for the webdynpro application in the corresponding system

T2.png

2)    Different portal theme for Portal and webdynpro application.

In this scenario all navigation in the portal will be in a different theme and all webdynpro application irrespective of the being in different systems will use same theme which is being maintained in portal.  Advantage of using this option will be that even though portal is using a different theme but still all webdynpro applications irrespective of the systems they are in, share same theme which is created and maintained in only one location (Portal).

         

Since theme is not being available in local system and is not being passed implicitly by portal, so this can be achieved by passing

theme as application parameter to the webdynpro application.

a) Set IView parameter ‘Application Parameter’ with the syntax as mentioned below.

SAP-EP-THEMEROOT=<PORTAL_THEME_ROOT_PATH>


Theme root path looks as follows:

https://<hostname>:<port>/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/<THEME_ID>T3.png

b) Also ensure that the iView parameter ‘Hand over Portal Stylesheet’ and application parameter ‘WDFORCEEXTERNALSTYLESHEET’ are not set.

3)     Theme from ECC system being used for CRM/BW webdynpro application.

Difference in this scenario from previous 2 options is that theme is created and maintained in ECC using tcode ‘/UI5/THEME_DESIGNER’ and can be viewed using tcode ‘/UI5/THEME_TOOL’.

Since there is no portal involved, so theme will be set using WDTHEMEROOT webdynpro application parameter. Theme Id shall be set in the format THEME_ID@THEME_ROOT_IDT4.png

Theme Root Path can be found by clicking on ‘INFO’ section of the screen using tcode ‘/UI5/THEME_TOOL’.T5.png

Theme Root path will look like as example mentioned below.

                             T6.png

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply