cancel
Showing results for 
Search instead for 
Did you mean: 

How can i check the right list

Former Member
0 Kudos

Hello, dear helpers,

If the User has opend session.FindById("wnd[0]/usr/cntlCC_REP_COCK/shellcont/shell/shellcont[1]/shell") - This is the wrong list.
and  the User has marked lines in the wrong list there is an error in this Code

selrows = session.FindById("wnd[0]/usr/cntlCC_REP_COCK/shellcont/shell/shellcont[0]/shell").selectedRows

error:"The control could not be found by id."

How can i check the right list?

look at shellcont[0]  / shellcont[1] in the code

One solution is with "On Error Resume Next"

but i looking for a direck Check, similar as

myfindbyid= session.getFindbyIdName

Regards,

Emil

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_schnell
Active Contributor
0 Kudos

Hello Emil,

look here: http://scn.sap.com/docs/DOC-49101

This solution describes how to check the existence of an object. On the one hand you can avoid the error message "control can not be found" and on the other hand you can check the using of the correct control.

Hope it helps. Let us know.

Cheers

Stefan