<?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: Case Statement Formula in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936423#M4012804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get an error when you run the formula or does it display Not Found?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Action_Type_Cd a numeric field or is it a string?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the empty value may actually be a null and not an empty string.&amp;nbsp; You can tell the report to change the null to the default value for the field.&amp;nbsp; When you open the report, go to File | Report Options.&amp;nbsp; There is an option for Convert Null Values to Default.&amp;nbsp; If the field is numeric, it will change the null to 0.&amp;nbsp; If the field is a string it will change the null to an empty string.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck, &lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 19:12:25 GMT</pubDate>
    <dc:creator>former_member292966</dc:creator>
    <dc:date>2015-03-05T19:12:25Z</dc:date>
    <item>
      <title>Case Statement Formula</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaq-p/10936421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please help? I am having difficulties lableing blank fields using a case statement formula.&amp;nbsp; Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select {Mtr_Test.Action_Type_Cd}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;case&amp;nbsp;&amp;nbsp; ' '&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; 'No Action Taken'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '0'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'No Action Taken'&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '1'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'Send to Manufacturer RMA'&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '2'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'Repaired in Shop'&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '3'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'Retired'&lt;/P&gt;&lt;P&gt;default : 'Not Found'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to treat a blank field the same as if it where case '0'&amp;nbsp; :&amp;nbsp; 'No Action Taken'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 16:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaq-p/10936421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-05T16:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement Formula</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936422#M4012803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look for an option on the top in the Formula Editor called 'Exceptions for Nulls'; set that to 'Default Values for Nulls'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will convert any NULLs in the &lt;SPAN style="color: #333333; font-size: 12px;"&gt;{Mtr_Test.Action_Type_Cd} column to blanks if it is a string field.&lt;/SPAN&gt;&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>Thu, 05 Mar 2015 19:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936422#M4012803</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2015-03-05T19:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement Formula</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936423#M4012804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get an error when you run the formula or does it display Not Found?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Action_Type_Cd a numeric field or is it a string?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the empty value may actually be a null and not an empty string.&amp;nbsp; You can tell the report to change the null to the default value for the field.&amp;nbsp; When you open the report, go to File | Report Options.&amp;nbsp; There is an option for Convert Null Values to Default.&amp;nbsp; If the field is numeric, it will change the null to 0.&amp;nbsp; If the field is a string it will change the null to an empty string.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck, &lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 19:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936423#M4012804</guid>
      <dc:creator>former_member292966</dc:creator>
      <dc:date>2015-03-05T19:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement Formula</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936424#M4012805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhilash,&lt;/P&gt;&lt;P&gt;Awesome. That worked perfectly.&amp;nbsp; {Mtr_Test.Action_Type_Cd}'s that are 0 and blank, now are listed in my report as 'No Action Taken'.&amp;nbsp; Brian also suggested using the Report Options settings which accomplished the same thing.&amp;nbsp; However, that seems to be a more global setting.&amp;nbsp; I chose to use the 'Exception for Nulls' at the formula level.&amp;nbsp; In either case, this new found knowledge will prove quite useul. Thanks again to both you and Brian!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select {Mtr_Test.Action_Type_Cd}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;case&amp;nbsp;&amp;nbsp; ' '&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; 'No Action Taken'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '0'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'No Action Taken'&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '1'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'Send to Manufacturer RMA'&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '2'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'Repaired in Shop'&lt;/P&gt;&lt;P&gt;case&amp;nbsp;&amp;nbsp; '3'&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; 'Retired'&lt;/P&gt;&lt;P&gt;default : 'Not Found'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 22:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936424#M4012805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-05T22:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement Formula</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936425#M4012806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;As you can see in my responce to Abhilash, That worked perfectly.&amp;nbsp; I chose to use Abhilash solution as stated above. Both of you were on the mark.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 22:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-formula/qaa-p/10936425#M4012806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-05T22:10:39Z</dc:date>
    </item>
  </channel>
</rss>

