Skip to Content
avatar image
Former Member

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

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers