<?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: Internal Table modify transporting... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-modify-transporting/m-p/3593997#M865366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
field1 = 'FIELD1'.
read table itab into wa_new with key key1 = 'ABC'.
if sy-subrc is initial.
  modify itab from wa_new index sy-tabix transporting (field1).
else.
  append wa_new to itab.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 16:48:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-27T16:48:42Z</dc:date>
    <item>
      <title>Internal Table modify transporting...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-modify-transporting/m-p/3593995#M865364</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 a peculiar problem. I have an internal table in which i want to modify a perticular cell ( not the whole row) but which cell has to be modified should be decided dynamically in the program. I will explain this with code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab INTO wa WITH KEY key1 = 'ABC'.&lt;/P&gt;&lt;P&gt;     IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;        MODIFY itab FROM wa_new INDEX sy-tabix TRANSPORTING field1.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        APPEND wa_new  TO itab.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 has to be decided at runtime...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 14:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-modify-transporting/m-p/3593995#M865364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table modify transporting...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-modify-transporting/m-p/3593996#M865365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And based on what criteria is to be decided which field FIELD1 is?&lt;/P&gt;&lt;P&gt;Generally when doing dynamic 'stuff' you should use field-symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 15:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-modify-transporting/m-p/3593996#M865365</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-03-27T15:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table modify transporting...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-modify-transporting/m-p/3593997#M865366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
field1 = 'FIELD1'.
read table itab into wa_new with key key1 = 'ABC'.
if sy-subrc is initial.
  modify itab from wa_new index sy-tabix transporting (field1).
else.
  append wa_new to itab.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 16:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-modify-transporting/m-p/3593997#M865366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T16:48:42Z</dc:date>
    </item>
  </channel>
</rss>

