Click Toolbar Button activity doesn't work for end users

Hello Team,

I am facing an issue where activity “Click Toolbar Button” in SAP doesn’t work for my end users. Everything else in SAP works just fine, but when it comes to this activity, the robot stops. When I use this activity on my machine with the same settings in SAP as end users, it works without any issue. Do you know where could be the problem?

image

Selector:

Thanks for any advice

Best regards
Alex

@Hrbacek_Alex,

What error bot throws?

Thanks,
Ashok :slight_smile:

In this case this:
Exception Message: Value does not fall within the expected range. ;Source: System.Activities

When I tried to use this activity on dropdown button, which worked for me as well, the end user got this exception:

Exception Message: Could not find the UI element corresponding to this selector:
[1] <wnd app=‘saplogon.exe’ cls=‘SAP_FRONTEND_SESSION’ title=‘MP1(1)/420 Založ. Dodt.zásil.zdarmLg.V: Přehled’/
[2] <sap id=‘usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\01/ssubSUBSCREEN_BODY:SAPMV45A:4400/ssubHEADER_FRAME:SAPMV45A:4440/cmbVBAK-AUGRU’/
Search failed at selector tag:
[1] <wnd app=‘saplogon.exe’ cls=‘SAP_FRONTEND_SESSION’ title=‘MP1(1)/420 Založ. Dodt.zásil.zdarmLg.V: Přehled’/
The closest matches found are:
[58%] <wnd cls=‘SAPTreeList’ title=‘SAP's Advanced Treelist’/
[53%] <wnd cls=‘Custom Container Class’ title=‘Custom Container’/
[53%] <wnd cls=‘Custom Container Class’ title=‘Custom Container’/
[53%] <wnd cls=‘Custom Container Class’ title=‘Custom Container’/
[51%] <wnd cls=‘Shell Window Class’ title=‘Control Container’/
[51%] <wnd cls=‘Shell Window Class’ title=‘Control Container’/
[44%] <wnd cls=‘AfxOleControl140’/
[44%] <wnd cls=‘AfxOleControl140’/
[44%] <wnd cls=‘Afx:5CAE0000:8:00010003:00000000:00000000’ title=‘AppToolbar’/
[43%] ;Source: System.Activities

Thanks,
Alex

Ok so issue is the toolbar button is not available in the Toolbar. There could be two possibilities of issue.

User missing the access which is limiting the toolbar button.
The toolbar button you are trying to click is different on the user machine. this could happen in case of theme change as well. Try to dig around this possibilities.

Thanks,
Ashok :slight_smile:

Am I able to check what selector should I use? For example by using the SAP GUI Property Collector on end user’s machine?

I matched my settings with my end user and it still doesn’t work on end user’s site.

Thanks
Alex

What button from the toolbar you are trying to click? and transaction code/screen?

For example

  1. ME21N
    image

  2. VA01
    image

  3. And menu in SAP in every transaction
    image

None of them works for end users, but for me it does everytime.

for this use Activities - Select Menu Item. This should work.

For ME21N try to record the vbs with SAP and see what is macro selecting on user machine.

Thanks,
Ashok :slight_smile: