Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9242

Re: Vba Work in diferent SAP mods

$
0
0

Hello.

 

There are many ways how to solve it. One way to get a specific line is to check line by line until you have automatically scrolled to the row which you want to update.

.

    Do Until Session.FindById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:3001/ssubSUB_LEVEL:SAPLCOIH:1107/tabsTS_1100/tabpMUEB/ssubSUB_AUFTRAG:SAPLCOMK:3020/tblSAPLCOMKTCTRL_3020/ctxtRESBD-MATNR[1,0]").Text = strMATNR

        If Session.FindById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:3001/ssubSUB_LEVEL:SAPLCOIH:1107/tabsTS_1100/tabpMUEB/ssubSUB_AUFTRAG:SAPLCOMK:3020/tblSAPLCOMKTCTRL_3020/ctxtRESBD-MATNR[1,0]").Text <> strMATNR Then

            Session.FindById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:3001/ssubSUB_LEVEL:SAPLCOIH:1107/tabsTS_1100/tabpMUEB/ssubSUB_AUFTRAG:SAPLCOMK:3020/tblSAPLCOMKTCTRL_3020").VerticalScrollbar.Position = iScroll

            iScroll = iScroll + 1

        End If

    Loop

 

The other Option is to scroll whole Screen down and check if the first line visible is empty or filled. Scroll so Long as the first line is not free to use.


Viewing all articles
Browse latest Browse all 9242

Trending Articles