<?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: Crystal Reports: When a parameter is null in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738535#M207745</link>
    <description>&lt;P&gt;basically the parameter is missing in store procedures or in report. &lt;/P&gt;&lt;P&gt;this error might be occur because report is not getting that parameter, first try to get latest from DataBase&amp;gt; Get Datasource Location in Crystal reports.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 07:57:14 GMT</pubDate>
    <dc:creator>former_member819228</dc:creator>
    <dc:date>2022-04-22T07:57:14Z</dc:date>
    <item>
      <title>Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaq-p/738526</link>
      <description>&lt;P&gt;I have a report that has a null value in the list of its parameter selections. Can the Crystal Report handle a null value in the parameter? My guess is that something will have to be set up, in order for me to pass it to the null value in the parameter. Is there a way to handle a null value in the parameter?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaq-p/738526</guid>
      <dc:creator>former_member548403</dc:creator>
      <dc:date>2018-08-14T17:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738527#M207737</link>
      <description>&lt;P&gt;Which version of Crystal are you using? Is the that you want to pass a null value through a parameter for a stored procedure or command, or is it just a parameter you're using in the Select Expert? What do you want to do if the value is null?&lt;/P&gt;
  &lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738527#M207737</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2018-08-14T17:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738528#M207738</link>
      <description>&lt;P&gt;It is the version 14.2. Basically, one of the parameter selections is null, or at least that is what the database has. What I would like to have is when a user selects something like "Undetermined" from the parameter list, that would get passed as the null value in the dataset and populate the report with the value. I'm not the best at explaining things, but hopefully you can understand. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738528#M207738</guid>
      <dc:creator>former_member548403</dc:creator>
      <dc:date>2018-08-14T17:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738529#M207739</link>
      <description>&lt;P&gt;Are you using a command or are you linking tables together in the report? If you're linking tables, please send the formula from the Select Expert, if you're using a command, please send the "where" clause from your SQL.&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;
  &lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738529#M207739</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2018-08-14T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738530#M207740</link>
      <description>&lt;P&gt;Actually, neither; the whole view table is being selected for the report, so no linking tables nor a SQL query.&lt;/P&gt;
  &lt;P&gt;This, however, is what I have in my formula workshop:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;{rpt_Returns.ReturnDate} in {?BeginDate} to {?EndDate} and
{rpt_Returns.barcode} in ["S04014", "S04015", "S04016", "S04104"] and
{rpt_Returns.DepartmentId} = "S" and
(isnull({?ReturnReason}) or  {rpt_Returns.ReturnReason} = {?ReturnReason} )&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738530#M207740</guid>
      <dc:creator>former_member548403</dc:creator>
      <dc:date>2018-08-14T18:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738531#M207741</link>
      <description>&lt;P&gt;I see what the problem is, try this:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;(not HasValue({?ReturnReason}) or  {rpt_Returns.ReturnReason} = {?ReturnReason} )&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In the parameter definition, be sure to set "Optional Prompt" to True so that Crystal won't require a value and will show a "Null" checkbox on the parameter.&lt;/P&gt;
  &lt;P&gt;If you want to use "Undefined" as an option in the lookup, you'll do this instead:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;({?ReturnReason} = "Undefined" or  {rpt_Returns.ReturnReason} = {?ReturnReason} )&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738531#M207741</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2018-08-14T18:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738532#M207742</link>
      <description>&lt;P&gt;Thanks! We're getting there. I tried this below at the last line in the formula workshop and it is now pulling the data with null values now.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;({?ReturnReason} = "Undefined" or  {rpt_Returns.ReturnReason} = {?ReturnReason} )&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;BUT for some strange reason, it is also pulling other data with all parameters selected. What do I need to change here?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738532#M207742</guid>
      <dc:creator>former_member548403</dc:creator>
      <dc:date>2018-08-14T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738533#M207743</link>
      <description>&lt;P&gt;Ahh! Now I see what you're trying to do. Try this instead:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;(
  ({?ReturnReason} = "Undefined" and isNull({rpt_Returns.ReturnReason}) 
  or  
  {rpt_Returns.ReturnReason} = {?ReturnReason} 
) &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Note the extra set of parentheses that I added - it won't work correctly without them.&lt;/P&gt;
  &lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738533#M207743</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2018-08-14T19:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738534#M207744</link>
      <description>&lt;P&gt;YESSSSSS!!! Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738534#M207744</guid>
      <dc:creator>former_member548403</dc:creator>
      <dc:date>2018-08-14T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Reports: When a parameter is null</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738535#M207745</link>
      <description>&lt;P&gt;basically the parameter is missing in store procedures or in report. &lt;/P&gt;&lt;P&gt;this error might be occur because report is not getting that parameter, first try to get latest from DataBase&amp;gt; Get Datasource Location in Crystal reports.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 07:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-reports-when-a-parameter-is-null/qaa-p/738535#M207745</guid>
      <dc:creator>former_member819228</dc:creator>
      <dc:date>2022-04-22T07:57:14Z</dc:date>
    </item>
  </channel>
</rss>

