Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  How to use send key to move right menu item on SAP GUI?

    Posted Fri November 11, 2022 09:32 AM
    Hello everyone,

    I would like to click menu item "Extra" on SAP GUI title bar which T-code is STMS like below screenshot.


    When I use Press or Release Key and Send Key command, it just could move down three on first item not move to right.

    keyboard --type "KeyPress" --key "RMenu"
    sendKeys --keys "%"
    sendKeys --keys "{RIGHT 4}"
    sendKeys --keys "{DOWN 3}{ENTER}"


    Can anyone please help me to know how to make this work ?

    Best Regard,

    Jay Ke



    ------------------------------
    傑仁 柯
    ------------------------------


  • 2.  RE: How to use send key to move right menu item on SAP GUI?

    Posted Mon November 14, 2022 07:06 AM
    I believe you could try first clicking using selectors, because it is more reliable than hotkeys. Are you able to identify XPath locators for these elements?

    ------------------------------
    Vinicius Marques
    ------------------------------



  • 3.  RE: How to use send key to move right menu item on SAP GUI?

    Posted Mon November 14, 2022 09:51 AM
    Edited by felipe Andres Barrera Torres Mon November 14, 2022 09:55 AM
    I understand that some of the selector in sap does not get it, in these cases of the bar use the shorcut that already comes by default in sap.

    But any reason to use, arrows instead of the menu underline shortcut?


    You can use alt down and the letter that refers to the menu (letter with the underlined ) then alt up.
    in your case it would be

    ALT+A -> to open the extras menu
    ALT+O -> for other requets
    ALT+A-> for ADD

    so ALT down  + A + O + A + Alt Up

    we have used this in several automations and it is quite fast and does not fail, just make sure the menu exist in your case Extras inside the transaction .

    Refer to the following documentation on SAP
    https://eursap.eu/2022/04/21/eursaps-tip-of-the-week-using-menu-path-keyboard-shortcuts-instead-of-the-mouse-in-sap/


    ------------------------------
    felipe Andres Barrera Torres
    ------------------------------



  • 4.  RE: How to use send key to move right menu item on SAP GUI?

    Posted Tue November 15, 2022 06:28 AM

    Fantastic! Your solution is work for me. Thank you very much.

    I can use below command to open the Extras -> Other Requests -> Add.


    keyboard --type "KeyPress" --key "LMenu"
    sendKeys --keys "%{A}{O}{A}"




    ------------------------------
    傑仁 柯
    ------------------------------