Skip to main content
Answer

Which SAP Command to be used - In case in SAP GUI I get ".key="Z010", I have Used Select Item & Click Menu & Both Failed, Earlier using SAPGUI Script , we have ExecuteSelectComboBoxItem in DLLs , so AA team have developed any command for drop down ?

  • November 13, 2025
  • 4 replies
  • 45 views

Forum|alt.badge.img+1

Which SAP Command to be used - In case in SAP GUI I get ".key="Z010", I have Used Select Item & Click Menu & Both Failed, Earlier using SAPGUI Script , we have ExecuteSelectComboBoxItem in DLLs , so AA team have developed any command for drop down ?

Best answer by Padmakumar

Hi ​@AbhayK105246,

 

In AA360, there isn’t a one-size ExecuteSelectComboBoxItem equivalent by name; besides, Control might not be a true ComboBox, or the IDs are dynamic. Use a scripting or property-based approach for stability. You can reliably select SAP GUI dropdowns (GuiComboBox) using a few proven approaches.

 

1. If SAP GUI Scripting is enabled

  • Use Run Script (VBScript) in AA:
VisualBasicsession.findById("wnd[0]/usr/cmbID").key = "Z010"
  • This is the most reliable method (same as old DLL ExecuteSelectComboBoxItem).

2. If scripting is NOT allowed

  • Use Object Cloning (SAP mode):

              i) Capture the ComboBox.
             ii) Use the Set property → key = Z010 or Select item by text.

3. If it’s not a real ComboBox (F4 help)

  • Send F4, then select from the popup using Object Cloning.

4. Fallback

  • Click field → Send ALT+↓ → Type Z010 → Press Enter.

4 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • Answer
  • November 14, 2025

Hi ​@AbhayK105246,

 

In AA360, there isn’t a one-size ExecuteSelectComboBoxItem equivalent by name; besides, Control might not be a true ComboBox, or the IDs are dynamic. Use a scripting or property-based approach for stability. You can reliably select SAP GUI dropdowns (GuiComboBox) using a few proven approaches.

 

1. If SAP GUI Scripting is enabled

  • Use Run Script (VBScript) in AA:
VisualBasicsession.findById("wnd[0]/usr/cmbID").key = "Z010"
  • This is the most reliable method (same as old DLL ExecuteSelectComboBoxItem).

2. If scripting is NOT allowed

  • Use Object Cloning (SAP mode):

              i) Capture the ComboBox.
             ii) Use the Set property → key = Z010 or Select item by text.

3. If it’s not a real ComboBox (F4 help)

  • Send F4, then select from the popup using Object Cloning.

4. Fallback

  • Click field → Send ALT+↓ → Type Z010 → Press Enter.

Forum|alt.badge.img+12
  • Pathfinder Advocate | Tier 6
  • November 15, 2025

@AbhayK105246  hi, why dont you use sap scripting? make sure sap scripting is enabled, and record sap scripting, its easier i think


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • November 18, 2025

I Know Scripting is the Easiest Way. But somehow Some Clients don’t want them to use.
Anyway, Any Developer from AA360 Team is there, Since I was targeting the help from them 
They Put the SAP Command under SAP - Action Tab
Why no commands have been developed by them Like Select from Drop Down
Their GetText Command even feel useless as it can’t get the Text from the Tabs & many More things. 

Anyhow the alternate option of script use & DLLs use will always be there, From What Reason under the Action Tab - SAP Command have been introduced and in so many versions update the basic SAP scripting feature as command are not introduced properly?


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 18, 2025

I Know Scripting is the Easiest Way. But somehow Some Clients don’t want them to use.
Anyway, Any Developer from AA360 Team is there, Since I was targeting the help from them 
They Put the SAP Command under SAP - Action Tab
Why no commands have been developed by them Like Select from Drop Down
Their GetText Command even feel useless as it can’t get the Text from the Tabs & many More things. 

Anyhow the alternate option of script use & DLLs use will always be there, From What Reason under the Action Tab - SAP Command have been introduced and in so many versions update the basic SAP scripting feature as command are not introduced properly?

Have you tried the suggested methods if scripting is not in the picture for you?

Besides, you can raise your concern as an enhancement request to AA so that they may consider it in their future builds.