Application Development and Automation 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: 
Read only

Sap Scripting Question - Script Recording and Playback - Retrieving Data

Former Member
0 Likes
701

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
Read only

Former Member
0 Likes
603

Simple

by doing so:


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

greetings

Thomas Br

3 REPLIES 3
Read only

Former Member
0 Likes
604

Simple

by doing so:


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

greetings

Thomas Br

Read only

0 Likes
603

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

Read only

0 Likes
603

Thanks a lot. It is very helpful.