cancel
Showing results for 
Search instead for 
Did you mean: 

If nothing to pullout in sap

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

thomas_brutigam2
Active Participant
0 Kudos

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

Former Member
0 Kudos

Thanks it works

Answers (0)