<?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: Obsolete syntax and possible dynamic IF statement? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217070#M1983285</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;1. Yes, IMPORT/EXPORT memory can be used but just be aware of clearing the memory id and using within one LUW.&lt;/P&gt;&lt;P&gt;2. Dynamic IF condition is not possible straightforward way. But there is a bit complex, alternative available, please go through this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2016/02/29/dynamic-if-condition/"&gt;https://blogs.sap.com/2016/02/29/dynamic-if-condition/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also consider using CASE statement as dynamic options will be limited.&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 04:13:12 GMT</pubDate>
    <dc:creator>GK817</dc:creator>
    <dc:date>2020-08-18T04:13:12Z</dc:date>
    <item>
      <title>Obsolete syntax and possible dynamic IF statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217069#M1983284</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have two questions regarding ABAP:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;1. I have read that EXPORT IMPORT is not totally obsolete, export/import without MEMORY ID is obsolete but if we use:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;EXPORT itab FROM itab FROM MEMORY ID 'XXXXX'&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;IMPORT itab TO itab FROM MEMORY ID 'XXXXX'&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have read threads regarding this from 2013 and just wanted to confirm if this is still true?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;2. Is there a way to make an IF statement dynamic? Requirement is I have operations maintained in a custom table field: GT/LE/EQ/LT/GE and want to use this field. Instead of explicitly writing IF lv_var1 EQ lv_var2, I want to use the table field: IF lv_var1 &amp;lt;table_field&amp;gt; lv_var2. Is this possible? &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks in advance for any inputs!&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Katherine Darunday&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 03:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217069#M1983284</guid>
      <dc:creator>former_member602116</dc:creator>
      <dc:date>2020-08-18T03:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Obsolete syntax and possible dynamic IF statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217070#M1983285</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;1. Yes, IMPORT/EXPORT memory can be used but just be aware of clearing the memory id and using within one LUW.&lt;/P&gt;&lt;P&gt;2. Dynamic IF condition is not possible straightforward way. But there is a bit complex, alternative available, please go through this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2016/02/29/dynamic-if-condition/"&gt;https://blogs.sap.com/2016/02/29/dynamic-if-condition/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also consider using CASE statement as dynamic options will be limited.&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 04:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217070#M1983285</guid>
      <dc:creator>GK817</dc:creator>
      <dc:date>2020-08-18T04:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Obsolete syntax and possible dynamic IF statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217071#M1983286</link>
      <description>&lt;P&gt;Please ask the questions separately, otherwise it will be very difficult for visitors to locate answers.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 08:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217071#M1983286</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-08-18T08:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Obsolete syntax and possible dynamic IF statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217072#M1983287</link>
      <description>&lt;P&gt;It is easy to check what is obsolete or not in the F1 help on a keyword or the whole chapter - Obsolete Language Elements. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 09:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217072#M1983287</guid>
      <dc:creator>Szczerbowski</dc:creator>
      <dc:date>2020-08-18T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Obsolete syntax and possible dynamic IF statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217073#M1983288</link>
      <description>&lt;P&gt;1. The way you say it, people could think that EXPORT IMPORT is mostly obsolete. That's incorrect. You're talking about a very specific &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapexport_import_mem_id_obsolete.htm"&gt;syntax without ID which was not documented&lt;/A&gt; and has been obsolete for a long time (I didn't even know that some people used it). It's officially obsolete since at least 2011 (ABAP 7.31), but developers didn't use it before because anything error-prone should not be used.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 09:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217073#M1983288</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-08-18T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Obsolete syntax and possible dynamic IF statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217074#M1983289</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;IF dynamic_condition-operator = 'GT'.
  IF operand1 GT operand2.
    ...
  ENDIF.
ELSEIF dynamic_condition-operator = 'LE'.
  IF operand1 LE operand2.
    ...
  ENDIF.
ELSEIF dynamic_condition-operator = 'EQ'.
  IF operand1 EQ operand2.
    ...
  ENDIF.
ELSEIF ...
...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Aug 2020 09:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217074#M1983289</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-08-18T09:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Obsolete syntax and possible dynamic IF statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217075#M1983290</link>
      <description>&lt;P&gt;For 2)&lt;/P&gt;&lt;P&gt;The other alternate that can be used is via Dynamic WHERE clauses on internal tables you are going to use the tables. Otherwise, you can also choose to convert your variables into type table use the dynamic where clause. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 09:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obsolete-syntax-and-possible-dynamic-if-statement/m-p/12217075#M1983290</guid>
      <dc:creator>ankit_aggarwal5</dc:creator>
      <dc:date>2020-08-18T09:25:39Z</dc:date>
    </item>
  </channel>
</rss>

