<?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: Loop statement logic required!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement-logic-required/m-p/3878970#M932380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi replace read by this statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab  into wa where field1 = v_field  .&lt;/P&gt;&lt;P&gt;append and then clear&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 09:48:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T09:48:31Z</dc:date>
    <item>
      <title>Loop statement logic required!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement-logic-required/m-p/3878969#M932379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is used now. Need to change into Loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the internal table t_ABC INTO w_ABC WITH KEY ....       "ABC is to collect all Successful Insertion&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    CLEAR w_ABC.&lt;/P&gt;&lt;P&gt;    Read the internal table t_XYZ INTO w_ABC WITH KEY ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      PERFORM locktable.&lt;/P&gt;&lt;P&gt;      INSERT ABC FROM w_ABC.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        w_failure = c_x.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      PERFORM unlocktable.&lt;/P&gt;&lt;P&gt;      APPEND w_ABC TO t_ABC.   "Here t_ABC will hv only all Successful Insertion records&lt;/P&gt;&lt;P&gt;      CLEAR w_ABC.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there will be more than one record, I can't use READ Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use Loop? But it should not affect performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My worry is that, if i use "Locking the table" and "Insert" inside Loop, then it will affect performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's pretty urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Neeraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 09:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement-logic-required/m-p/3878969#M932379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T09:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement logic required!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement-logic-required/m-p/3878970#M932380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi replace read by this statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab  into wa where field1 = v_field  .&lt;/P&gt;&lt;P&gt;append and then clear&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 09:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement-logic-required/m-p/3878970#M932380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T09:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop statement logic required!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement-logic-required/m-p/3878971#M932381</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;Loop at t_abc INTO w_ABC .&lt;/P&gt;&lt;P&gt;Read table t_XYZ INTO w_ABC WITH KEY ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;PERFORM locktable.&lt;/P&gt;&lt;P&gt;INSERT ABC FROM w_ABC.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;w_failure = c_x.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;PERFORM unlocktable.&lt;/P&gt;&lt;P&gt;APPEND w_ABC TO t_ABC. "Here t_ABC will hv only all Successful Insertion records&lt;/P&gt;&lt;P&gt;CLEAR w_ABC.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 10:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-statement-logic-required/m-p/3878971#M932381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T10:19:24Z</dc:date>
    </item>
  </channel>
</rss>

