<?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 in webi report throwing error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13627418#M4823406</link>
    <description>&lt;P&gt;As a public service reminder (or maybe news to some), you can add and edit &lt;U&gt;code&lt;/U&gt; in a readable format using this "Add/Edit Code Sample" control here.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;case 
  when 'ALL' in @prompt('BT:','A',,Multi,Free,Not_Persistent, {'ALL','B','D'},User:0) 
    then 1
  when 'B' in @prompt('BT:','A',,Multi,Free,Not_Persistent,{'ALL','B','D'},User:0) 
    then
      case when trim(table.col1)) not in 'U','V','W','X','Y','Z' 
      then 1
  else 0
end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I probably did not capture the intended logic flow, so you can help the community by editing any post with code to be more understandable.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="insert-code-sample.png" style="width: 174px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/75232i976D86AB7FE8DFD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="insert-code-sample.png" alt="insert-code-sample.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 18:22:46 GMT</pubDate>
    <dc:creator>JimSpath</dc:creator>
    <dc:date>2024-03-04T18:22:46Z</dc:date>
    <item>
      <title>Case statement in webi report throwing error</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaq-p/13624133</link>
      <description>&lt;P&gt;Hello Frnz,&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="SAP BusinessObjects - Web Intelligence (WebI)" id="907900296036854683333078008146613"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify a webi report and adding a @prompt condition to it, but its throwing invalid relational operator error. Any suggestions please. Adding the query below i am using. Report is a custom SQL report.&lt;/P&gt;&lt;P&gt;case when 'ALL' in @prompt('BT:','A',,Multi,Free,Not_Persistent,{'ALL','B','D'},User:0) then 1&lt;BR /&gt;when 'B' in @prompt('BT:','A',,Multi,Free,Not_Persistent,{'ALL','B','D'},User:0) then&lt;BR /&gt;Case when trim(table.col1)) not in 'U','V','W','X','Y','Z' then 1&lt;BR /&gt;else 0&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;when 'D' in @prompt('BT:','A',,Multi,Free,Not_Persistent,{'ALL','B','D'},User:0) then&lt;BR /&gt;Case when trim(table.col1)) in 'U','V','W','X','Y','Z' then 1&lt;BR /&gt;else 0&lt;BR /&gt;end&lt;BR /&gt;else 0&lt;BR /&gt;end = 1&lt;/P&gt;&lt;P&gt;Error Message :&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV class=""&gt;The following database error occurred: ORA-00920: invalid relational operator&lt;BR /&gt;. For information about this error, please refer to SAP Knowledge Base Article 2054721 on the SAP Support Portal. (IES 10901)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaq-p/13624133</guid>
      <dc:creator>BIKAS</dc:creator>
      <dc:date>2024-02-29T16:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement in webi report throwing error</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13624204#M4823402</link>
      <description>&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/107"&gt;@ajmaradiaga&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/124370"&gt;@N1kh1l&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/17091"&gt;@Palak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/127440"&gt;@DataTherapist&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help please&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 18:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13624204#M4823402</guid>
      <dc:creator>BIKAS</dc:creator>
      <dc:date>2024-02-29T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement in webi report throwing error</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13624462#M4823403</link>
      <description>&lt;P&gt;- simplify your multiple-cases-and-values-statement to check if the syntax of a single part is ok and working !&lt;BR /&gt;- what is that supposed to do &amp;nbsp;&lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;end = 1&lt;/EM&gt;"&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13624462#M4823403</guid>
      <dc:creator>nachtaktiv</dc:creator>
      <dc:date>2024-03-01T00:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement in webi report throwing error</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13625904#M4823404</link>
      <description>&lt;P&gt;Generally the case syntax is on the variable, not sure if this kind of syntax is allowed. It seems to me that it would be like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;case @prompt('BT:','A',,Multi,Free,Not_Persistent,{'ALL','B','D'},User:0)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when 'ALL' then 1&lt;/DIV&gt;&lt;DIV&gt;when 'B' then&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;case when trim(table.col1) not in ('U','V','W','X','Y','Z') then 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;else 0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;end&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when 'D' then&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;case when trim(table.col1) in ('U','V','W','X','Y','Z') then 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;else 0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;end&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;else 0&lt;/DIV&gt;&lt;DIV&gt;end&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There seemed to be some missing/extra brackets as well.&lt;/DIV&gt;</description>
      <pubDate>Sat, 02 Mar 2024 10:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13625904#M4823404</guid>
      <dc:creator>Riddhiman</dc:creator>
      <dc:date>2024-03-02T10:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement in webi report throwing error</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13627365#M4823405</link>
      <description>&lt;P&gt;Thank you for replying.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13627365#M4823405</guid>
      <dc:creator>BIKAS</dc:creator>
      <dc:date>2024-03-04T16:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement in webi report throwing error</title>
      <link>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13627418#M4823406</link>
      <description>&lt;P&gt;As a public service reminder (or maybe news to some), you can add and edit &lt;U&gt;code&lt;/U&gt; in a readable format using this "Add/Edit Code Sample" control here.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;case 
  when 'ALL' in @prompt('BT:','A',,Multi,Free,Not_Persistent, {'ALL','B','D'},User:0) 
    then 1
  when 'B' in @prompt('BT:','A',,Multi,Free,Not_Persistent,{'ALL','B','D'},User:0) 
    then
      case when trim(table.col1)) not in 'U','V','W','X','Y','Z' 
      then 1
  else 0
end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I probably did not capture the intended logic flow, so you can help the community by editing any post with code to be more understandable.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="insert-code-sample.png" style="width: 174px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/75232i976D86AB7FE8DFD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="insert-code-sample.png" alt="insert-code-sample.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 18:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/case-statement-in-webi-report-throwing-error/qaa-p/13627418#M4823406</guid>
      <dc:creator>JimSpath</dc:creator>
      <dc:date>2024-03-04T18:22:46Z</dc:date>
    </item>
  </channel>
</rss>

