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

Re: How to get data from a table using vb.net

$
0
0

Hello bhagavath,

 

welcome in the Scripting Language forum.

 

If you want to read the content of a cell of the GuiGridView object in the SE16 transaction code you must use the method GetCellValue. Replace the code inside your loop with this:


For i = 1 To 10 

  stt = .FindById("wnd[0]/usr/cntlGRID1/shellcont/shell").getCellValue(i, "YourColumnName"

  .FindById("wnd[0]/usr/txtI2-LOW").caretPosition = 10 

  .FindById("wnd[0]/usr/txtI2-LOW").setFocus 

Write_log(stt) 

Next 

 

Note that your must use the name of the column and not the number.

001.jpg

You can find an interesting example here.

 

Let us know your results.

 

Hint: In the actual help file of the SAP GUI Scripting 7.40 PL 7 is the method GetCellValue not longer documented. I hope that doesn't mean anything.

 

Cheers

Stefan


Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>