<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Help with parameters when using a sql command based report in Crystal Reports 2008. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239803#M4156190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just mentioned one however, you'll need to add both prompts to the where clause with the same logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Abhilash&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 17:57:36 GMT</pubDate>
    <dc:creator>abhilash_kumar</dc:creator>
    <dc:date>2015-09-09T17:57:36Z</dc:date>
    <item>
      <title>Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaq-p/11239799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not used crystal reports since version 8.5 and now I am back at it.&amp;nbsp; I am using Crystal Reports 2008 and am not using it in SAP.&amp;nbsp; I have created a report or open orders using SQL and have 2 parameters that I am passing in for a date range that is working great. I need 2 more parameters, but not sure how to get them to work. I am wanting the user to be able to choose from the ordered_by column and they need to be able to choose more than one, but also with the option of leaving it blank for all or selecting 'ALL' to get all.&amp;nbsp; I have the same issue with the order_type, once again would like to list the order types to choose from and allow the user to select more than one or leave it blank for all or select 'ALL' to get all. I do not want a static list, I would prefer to show a list of only the values that are within the date range that was selected.&amp;nbsp; I have tried building dynamic lists pointing to the ordered_by column in the sql command, but all I get is a single blank line to manually type something in.&amp;nbsp; I tried building this same report using the tables instead of sql, but the report runs pretty slow and still having trouble with the dynamic lists.I have looked online for documentation, videos and not really finding anything like what I am dealing with.&amp;nbsp; I have looked at the document "How to work with Crystal Reports in SAP Business One", but once again I am not using it in SAP, so a lot of the items that looked like they would help are not possible. Any and all help would be greatly appreciated (especially visuals, screenshots, videos, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your time and help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 14:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaq-p/11239799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239800#M4156187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't build a dynamic parameter for a command based on the command itself.&amp;nbsp; You won't get any data.&amp;nbsp; For information about how to build dynamic parameters when using a command, see my blog post here:&amp;nbsp; &lt;A __default_attr="123290" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Best Practices When Using Commands with Crystal Reports" href="https://community.sap.com/" modifiedtitle="true" title="Best Practices When Using Commands with Crystal Reports."&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may not be able to pre-filter the order_type by the dates, but you should be able to get the "All" value in there using a separate command for the parameter values - I generally use "*All" to make sure that it's at the top of the list.&amp;nbsp; The only way I can think of for making sure that the data is filtered by dates requires either Crystal Reports Server or BusinessObjects and parameters created through the Business View Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 17:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239800#M4156187</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2015-09-09T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239801#M4156188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Make sure you've created the Order_By prompt in the Main Command Object and used it in its where clause. Also, make sure that is has been set to 'Allow multiple values'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The where clause would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ({?Order_By_prompt} = 'ALL' OR table.order_by IN '{?Order_by}'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Next, create another Command Object that looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;Select table.order_by from table&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;UNION&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;Select "ALL" from table&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;3) DO NOT Join this command object with the other Command Object&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;4) Expand the Field Explorer &amp;gt; Right-click the order_by prompt &amp;gt; Edit &amp;gt; Under 'List of Values' choose 'Dynamic'. Under 'Values' choose the 'Order_by' column from the command object you created in step 2.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;5) Repeat steps 2 through 4 for Order_Type.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;You cannot unfortunately, filter these two prompts based on another 'Date' prompt. The workaround involves using Business View Manager and which comes with the SAP BO Server suite (I don't think you have an SAP BO environment anyway).&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Hope this helps.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;-Abhilash&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 17:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239801#M4156188</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2015-09-09T17:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239802#M4156189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhilash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am following you instructions except for the first part. the where clause has 2 prompts ({?Order_By_prompt} and {?Order_by}), but you only mention creating 1 prompt . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 17:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239802#M4156189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239803#M4156190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just mentioned one however, you'll need to add both prompts to the where clause with the same logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Abhilash&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 17:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239803#M4156190</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2015-09-09T17:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239804#M4156191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am only talking about the order_by right now.&amp;nbsp; In your example the where clause is written like this:&amp;nbsp; where ({?Order_by_prompt} = 'ALL' OR table.order_by IN '{?Order_by}') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking did you mean to have {?Order_by_prompt} and {?Order_by}?&lt;/P&gt;&lt;P&gt;Also, I think the first prompt needs single quotes around it like the second parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not trying to be difficult, just a little confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 18:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239804#M4156191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T18:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239805#M4156192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, what I typed really looks confusing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both &lt;SPAN style="color: #333333; font-size: 12px;"&gt;{?Order_by_prompt} and {?Order_by} and meant to be the same prompt (or whatever you've named it).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, you should try using single quotes around it too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Abhilash&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 18:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239805#M4156192</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2015-09-09T18:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239806#M4156193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, so I looked at your "Best Practices When Using Commands with Crystal Reports" (very helpful). when I looked at what you had and what Abhilash had, they appear to be the same basic idea. So I went into my existing sql command and add the following to my existing where clause:&lt;/P&gt;&lt;P&gt;AND ('{?ordered_by}' = '*ALL' OR o.ordered_by IN '{?ordered_by}')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a prompt {?ordered_by} as a string and checked the box for multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I click OK to save and close the command window, I get the following error:&lt;/P&gt;&lt;P&gt;Database Connection Error: '42000:[Microsoft][SQL Server Native Client 10.0][SQL Serer]Incorrect syntax near the keyword 'ALL'. [Database Vendor Code: 156 ]'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 18:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239806#M4156193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239807#M4156194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhilash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I went into my existing sql command and add the following to my existing where clause:&lt;/P&gt;&lt;P&gt;AND ('{?ordered_by}' = '*ALL' OR o.ordered_by IN '{?ordered_by}')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a prompt {?ordered_by} as a string and checked the box for multiple values.&lt;/P&gt;&lt;P&gt;But when I click OK to save and close the command window, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Connection Error: '42000:[Microsoft][SQL Server Native Client 10.0][SQL Serer]Incorrect syntax near the keyword 'ALL'. [Database Vendor Code: 156 ]' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 18:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239807#M4156194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T18:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239808#M4156195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;AND ({?ordered_by} = '*ALL' OR o.ordered_by IN '{?ordered_by}')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;-Abhilash&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 18:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239808#M4156195</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2015-09-09T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239809#M4156196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I get a different error message: Failed to retrieve data from database. Details: 42000:[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '('. [Database Vendor Code: 102 ]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 19:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239809#M4156196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T19:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239810#M4156197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That error is coming directly from the database client. Unmodified by CR. E.g.; check youd DB documentation or google 'Vendor Code: 102'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;- Ludek &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;Senior Support Engineer AGS Product Support, Global Support Center Canada &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;Follow me on &lt;/SPAN&gt;&lt;A href="https://twitter.com/crnanalysistips"&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Twitter&lt;/STRONG&gt;&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 19:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239810#M4156197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239811#M4156198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;AND ({?ordered_by} = '*ALL' OR o.ordered_by IN ('{?ordered_by}'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;-Abhilash&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 19:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239811#M4156198</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2015-09-09T19:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239812#M4156199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same error message and I tied added single quotes back to the first parameter and it gives the same error message on that too. I am on SQL Server 2008 R2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 19:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239812#M4156199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T19:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239813#M4156200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looked at these numbers in SQL Server.&amp;nbsp; It does not make sense to me for the syntax we are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;102- Incorrect syntax near '%.*ls'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;256 - The data type int is invalid for the substring function.&amp;nbsp; Allowed types are: char/varchar, nchar/nvarchar, and binary/varbinary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239813#M4156200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T20:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239814#M4156201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, so I have been doing some testing, trying different things and I just figured out something.&amp;nbsp; The error 256 mentioning the "Incorrect syntax near keyword 'ALL'". I could not see anything wrong with the syntax and I was wondering if I was passing 'ALL' into the parameter to test if that was the issue. So, I changed the value to the word Test and now I get "Incorrect syntax near keyword 'Test'". Is the format of the data inside the parameter incorrect and it is causing a syntax error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239814#M4156201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T21:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239815#M4156202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could never get this to work without errors, so I changed to using a sub report. As long as I only have 1 item selected it works. But, when I select more than one item I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failed to retrieve data from the database.&lt;/P&gt;&lt;P&gt;Details: 42000:[Microsoft][SQL Server Native Client 10.0][SQL Server]A SELECT statement that assigns a value to a variable must not be combined with data-retrieval operations. [Database Vendor Code: 141 ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No matter how I try to configure this report, I cannot figure out how to make this work.&lt;/P&gt;&lt;P&gt;I am desperate for some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 05:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239815#M4156202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-10T05:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239816#M4156203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't put quotes around the parameter.&amp;nbsp; That's only for single-value string parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239816#M4156203</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2015-09-10T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239817#M4156204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, try changing your condition to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND ('*All' in {?Order_By} OR o.order_by in {?Order_By})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239817#M4156204</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2015-09-10T13:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with parameters when using a sql command based report in Crystal Reports 2008.</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239818#M4156205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, this is great, for the first time ever it is working when I manually enter the data into the parameter for the order by.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I create the second command object and I refresh my data to test, I get the parameter popup and it looks great.&amp;nbsp; I add my dates and then I select my ordered_by names and click ok.&amp;nbsp; I get the following error:&amp;nbsp; Connection is busy with results for another command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 14:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-parameters-when-using-a-sql-command-based-report-in-crystal/qaa-p/11239818#M4156205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-10T14:34:16Z</dc:date>
    </item>
  </channel>
</rss>

