Skip to Content
0
May 03, 2018 at 03:13 PM

PERSONAS : Can we switch theme using script?

293 Views Last edit May 15, 2018 at 03:26 PM 7 rev

Hi experts,

I have a flavor with (among others) 2 buttons.

The first one launch tcode IW32 with a custom flavor. I have done admin maintenance to bind user/role/tcode/theme (There is a bug because custom theme is not applied, Note OSS 2492693 should correct this bug but i can't implement it but this is not the point of this post. So for now i have to activate it manually)

Now for the next button, my customer wants to launch also IW32 but the original screen, with the default sap theme.

To switch to original screen, i use "session.utils.changeToOriginalScreen()" everything is fine but my custom theme is still On...Or i want the standard SAP theme with the original screen.

How can i do that through scripting?

EDIT : My scope being very wide, i have several shortcuts for standards Tcode which must be displayed with the classic SAP theme. Or, like IW32, the custom theme is kept...

PERSONAS 3.0 SP05

Kind Regards,

Alexandre