Example: sapgui_press_button
Example 1:
The following example uses sapgui_press_button to open the Business Workplace from the main screen.
sapgui_press_button
("SAP Business Workplace (Ctrl+F12)",
"tbar[1]/btn[36]", // Button ID
BEGIN_OPTIONAL,
"AdditionalInfo=info1020",
END_OPTIONAL);
Example 2:
The following example uses sapgui_press_button to click the OK button next to the Command box.
sapgui_press_button("Enter", "tbar[0]/btn[0]", LAST );