on 2022 Mar 01 11:54 AM
I am opening display quotes (VA23) with a flavor; when I click to change mode (VA22) it is being opened without a flavor. I have also designed a separate flavor for VA22.
How can I write a script that would open the same quote in VA22, while applying that flavor for VA22.
Request clarification before answering.
Good day!
First, make sure the two flavors one for VA23 and the other for VA22 are shared with the target users via the PFCG role or direct user assignment. More information here.
Then you have two options to chose from:
1) Make the VA22 SAP Screen Personas flavor default for the given role/user in the /PERSONAS/ADMIN transaction. Doing so the flavor will be always activated when switching t-code to VA22 for the target users
2) Activate the desired VA22 flavor dynamically via script by using the session.changeFlavor(String flavorGUID) scripting API.
Thank you!
Best regards,
Krists Magons
SAP Screen Personas Dev Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear kmagons,
Thanks for the recommendation, since we'll be embedding this WebGUI for another application (C4C), we cannot assign it as the default flavor, as the same users still need to see everything in GUI. So the second option is our way to go.
The help document provides some info, but I was wondering if there are any blogs that you can share with us, that match our specific requirement?
I do have a guide with exact steps at hand, but a simple conceptual solution would be like this:
- Edit the VA23 Personas Flavor
- Select the "Change" button, open the Events Dialog
- Assign an onClick script
- In the script add a line that dynamically applies the target flavor after the transaction has changed. Something like this:
session.findById("wnd[0]/tbar[1]/btn[46]").press(); // -> This is the change button of VA23
session.utils.changeFlavor("FA163EB96F251EDCA78BD2C79B8606BE"); // -> This applies the specific flavor of VA22 after the standard change button logic is executed
return true; // -> this suppresses the standard Change button logic
Thanks,
Krists
also , there should be need for seocnd flavor as in original GUI screen we can toggle between displaya nd change mode , so in your first flavor click on edit and also adopt the screen from VA22 in same flavor, so when user will change mode the extra screen you adopted will appear.
Thanks
RD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
tokgozatakan
Quick thoughts say add a button for "change" , add an script to this button which will copy the quote number from existing screen then call VA22 flavor and enter the copied value. ThanksRDYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.