cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Screen Personas 3.0 - SAP GUI for Windows - PopUp content not appear

former_member193127
Participant

Hello everybody,

when I open the PopUp Dynamic selections in QE51N with the following script:

session.findById("wnd[0]/tbar[1]/btn[9]").press();

or

session.findById("wnd[0]/mbar/menu[1]/menu[5]").select();

It works in the browser. But when I do with the script it with the SAP GUI for Windows, the Window is empty:

Strange...

I know Note 2080071, but there is seemingly no point, with explain this behavior.

Has somebody an idea, what can I do? My aim is to write a selection criteria (production order) in background with the script in the dynamic selections. The User should enter the production order in the start selection screen.

I actually would use the following script, which works in the browser but not in SAP GUI for Windows, maybe because of the empty window:

var fauf = session.findById("wnd[0]/usr/ctxtPersonas_155367572686770").text; session.findById("wnd[0]/tbar[1]/btn[9]").press();

//session.findById("wnd[0]/mbar/menu[1]/menu[5]").select();

if(session.idExists("wnd[1]/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/ctxt%%DYN001-LOW"))

{

session.findById("wnd[1]/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/ctxt%%DYN001-LOW").text = fauf;

} else {

session.findById("wnd[1]/shellcont/shell").executeWebRequest("post", "action", "8", "node_key=%20%20%20%20%20%20%20%20%2075", null); if(session.idExists("wnd[1]/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/ctxt%%DYN001-LOW"))

{ session.findById("wnd[1]/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/ctxt%%DYN001-LOW").text = fauf;

}

else {

session.findById("wnd[0]/usr/ctxtPersonas_155367572686770").text = "123"; session.findById("wnd[1]/shellcont/shell").executeWebRequest("post", "action", "44", null, null); session.findById("wnd[1]/shellcont/shell").executeWebRequest("post", "action", "41", "type=node&node_key=%20%20%20%20%20%20%20%20%2076", null); session.findById("wnd[1]/shellcont/shell").executeWebRequest("post", "action", "2", "type=OnNodeDoubleClick&node_key=%20%20%20%20%20%20%20%20%2076", null); session.findById("wnd[1]/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/ctxt%%DYN001-LOW").text = fauf;

} }

session.findById("wnd[1]/tbar[0]/btn[11]").press();

session.findById("wnd[0]/tbar[1]/btn[8]").press();

Accepted Solutions (0)

Answers (4)

Answers (4)

FrankKrauseGUI
Advisor
Advisor

Hi all,

just a comment regarding commands like these:

session.findById("wnd[1]/shellcont/shell").executeWebRequest("post", "action", "44", null, null); session.findById("wnd[1]/shellcont/shell").executeWebRequest("post", "action", "41", "type=node&node_key=%20%20%20%20%20%20%20%20%2076", null); session.findById("wnd[1]/shellcont/shell").executeWebRequest("post", "action", "2", "type=OnNodeDoubleClick&node_key=%20%20%20%20%20%20%20%20%2076", null);

These are wrongly recorded commands that need to be fixed in the Personas Flavor Manager. Every action in the UI must be recorded with the appropriate scripting command. SAP GUI for Windows cannot processs executeWebRequest and will never be able to do that (it is not web based and what is a "post" suppused to tell us?). We need correct scripting commands.

Therefore, these would be candidates for an incident on component BC-PER.

Best regards,
Frank

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Frank, you're right that these will never work in SAP GUI for Windows. However, could you please suggest what would be the equivalent command that has the same effect and it works in the Windows GUI? Preferably a format that also works in SAP GUI for HTML and Java of course. Otherwise, it is not possible to record something in a web browser that would be compatible with all GUIs a Personas flavor can be used with.

This information would help to figure out how to change the recording in the Personas scripting editor.

Thanks.

tamas_hoznek
Product and Topic Expert
Product and Topic Expert

If you are using the latest version and patch of SAP GUI for Windows, then this is a candidate for a support incident, directed to component BC-FES-GUI.

former_member193127
Participant

Hello, thats not the point, executeWebRequest is only in the second part of the script. But the lines:

session.findById("wnd[0]/tbar[1]/btn[9]").press();

or

session.findById("wnd[0]/mbar/menu[1]/menu[5]").select();

not working for a correct generation of the PopUp and this seems not a part of 2080071.

tamas_hoznek
Product and Topic Expert
Product and Topic Expert

Then, as mentioned, it's incident time.

If pressing a button in SAP GUI produces a different result than pressing the same button via a Personas script, that is not normal and shouldn't happen IMO.

former_member193127
Participant

Hello Tamas, thanks for your answer. Are you still by your recommendation when this PopUp works fine in the WebGUI or in Screen Personas when I open it without scripting? Cus it is only a problem when I open it in the way I describe. Thanks

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Actually, taking another look at your script, the problem seems to be clear. executeWebRequest is not implemented in SAP GUI for Windows. This is mentioned in note 2080071.