Error Runtime 619-SAP GUI Scripting connect with VBA

huivern93

New Member
Joined
Apr 8, 2022
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Hi Macro Expert,

I have written the VBA code and connect with SAP scripting , however i have encountered the runtime error 619 where i able to find out the issue ,but I have no ideas how can replace any code here to continue run.

This is the first SAP recording code
session.findById("wnd[0]/usr/sub/1[0,0]/sub/1/8[0,9]/sub/1/8/9[0,12]/lbl[23,12]").SetFocus
session.findById("wnd[0]/usr/sub/1[0,0]/sub/1/8[0,9]/sub/1/8/9[0,12]/lbl[23,12]").caretPosition = 2

and this is another SAP code when i try to re-record to find the differences for that specific transaction and this is the code showing differently .
session.findById("wnd[0]/usr/sub/1[0,0]/sub/1/9[0,10]/sub/1/9/10[0,13]/lbl[32,13]").SetFocus
session.findById("wnd[0]/usr/sub/1[0,0]/sub/1/9[0,10]/sub/1/9/10[0,13]/lbl[32,13]").caretPosition = 2

Please advise how can I run if i have the same process but maybe come to here is a little bit different.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top