Skip to Content
avatar image
Former Member

SAP vbs Question

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 15, 2016 at 02:37 PM

    I would search for my layout per script.

    for example:

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



    Add comment
    10|10000 characters needed characters exceeded