Skip to Content
0

How to handle new layouts being added to table view in VBScript?

Jul 31, 2017 at 12:31 PM

46

avatar image
Former Member

Good day!

I am running into a problem when using VBScript to retrieve data from a table view in SAP. There are many different layout options and I have used the script recorder to do most of the process; however, when a new layout is added to the list it throws off the order of layouts and my program ends up choosing the wrong one. This is what my code looks like so far:

session.findById("wnd[1]/usr/ssubD0500_SUBSCREEN:SAPLSLVC_DIALOG:0501/cntlG51_CONTAINER/shellcont/shell").setCurrentCell 162,"TEXT" session.findById("wnd[1]/usr/ssubD0500_SUBSCREEN:SAPLSLVC_DIALOG:0501/cntlG51_CONTAINER/shellcont/shell").selectedRows = "162" session.findById("wnd[1]/usr/ssubD0500_SUBSCREEN:SAPLSLVC_DIALOG:0501/cntlG51_CONTAINER/shellcont/shell").clickCurrentCell

Is there a way to ensure that it clicks the correct layout every time? The name of the layout is "/5108 DMANNS". Thank you very much for your help!

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

0 Answers