cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member598576
Discoverer
0 Kudos

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

[Code]

"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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183424
Active Contributor

You need to use READ_TEXT function module in your driver program.

Answers (0)