<?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>topic Re: case endcase with integer variables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590445#M2010161</link>
    <description>&lt;P&gt;Your syntax is wrong.&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapcase.htm"&gt;CASE&lt;/A&gt; is only for = comparison, as explained in the ABAP Documentation.&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 15:48:01 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-05-30T15:48:01Z</dc:date>
    <item>
      <title>case endcase with integer variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590443#M2010159</link>
      <description>&lt;P&gt;DATA: RESULT(3) TYPE P DECIMALS 2,&lt;/P&gt;
  &lt;P&gt; OPERATOR TYPE C.&lt;/P&gt;
  &lt;P&gt;case val.&lt;/P&gt;
  &lt;P&gt; when &amp;gt;=97.&lt;/P&gt;
  &lt;P&gt; operator = 'A+'.&lt;/P&gt;
  &lt;P&gt; when others.&lt;/P&gt;
  &lt;P&gt; operator = 'F'.&lt;/P&gt;
  &lt;P&gt;endcase.&lt;/P&gt;
  &lt;P&gt;how can i use value of variable val with comparision operands of &amp;gt;= or &amp;lt;= signs in case statement ?Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 12:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590443#M2010159</guid>
      <dc:creator>jyothsna1234</dc:creator>
      <dc:date>2022-05-30T12:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: case endcase with integer variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590444#M2010160</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;jp1239&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;use an IF statement instead of the CASE statement. With &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapcase.htm"&gt;CASE&lt;/A&gt;, you compare two operands and it's best to have constant values after WHEN.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Lena&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 12:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590444#M2010160</guid>
      <dc:creator>lenapadeken</dc:creator>
      <dc:date>2022-05-30T12:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: case endcase with integer variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590445#M2010161</link>
      <description>&lt;P&gt;Your syntax is wrong.&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapcase.htm"&gt;CASE&lt;/A&gt; is only for = comparison, as explained in the ABAP Documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 15:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590445#M2010161</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-05-30T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: case endcase with integer variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590446#M2010162</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use case statement with conditions inside select statement.&lt;/P&gt;&lt;P&gt;for e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
werks,

 matnr,

 ersda,

 clabs,

 cinsm,

 cspem, 

CASE WHEN clabs &amp;gt; 0 OR cinsm &amp;gt; 0 AND cspem &amp;gt; 0 THEN
matnr &amp;amp;&amp;amp; charg END AS ztest

 FROM mchb INTO TABLE 

@DATA(it_mchb).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But Outside select statement you can't do this. If you want to compare you can use if statement.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuja Kawadiwale&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590446#M2010162</guid>
      <dc:creator>anujawani242683</dc:creator>
      <dc:date>2022-06-01T08:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: case endcase with integer variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590447#M2010163</link>
      <description>&lt;P&gt;Use a IF .... ELSEIF .... ELSEIF .... ELSE ... ENDIF&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-endcase-with-integer-variables/m-p/12590447#M2010163</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-06-01T08:56:18Z</dc:date>
    </item>
  </channel>
</rss>

