INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Multiple Values for a stored procedure to be fed into a Crystal report

Multiple Values for a stored procedure to be fed into a Crystal report

(OP)
I am using SAP Crystal 2013. It is used with BO. I have a report that is calling a stored procedure. There is an excel spreadsheet with all the values needed. We would like to automate the process of reading and processing all 38 lines of data from that spreadsheet. Is this possible?
I have attached what I have thus far. Any help will be appreciated greatly.

RE: Multiple Values for a stored procedure to be fed into a Crystal report

It's not clear what you mean when you say "... reading and processing ... from that spreadsheet.

If you want to use the spreadsheet to filter the data returned from the SP, you could simply join the SP and the spreadsheet.

This is not a very efficient approach because the join will be done on the local machine, meaning all data from the SP will be returned, then filtered locally based on the spreadsheet.

It is not obvious from what you provided exactly which columns in the spreadsheet relate to the SP columns, but as long as the data you want to filter on is in the spreadsheet (and in the same format), simply create a join between it and the corresponding column in the SP.

Hope this helps

Cheers
Pete

RE: Multiple Values for a stored procedure to be fed into a Crystal report

(OP)
I appreciate the response. To clarify, I do not want to just join the xls columns to the stored procedure parameter as that, as you explained, is not efficient. Also there are memo fields in the stored procedure that will not join to the xls.
2 of the fields in the xls have multiple values. Just based on that, can you suggest a way to at least get those processed?

RE: Multiple Values for a stored procedure to be fed into a Crystal report

Do you want to run the report 38 times , one for each row in the Excel file , or 1 time and use all the values from the Excel file ?

www.R-Tag.com Viewer and Scheduler for Crystal reports, SSRS and Dynamic Dashboards.

RE: Multiple Values for a stored procedure to be fed into a Crystal report

(OP)
I would like to run it 38 times, but if that cant be done I will be happy to do it all in one run. Thanks for understanding what I want!!

RE: Multiple Values for a stored procedure to be fed into a Crystal report

To easily run it 38 separate times you would need to do one of two things:

1. Find a 3rd party tool that will handle reading the Excel file and then running the report. There might be something available at http://www.kenhamady.com/bookmarks.html.

2. Write code using either the .NET or Java SDK that will read the file, set the parameters on the report and then run the report once for each row in the file.


Also, there is no way to pass multiple values into a single prompt in a stored procedure, so I'm not sure you would be able to do this just running the report once.

-Dell

DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year
www.decisionfirst.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close