<?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 Achieving performance in loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/achieving-performance-in-loop/m-p/3469565#M834042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if it is possible within ABAP to do the following.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_spec_keyfig-tech_name has value 'Z1KF100Q' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_s_data-(wa_spec_keyfig-tech_name) NE 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE g_s_data-(wa_spec_keyfig-tech_name) TO wa_results-KEYFIG. &lt;/P&gt;&lt;P&gt;APPEND wa_results TO IT_results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear: wa_results, g_s_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;And that abap makes it like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_s_data-Z1KF100Q NE 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE g_s_data-Z1KF100Q TO wa_results-KEYFIG. &lt;/P&gt;&lt;P&gt;APPEND wa_results TO IT_results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear: wa_results, g_s_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 14:19:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-26T14:19:43Z</dc:date>
    <item>
      <title>Achieving performance in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/achieving-performance-in-loop/m-p/3469565#M834042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if it is possible within ABAP to do the following.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_spec_keyfig-tech_name has value 'Z1KF100Q' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_s_data-(wa_spec_keyfig-tech_name) NE 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE g_s_data-(wa_spec_keyfig-tech_name) TO wa_results-KEYFIG. &lt;/P&gt;&lt;P&gt;APPEND wa_results TO IT_results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear: wa_results, g_s_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;And that abap makes it like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_s_data-Z1KF100Q NE 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE g_s_data-Z1KF100Q TO wa_results-KEYFIG. &lt;/P&gt;&lt;P&gt;APPEND wa_results TO IT_results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear: wa_results, g_s_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/achieving-performance-in-loop/m-p/3469565#M834042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Achieving performance in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/achieving-performance-in-loop/m-p/3469566#M834043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please read documentation to ASSIGN COMPONENT, this should result into something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS: &amp;lt;wa&amp;gt;   TYPE ANY,
               &amp;lt;comp&amp;gt; TYPE ANY.

ASSIGN g_s_data to &amp;lt;wa&amp;gt;.
ASSIGN COMPONENT wa_spec_keyfig-tech_name
    OF STRUCTURE &amp;lt;wa&amp;gt;
    TO &amp;lt;comp&amp;gt;.
    
IF &amp;lt;comp&amp;gt; = 0.
  MOVE &amp;lt;comp&amp;gt; TO wa_results-keyfig.
  APPEND wa_results TO IT_results.
  
  CLEAR: wa_results, g_s_data.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 17:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/achieving-performance-in-loop/m-p/3469566#M834043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T17:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Achieving performance in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/achieving-performance-in-loop/m-p/3469567#M834044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to thank you very much.&lt;/P&gt;&lt;P&gt;This was indeed what I was looking for!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANX!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 09:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/achieving-performance-in-loop/m-p/3469567#M834044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T09:29:02Z</dc:date>
    </item>
  </channel>
</rss>

