<?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: NULL Value in Crystal Reports Parameter in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357820#M2646906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huh... well it appears that String type parameters can be left blank... But it wouldn't let me leave any other parameter type blank... Including dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2010 18:42:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-22T18:42:31Z</dc:date>
    <item>
      <title>NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaq-p/7357815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have trouble getting a parameter work in Crystal Reports. I have defined a Parameter variable in the report. The parameter should restrict the data if a value is entered or it has to bring back all the data if the Value is NULL. In the SELECT EXPERT I have a condition that says IF ISNULL (Parameter_FIELD) then a Default Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the report I get an error saying that the Parameter has NULL Value. Even If I default it with some Value the report is not working the way we want to. Is there a way I can do what I am trying to achieve. Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 13:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaq-p/7357815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T13:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357816#M2646902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could pick a value to represent a null. 'Null' would work if it is a text parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a formula {@null}&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If parameter ="null" then 1 else 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your select expert use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;({@null}=1 or field=parameter)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 15:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357816#M2646902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357817#M2646903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could also try &lt;/P&gt;&lt;P&gt;if isnull(parameter) or (parameter)="" then true else &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="field"&gt;&lt;/SPAN&gt; =&lt;SPAN __jive_macro_name="parameter"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the null might not be working because your database blank spaces arent defined as null but as blank ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to file&lt;/P&gt;&lt;P&gt;opition&lt;/P&gt;&lt;P&gt;make sure you check convert null values check boxes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 16:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357817#M2646903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T16:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357818#M2646904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how this is even an issue... The user shouldn't be able to leave a parameter empty. CR won't close the parameter screen until all parameters have a value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357818#M2646904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T17:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357819#M2646905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an optional parameter that can be left empty. It is only printed on the report though and never used in the data selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357819#M2646905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357820#M2646906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huh... well it appears that String type parameters can be left blank... But it wouldn't let me leave any other parameter type blank... Including dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 18:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357820#M2646906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T18:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357821#M2646907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hadn't noticed that : D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Oct 2010 04:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357821#M2646907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-23T04:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357822#M2646908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I found. Any numeric cannot be blank in Crystal Reports. We have to create a Non Numeric Parameter.&lt;/P&gt;&lt;P&gt;In the following example ARG_SRC_ID is a non numeric parameter.  By default it will prompt the user with % which means that if the user enter % sign it will fetch all the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we are defining the ARG variable as Numeric I have to change the non numeric to Numeric format using TONUMBER function. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  {?ARG_SRC_ID} = "%"  then &lt;/P&gt;&lt;P&gt;  {SRC_AUD.SRC_ID} = {SRC_AUD.SRC_ID} else {SRC_AUD.SRC_ID} = tonumber  ({?ARG_SRC_ID})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Crystal reports should come up with better way to handle this. This should not be very tricky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 14:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357822#M2646908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T14:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: NULL Value in Crystal Reports Parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357823#M2646909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(not HasValue({?My Parameter}) OR {TABLE.FIELD} = {?My Parameter})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1021119" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 11:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/null-value-in-crystal-reports-parameter/qaa-p/7357823#M2646909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-23T11:29:14Z</dc:date>
    </item>
  </channel>
</rss>

