Sharing theme between Abap Webdynpro applications on different systems
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.
c) Application Parameter ‘WDFORCEEXTERNALSTYLESHEET’ shall be set to True for the webdynpro application in the corresponding system
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.
Theme root path looks as follows:
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’.
Theme Root path will look like as example mentioned below.