Wednesday, August 27, 2014

Personas: how to implement a "second-level" personal screen?

What we want:
In common use cases of Personas, one could add some script buttons in Personas Home Screen in order to jump directly to certain SAP screen.
I have some buttons on the Personas Home Screen serving as "launching tiles". If these "tile" buttons are pressed, UI should first go to some sort of "second-level" personalised screens containing some script buttons. If these script buttons on the "second-level" screen are pressed, UI then go to the corresponding SAP screens directly based on the scripts.
My question:
How to implement such a "second-level" personal screen?
I tried to implement such a second-level screen using a separate profile, and on the Home screen to switch to it using "switch profile". However, such "sub-profile" will be shown on the toolbar, which I don't want to.

Solution to share:

Ask a ABAP programmers to create a completely empty ABAP transaction. That isn't a lot of work! Then assign multiple custom transaction codes to that one ABAP program, one tcode for each second level screen you require. Use those transactions to create your second-level menus.

In detail:
One can create a ABAP program which contains multiple transactions. In Personas one can use all these transactions. For each of the transactions, one can modify the copy of the ABAP program UI, and these UI can serve as the second-level menu UIs.

Tuesday, August 26, 2014

Dong's Personas Tips: how to call transactions using a script button

You can add a script button on your Personas Ui to start different transcations based on conditions. Here is how you can make it:

Add a script button, add the following script code:

IF some codition
     /../okcd
     Paste Value My-T-Code
     Press Enter
IF other condition
    ....

It is noted that (maybe in some cases only) it will not work if the script button is used to call "Push" event for an user-made Launch button.