SAP get the text value

Asked

Viewed 89 times

0

Good morning, I have a problem, I hope someone can help me.

I have a table in SAP.

I need to capture the value of the Qtd.Pç column

inserir a descrição da imagem aqui

by recording the sap script brought this line

session.findById("wnd[0]/usr/cntlALV_RECEBE/shellcont/shell").setCurrentCell 0,"QTDPEC"

0 = 1st line "QTDPEC" = column name

I tried to put

x = session.findById("wnd[0]/usr/cntlALV_RECEBE/shellcont/shell").setCurrentCell 0,"QTDPEC".text

msgbox = x Of error

session.findById("wnd[0]/usr/cntlALV_RECEBE/shellcont/shell").text

msgbox = x Of error

Returns no value.

1 answer

1

Use: getcellvalue

Would look like this:

session.findById("wnd[0]/usr/cntlALV_RECEBE/shellcont/shell").getcellvalue(0,"QTDPEC")

Up until.

  • I use this getcellvalue when it’s table. the rest use . text even

Browser other questions tagged

You are not signed in. Login or sign up in order to post.