<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708977#M2018908</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;flag_mail = SWITCH #( lv_tcode WHEN 'ZDRT' OR 'ZDPT' THEN abap_true ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Feb 2023 05:05:05 GMT</pubDate>
    <dc:creator>JackGraus</dc:creator>
    <dc:date>2023-02-07T05:05:05Z</dc:date>
    <item>
      <title>Case statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708975#M2018906</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;For the case statement i need two true cases.&lt;/P&gt;
  &lt;P&gt;Ex: &lt;/P&gt;
  &lt;P&gt;CASE lv_tcode.&lt;/P&gt;
  &lt;P&gt;When 'VF31'&lt;/P&gt;
  &lt;P&gt;FLAG_MAIL = ' '&lt;/P&gt;
  &lt;P&gt;WHEN 'VF02'&lt;/P&gt;
  &lt;P&gt;FLAG_MAIL = ' '&lt;/P&gt;
  &lt;P&gt;WHEN 'ZDRT'&lt;/P&gt;
  &lt;P&gt;FLAG_MAIL = 'X'&lt;/P&gt;
  &lt;P&gt;FOR ZDPT ALSO I NEED FLAG MAIL AS 'X'.SO I WROTE AS &lt;/P&gt;
  &lt;P&gt;WHEN 'ZDPT'&lt;/P&gt;
  &lt;P&gt;FLAG_MAIL = 'X'.&lt;/P&gt;
  &lt;P&gt;This wasn't working.&lt;/P&gt;
  &lt;P&gt;Also I tried, WHEN 'ZDRT' OR 'ZDPT'&lt;/P&gt;
  &lt;P&gt;FLAG_MAIL = 'X'. &lt;/P&gt;
  &lt;P&gt;This was also not working ..pls help me on this &lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 17:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708975#M2018906</guid>
      <dc:creator>suryakumar1223</dc:creator>
      <dc:date>2023-02-06T17:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708976#M2018907</link>
      <description>&lt;P&gt;CASE is as simple as IF.&lt;/P&gt;&lt;P&gt;You can find yourself the reason why "it doesn't work" (no idea what you mean), by using the debugger.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 17:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708976#M2018907</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-02-06T17:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708977#M2018908</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;flag_mail = SWITCH #( lv_tcode WHEN 'ZDRT' OR 'ZDPT' THEN abap_true ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Feb 2023 05:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708977#M2018908</guid>
      <dc:creator>JackGraus</dc:creator>
      <dc:date>2023-02-07T05:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708978#M2018909</link>
      <description>&lt;P&gt;Could you elaborate on 'This wasn't working.'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Also read &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapcase.htm"&gt;CASE statement&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Check carefully for lowercase/uppercase or any typo in code&lt;/LI&gt;&lt;LI&gt;How waw the 'local tcode' variable filled, did you use cl_dynpro=&amp;gt;get_current_transaction( ) which is required for variant/parameter transactions;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 07 Feb 2023 09:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708978#M2018909</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-02-07T09:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708979#M2018910</link>
      <description>&lt;P&gt;&lt;EM&gt;This wasn't working&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This was also not working&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;are not recognisable error messages. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 13:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-statement/m-p/12708979#M2018910</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-02-07T13:22:49Z</dc:date>
    </item>
  </channel>
</rss>

