web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to select Combo bo...
Power Automate
Unanswered

How to select Combo box dropdown item in sap

(0) ShareShare
ReportReport
Posted on by 36

Hi there,

 

I used the "Click SAP UI element" component to manipulate the drop-down box in SAP and got the following error.

Any suggestions?

 

zmsoft_0-1718691600706.png

zmsoft_1-1718691612334.png

 

Error details :

Correlation Id: 2e223476-a07c-45cb-8957-1c7224becda0

The method got an invalid argument.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Action failed. ---> System.Runtime.InteropServices.COMException: The method got an invalid argument.
 at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
 at Interop.SAPFEWSELib.ISapComboBoxTarget.set_Value(String )
 at Microsoft.Flow.RPA.Desktop.Modules.SAP.Actions.ClickSapGuiElement.Execute(ActionContext context)
 --- End of inner exception stack trace ---
 at Microsoft.Flow.RPA.Desktop.Modules.SAP.Actions.ClickSapGuiElement.Execute(ActionContext context)
 at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

Thanks & Regards,

zmsoft

I have the same question (0)
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @zmsoft 

     

    Have you tried with "Populate text field in window" action?

     

    Please refer the below article from step 17th  - Create an SAP desktop flow by using Power Automate Desktop - Power Automate | Microsoft Learn

     

    Consider using the recorder feature to interact with the SAP UI elements and observe the actions it generates. If that approach fails, you might resort to the "Send Keys" method to select an option from your combo box.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • zmsoft Profile Picture
    36 on at

    Hi @Deenuji 

     

    I have tried with "Populate text field in window" action. But can't pinpoint the UI element.

    The recorder can't pinpoint the drop down box.

     

    I have also tried "Move mouse " + "Send keys", but still not work.

     

     

    Thanks & Regards,

    zmsoft

  • zmsoft Profile Picture
    36 on at

    Hi @Deenuji ,

     

    I have solved this issue by using scripting record in SAP, and then use VBScript action.

     

    Thanks & Regards,

    zmsoft

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @zmsoft 

     

    It looks perfect! Have you not automated any tasks using Power Automate Desktop? Would you like to add any tips for future seekers?

     

    Please mark your previous response as the solution for this topic. Thank you! Enjoy your automation journey.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard