Skip to Content
Dec 17, 2018 at 06:15 AM

How to select all content in Item detail field for Purchase orders/Documents? SAP Scripting


Hello there, I'm quite new in this topics. I would like to know if there is a way to tell to sap script that I need all the content in a field, this is a Purchase order display, and I need to get all the detail for the item, this information that I need is in "Item detail", Tab "text" and later "Item text" I need to tell to SAP that I need all the text, in the script it sets the selection as


"session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:0015/subSUB3:SAPLM....setSelectionIndexes 0,295"

the final coordinate is the number of characters in the field, I need a way to tell to SAP that I need all the selection considering that not all text length are 295 characters, could be more or less but I need all.

I need this because later I would like to set this for VBA and copy this information to a Excel template, and repeat the rutine according some PURCHASING ORDERS that I have, for this I need to set all this content in a way that the scrip store the information and later I could paste all the selection stored to my excel template.


sapdoubt.png (19.9 kB)