<?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: Modifying an internal table field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328235#M797201</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;  Yes, you can do it by using READ statement. While modifying the itab1 use index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ITAB1 into wa_ITAB1.&lt;/P&gt;&lt;P&gt;lv_index = SY-INDEX.&lt;/P&gt;&lt;P&gt;Read ITAB2 into wa_ITAB2 with key F1 = wa_ITAB1-F1 and F2 = wa_ITAB1-F2 and F3 eq wa_ITAB1-F3.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_ITAB1-flag = "X".&lt;/P&gt;&lt;P&gt;modify ITAB1 from wa_ITAB1 TRANSPORTING flag index lv_index.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jan 2008 11:27:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-26T11:27:16Z</dc:date>
    <item>
      <title>Modifying an internal table field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328233#M797199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to modify one field 'flag' of the internal table based on the selection of another internal table.&lt;/P&gt;&lt;P&gt;That is.. I have to modify flag of ITAB1 only if the entries of ITAB1 satisfy the fields of another internal table ITAB2.&lt;/P&gt;&lt;P&gt;ITAB1 contains the field of internal table ITAB2.I tried by this method...&lt;/P&gt;&lt;P&gt;loop at ITAB1 into wa_ITAB1.&lt;/P&gt;&lt;P&gt;lv_index = SY-INDEX.&lt;/P&gt;&lt;P&gt;loop at ITAB2 into wa_ITAB2.&lt;/P&gt;&lt;P&gt;if wa_ITAB1-F1 eq wa_ITAB2-F1 and wa_ITAB1-F2 eq wa_ITAB1-F2 and wa_ITAB1-F3 eq wa_ITAB2-F3.&lt;/P&gt;&lt;P&gt;wa_ITAB1-flag = "X".&lt;/P&gt;&lt;P&gt;modify ITAB1 from wa_ITAB1 index lv_index.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;IS IT POSSIBLE TO AVOID NESTED LOOPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help..&lt;/P&gt;&lt;P&gt;thanks in advance...&lt;/P&gt;&lt;P&gt;Prabhas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 10:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328233#M797199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T10:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying an internal table field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328234#M797200</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;   You can avoid this nested loop with the &lt;STRONG&gt;READ TABLE&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;Try the following ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at ITAB1 into wa_ITAB1.&lt;/P&gt;&lt;P&gt;     clear wa_itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;read table itab2 into wa_itab2 with key F1 = wa_itab1-F1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                                       &lt;STRONG&gt;and F2 = wa_itab1-F2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                                       &lt;STRONG&gt;and F3 = wa_itab3-F3.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;         wa_ITAB1-flag = "X".&lt;/P&gt;&lt;P&gt;         modify ITAB1 from wa_ITAB1 transporting flag &lt;/P&gt;&lt;P&gt;                                             where F1 = wa_itab1-F1 and&lt;/P&gt;&lt;P&gt;                                                       F2 = wa_itab1-F2 and&lt;/P&gt;&lt;P&gt;                                                       F3 = wa_itab1-F3.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shanthi.P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;Reward points if useful *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shanthi ps on Jan 26, 2008 12:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 11:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328234#M797200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T11:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying an internal table field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328235#M797201</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;  Yes, you can do it by using READ statement. While modifying the itab1 use index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ITAB1 into wa_ITAB1.&lt;/P&gt;&lt;P&gt;lv_index = SY-INDEX.&lt;/P&gt;&lt;P&gt;Read ITAB2 into wa_ITAB2 with key F1 = wa_ITAB1-F1 and F2 = wa_ITAB1-F2 and F3 eq wa_ITAB1-F3.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_ITAB1-flag = "X".&lt;/P&gt;&lt;P&gt;modify ITAB1 from wa_ITAB1 TRANSPORTING flag index lv_index.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 11:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328235#M797201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying an internal table field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328236#M797202</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;we can change though modify or update key word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SUBASH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 13:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-an-internal-table-field/m-p/3328236#M797202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T13:17:28Z</dc:date>
    </item>
  </channel>
</rss>

