Skip to Content
0
Oct 31, 2019 at 08:03 AM

How to pull out Serial NO. from Object/ISapGernericCollection via Sap Gui Scripting in vba

41 Views Last edit Oct 31, 2019 at 08:06 AM 2 rev


Could anyone help me get the TEXT(NAX-75644&NAX-75864) from below object?

Here is the code:

Set Table = Session.FindById("wnd[0]/usr/ssubSUB_MAIN_CARRIER:SAPLMIGO:0003/subSUB_ITEMDETAIL:SAPLMIGO:0301/subSUB_DETAIL:SAPLMIGO:0300/tabsTS_GOITEM/tabpOK_GOITEM_SERIAL/ssubSUB_TS_GOITEM_SERIAL:SAPLMIGO:0360/tblSAPLMIGOTV_GOSERIAL") 'wnd[0]/usr/cntlGRID1/shellcont/shell
 rows = Table.columns.Length()
        cols = Table.columns.Count()
        Dim columns As Object
    Set columns = Table.columns