on 08-02-2013 2:07 AM
Hi everyone,
I have an inquiry on my project. I recorded a script that it will pull out the information I needed in every country we handle. But I dunno how to set if error message to my script.. after DO_QUERY to sap then error message pop up.... Its because nothing to pull out no data from that country that I need.
Can you please help me with do_query result is blank then Message SAP did not pull out anything from COUNTRY
session.findById("wnd[0]/usr/cntlCLFRM_CONTAINER/shellcont/shell/shellcont[1]/shell/shellcont[0]/shell/shellcont[1]/shell").pressButton "DO_QUERY"
after that line...
Thanks
Tina
Hello Maria,
first of all you should perhaps tell us if that is a special Transaction your working with or is it standard SAP
Next thing i assume is that SAP gives a feedback in the Statusline ()
for e,g, 0 Records have been selected (or anything like it ?)
If that is the case just click the Statusbar and there should Popup a WIndow with a Message and an ID.
With this "ID" you can get a simple Errorhandler-
If session.findbyid("wnd[0]/usr/sbar").MessageId <> 3 '(only asExample here should stand the ID you got from above ...
else
End if
greetings
Thomas Bräutigam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.