<?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: modify internal table based on field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645261#M877830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab where err = 'e'.&lt;/P&gt;&lt;P&gt; modify itab transporting err where err = ' '.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 07:08:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T07:08:11Z</dc:date>
    <item>
      <title>modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645256#M877825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in internal table i have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln    posnr    qty     errorlog&lt;/P&gt;&lt;P&gt;0001    10        2000       &lt;/P&gt;&lt;P&gt;0001    10         200&lt;/P&gt;&lt;P&gt;0001    10        100      e&lt;/P&gt;&lt;P&gt;0002     10      1000     &lt;/P&gt;&lt;P&gt;0002     20      2000      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depending on the error at e in third item remain above in same vbeln need to make errorlog as e &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln    posnr    qty     errorlog&lt;/P&gt;&lt;P&gt;0001    10        2000    e &lt;/P&gt;&lt;P&gt;0001    10         200     e&lt;/P&gt;&lt;P&gt;0001    10        100      e&lt;/P&gt;&lt;P&gt;0002     10      1000     &lt;/P&gt;&lt;P&gt;0002     20      2000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645256#M877825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645257#M877826</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 table assigning &amp;lt;fs_table&amp;gt; where errorlog eq 'e'.&lt;/P&gt;&lt;P&gt;append &amp;lt;fs_table&amp;gt; to lt_errors.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_errors assigning &amp;lt;fs_errors&amp;gt;. &lt;/P&gt;&lt;P&gt;loop at table assigning &amp;lt;fs_table&amp;gt; where vbeln eq &amp;lt;fs_errors&amp;gt;-vbeln and posnr eq &amp;lt;fs_errors&amp;gt;-posnr.&lt;/P&gt;&lt;P&gt;&amp;lt;fs_table&amp;gt;-errorlog = 'e'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645257#M877826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645258#M877827</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;see the code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab where errorlog = 'e'.
  MODIFY itab where vbeln = itab-vbeln TRANSPORTING errorlog = 'e'.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645258#M877827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645259#M877828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no not working &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where errlog = 'X'&lt;/P&gt;&lt;P&gt;search only where itfound but not in vbeln particulary need to change vbeln particularly and has to change based on particular vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding&lt;/P&gt;&lt;P&gt;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645259#M877828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645260#M877829</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;do like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:wa_itab like itab.
sort itab by errorlog.
loop at itab INTO wa_itab where errorlog = 'e'.
  LOOP AT itab where vbeln = wa_itab-vbeln.
    MODIFY itab from wa_itab TRANSPORTING errorlog.
  ENDLOOP.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 07:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645260#M877829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T07:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645261#M877830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab where err = 'e'.&lt;/P&gt;&lt;P&gt; modify itab transporting err where err = ' '.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 07:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645261#M877830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T07:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645262#M877831</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;Use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_tabix type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key errorlog = 'e'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; v_tabix = sy-tabix - 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not v_tabix is initial.&lt;/P&gt;&lt;P&gt;loop at itab from 1 to v_tabix.&lt;/P&gt;&lt;P&gt; itab-errorlog = 'e'.&lt;/P&gt;&lt;P&gt; modify itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 07:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645262#M877831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T07:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645263#M877832</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;MODIFY it_document FROM  w_document TRANSPORTING sel WHERE sel eq ''.
       &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Nov 2019 09:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645263#M877832</guid>
      <dc:creator>former_member588570</dc:creator>
      <dc:date>2019-11-19T09:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645264#M877833</link>
      <description>&lt;P&gt;I am sure your reply must have helped him 11 years after he posted his question... :-).&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 11:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645264#M877833</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2019-11-19T11:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table based on field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645265#M877834</link>
      <description>&lt;P&gt;your code not complete, it make confuse.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 07:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table-based-on-field/m-p/3645265#M877834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-20T07:46:34Z</dc:date>
    </item>
  </channel>
</rss>

