Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3257

Input parameter code for queries

$
0
0

I have a query that requires an input parameter that can be several values. I know I could create this in Crystal (thanks everyone for advising that!) but for now I'm producing it inside the SAP Query Manager with four possible inputs (image attached). Bu I find I have to fill out all four or it throws an error with the DECLARE code (2nd image attached). The error message says "Incorrect syntax near the keyword DECLARE".

 

Can I somehow bypass the DECLAREs if I don't want to enter all four values? What should the SQL code look like? (Thank you Juan Carlos, Nagarajanand and Rahul with your help earlier today!)


Viewing all articles
Browse latest Browse all 3257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>