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: 

ECATT SCRIPT TO SET UP TMS FAILS TO EXECUTE

former_member214805
Discoverer
0 Kudos

I am trying put in if elseif endif

IF the  Id field 'wnd[0]/usr/txtGS_DYN100-MESSAGE' = 'You are logged onto the domain controller' (TMS already exists)

exit the script

ELSE

    SAPGUI (STMS_173_1)       -- configure TMS

               ;

               ;

ENDIF

but I get a syntax error for the test condition. How can I fix this? Is there a better way to write the above test?

thanks in advance

kind regards,

Hema

1 REPLY 1

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

This is syntax error.

If i get your query right you want to check if 'wnd[0]....' = to something.

You can assign 'wnd[0]...' to a local variable like

v_variable = 'wnd[0]...' then use if v_variable

if 'wnd[0] is constantly changing at runtime then you need to use a different approach.

Please provide details on the scenario.

Thanks,

Aj