<?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: Question on table operation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-table-operation/m-p/729536#M34345</link>
    <description>&lt;P&gt;I think you should check whether range is initial or not then put it into select condition, you can use dynamic sql here.&lt;/P&gt;
  &lt;P&gt;or you can use assign field symbol like:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;loop at itab into wa.
do 28 times. 
assign component sy-indx of structure wa into field-symbols(&amp;lt;val&amp;gt;).
assign |range_name{ sy-indx }| to &amp;lt;rng&amp;gt;. " i dont have system here to check so basically you need to have 28 range 
                                         " with same name except last number.

check &amp;lt;val&amp;gt; in &amp;lt;rng&amp;gt;.
endo.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;i think above code not make the performance better but it shorter :).&lt;/P&gt;</description>
    <pubDate>Sun, 02 Sep 2018 07:52:02 GMT</pubDate>
    <dc:creator>DoanManhQuynh</dc:creator>
    <dc:date>2018-09-02T07:52:02Z</dc:date>
    <item>
      <title>Question on table operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-table-operation/m-p/729535#M34344</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I have a internal table with 28 columns explaining class characteristics so my internal table looks like this.&lt;/P&gt;
  &lt;P&gt;where f1 f2.. are class characteristics&lt;/P&gt;
  &lt;P&gt;f1 f2 f3 f4 .. f28&lt;/P&gt;
  &lt;P&gt;I need to filter the table entries based on ranges r1 r2 .. r28&lt;/P&gt;
  &lt;P&gt;that means if field f1 is not in ranges r1 and r1 is not initial delete that table entrty because field f1 is not in the range of r1 and r1 is filled .&lt;/P&gt;
  &lt;P&gt;the procedure I am using is &lt;/P&gt;
  &lt;P&gt;loop internal table tb_tab into wa&lt;/P&gt;
  &lt;P&gt;if wa-f1 is not initial and r1 is not initial &lt;/P&gt;
  &lt;P&gt;check wa-f1 in r1&lt;/P&gt;
  &lt;P&gt;endif&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;if wa-f2 is not initial and r2 is not initial.&lt;/P&gt;
  &lt;P&gt;check wa-f2 in r2.&lt;/P&gt;
  &lt;P&gt;endif&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;..&lt;/P&gt;
  &lt;P&gt;.. similarly for fileds 28 till r28&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;append wa to tb_temp&lt;/P&gt;
  &lt;P&gt;endloop.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;finally delete table tb_tab and create an temp table tb_tab_temp and pass temp table contents to tb_tab.&lt;/P&gt;
  &lt;P&gt;please suggest if there is any other better way&lt;/P&gt;
  &lt;P&gt;thanks&lt;/P&gt;
  &lt;P&gt;balu&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 06:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-table-operation/m-p/729535#M34344</guid>
      <dc:creator>bala_krishna007</dc:creator>
      <dc:date>2018-09-02T06:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question on table operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-table-operation/m-p/729536#M34345</link>
      <description>&lt;P&gt;I think you should check whether range is initial or not then put it into select condition, you can use dynamic sql here.&lt;/P&gt;
  &lt;P&gt;or you can use assign field symbol like:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;loop at itab into wa.
do 28 times. 
assign component sy-indx of structure wa into field-symbols(&amp;lt;val&amp;gt;).
assign |range_name{ sy-indx }| to &amp;lt;rng&amp;gt;. " i dont have system here to check so basically you need to have 28 range 
                                         " with same name except last number.

check &amp;lt;val&amp;gt; in &amp;lt;rng&amp;gt;.
endo.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;i think above code not make the performance better but it shorter :).&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 07:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-table-operation/m-p/729536#M34345</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-09-02T07:52:02Z</dc:date>
    </item>
  </channel>
</rss>

