Skip to Content
0

SAP vbs Question

Dec 14, 2016 at 11:35 AM

114

avatar image
Former Member

Is there a way to manually type a layout name into my recorded SAP VBScript? At my place of work, we run several vbs scripts on an hourly basis and the data is uploaded into a web based dashboard. The problem is that users sometimes save their own layouts, which changes the layout position in my vbs scripts. I frequently have to go back into my scripts and enter the new layout position. Thanks!

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

1 Answer

Script Man Dec 15, 2016 at 02:37 PM
0

I would search for my layout per script.

for example:

...
session.findById("wnd[0]").sendVKey 4
session.findById("wnd[1]/tbar[0]/btn[71]").press
session.findById("wnd[2]/usr/txtGS_SEARCH-VALUE").text = "/myLayout"
session.findById("wnd[2]/tbar[0]/btn[0]").press
session.findById("wnd[2]/tbar[0]/btn[12]").press
myRow = session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").currentCellRow
session.findById("wnd[1]/usr/cntlGRID/shellcont/shell").selectedRows = myRow
session.findById("wnd[1]/tbar[0]/btn[0]").press
...

Regards,

ScriptMan

Share
10 |10000 characters needed characters left characters exceeded