cancel
Showing results for 
Search instead for 
Did you mean: 

writing a variable to a textbox

Former Member
0 Kudos

I am trying to insert a variable into a place that usually hold text.

session.findById("wnd[0]/usr/tblSAPLCOVGTCTRL_2850/ctxtMLSTD-EDATU[7,5]").text = "MyDate3Months"

I would like to say

session.findById("wnd[0]/usr/tblSAPLCOVGTCTRL_2850/ctxtMLSTD-EDATU[7,5]").value = MyVariable

I seem to be able to do some things but other things in SAP seem unfriendly to my overtures.

I have been recording and altering SAP scripts. Is there a guide or a book on scripting? Do not have rights to the debuging features.

Thanks

Sherry

Accepted Solutions (0)

Answers (1)

Answers (1)

holger_khn
Contributor
0 Kudos

Hello.


Dim MyVariable as String

MyVariable = "MyDate3Months"

session.findById("wnd[0]/usr/tblSAPLCOVGTCTRL_2850/ctxtMLSTD-EDATU[7,5]").Text = MyVariable

That should work as expected.

Best regards,

Holger