We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-scripting-l] "no data was selected" Message in SAP

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by trumptmast
on Oct 31 at 1:50 PM
Thanks Wes, your method worked perfectly.

---------------Original Message---------------
From: trumptmast
Sent: Friday, October 28, 2011 6:49 PM
Subject: "no data was selected" Message in SAP

Hi all,

I am new to this site and to SAP scripting. I have a question regarding to how to bypass SAP error messages while running an Excel macro.

I recently played around with SAP script recording and Excel macro. So far, I have been able to run the recorded script from SAP in Excel VBA for report gathering and formatting.

Here is what I have so far:
1. Login to SAP through Excel
2. Copies data from Excel and paste into SAP Query #1
3. Export result from Query #1 to Excel and then format in Excel
4. Copy formatted data from Excel and paste in to SAP Query #2
5. Export result from Query #2 to Excel and then format in Excel

The problem arise at step 4. Sometimes Query #2 comes up empty and displays "No data was selected". This stops the Excel macro because the SAP code is recorded based off when there are data returned from Query #2. Is there a way to continue running the Excel macro and bypass the error?

I don't want it go straight to the next section of the code through error handling in Excel as there may be other errors during the SAP automation. So it will have to be conditional to only when running Query #2 with the "No data was selected" error.

Thanks for your help!

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Popular White Papers

In the Spotlight
Have you explored the Toolbox.com Marketplace? Learn more and access a free course now.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language