Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Scripting Question - Script Recording and Playback - Retrieving Data

Former Member
0 Kudos

Hi,

I am very new to SAP scripting. I have created simple scripts thru recording and playback.

I have a problem in retrieving a value of a single cell from a popup window. Here goes my issue:

putting a text on a blank field is easy using the command below:

session.findById("wnd[1]/usr/tblSAPLSUPRNORG_TC/ctxtT_STORG-LOW[1,0]").Text = tmpVariable

but i would like to put the value of:

session.findById("wnd[1]/usr/tblSAPLSUPRNORG_TC/ctxtT_STORG-LOW[0,0]")

in tmpVariable2.

what would be the correct syntax for this?

Your help is highly appreciated. Thanks.

Best regards,

Jaspher

1 ACCEPTED SOLUTION

thomas_brutigam2
Active Participant
0 Kudos

Simple

by doing so:


tmpvalue2 = session.findById("wnd[1]/usr/tblSAPLSUPRNORG_TC/ctxtT_STORG-LOW[0,0]").text

greetings

Thomas Br

3 REPLIES 3

thomas_brutigam2
Active Participant
0 Kudos

Simple

by doing so:


tmpvalue2 = session.findById("wnd[1]/usr/tblSAPLSUPRNORG_TC/ctxtT_STORG-LOW[0,0]").text

greetings

Thomas Br

0 Kudos

I have tried this but it's not working in my first try. I will try again tomorrow. Thanks.

0 Kudos

Thanks a lot. It is very helpful.