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();

View Entire Topic
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.