Skip to Content
0

The control could not be found by id

Aug 27, 2017 at 04:37 PM

664

avatar image
Former Member

Hello all.

I have script .vbs recorded on one notebook[A]. The part of code:

session.findById("wnd[0]/usr/ctxtLIKP-LIFNR").text = "103005"

On the other notebook[B] the same part looks like:

session.findById("wnd[0]/usr/ctxt[0]").text = "103005"

When i try to run scrip from the first Notebook[A] on the other [B], the second one gives message: "The control could not be found by id"

The same error i have got when run script from notebook[B] on notebook [A].

Also we have many others notebooks in company. They record scripts in the same way as the notebook [B] (session.findById("wnd[0]/usr/ctxt[0]").text)

But we have huge script recorded on the notebook [A] and we need to run it on others notebooks.

Is there any ways to make other notebooks read the script (session.findById("wnd[0]/usr/ctxtLIKP-LIFNR").text = "103005") correctly?

Thank you in advance.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Script Man Aug 28, 2017 at 12:13 PM
0
Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Dear ScriptMan

Thank you for your support. But we have SAP 730 and we dint have Properties menu ad in link you have sent.

IS any other tricks to solve the problem.

Thanks

0

Hi Nick,

please have a look at this link:

https://saphowtoguide.blogspot.de/2012/11/how-to-configure-sap-logon-730.html

Regards,

ScriptMan

0
Former Member

Thank you ScriptMan for a quick answer.

The problem is that the "Paper icon" is inactive in my clent. Thу reason is the access policy of the company. I have already created the list of available connections and it seems it cant be edit.

What elsу can I do?

0
Script Man Aug 30, 2017 at 06:31 AM
0

Hi Nick,

my workaround as follows:

       
on error resume next
session.findById("wnd[0]/usr/ctxtLIKP-LIFNR").text = "103005"

if err.number <> 0 then session.findById("wnd[0]/usr/ctxt[0]").text = "103005"

on error goto 0



Regards,

ScriptMan

Share
10 |10000 characters needed characters left characters exceeded