<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779196#M909310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the following : &lt;/P&gt;&lt;P&gt;1) is this modify within the loop?&lt;/P&gt;&lt;P&gt;2) if the internal table is with header line, do you still explicitely require modify table itab &lt;STRONG&gt;FROM itab&lt;/STRONG&gt; clause or simple &lt;/P&gt;&lt;P&gt;Modify table itab transporting... will do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if this helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pranjal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 11:48:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T11:48:40Z</dc:date>
    <item>
      <title>modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779194#M909308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i used this code in my program.&lt;/P&gt;&lt;P&gt;MODIFY TABLE int_fdata FROM int_fdata&lt;/P&gt;&lt;P&gt;               TRANSPORTING shkzg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not updating. This row already exists. i want to update the value of SHKZG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779194#M909308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779195#M909309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Christy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In that case pass all the primary key fields in the internal table for the record which you want to update ...You can avoid using transporting statement ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779195#M909309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779196#M909310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the following : &lt;/P&gt;&lt;P&gt;1) is this modify within the loop?&lt;/P&gt;&lt;P&gt;2) if the internal table is with header line, do you still explicitely require modify table itab &lt;STRONG&gt;FROM itab&lt;/STRONG&gt; clause or simple &lt;/P&gt;&lt;P&gt;Modify table itab transporting... will do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if this helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pranjal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779196#M909310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779197#M909311</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;Try using :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODIFY int_fdata.
clear int_fdata.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779197#M909311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779198#M909312</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 have two options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Add a where condition&lt;/P&gt;&lt;P&gt;MODIFY TABLE int_fdata FROM int_fdata&lt;/P&gt;&lt;P&gt;TRANSPORTING shkzg Where XYZ = 'ABC'.&lt;/P&gt;&lt;P&gt;Where XYZ is a key in the internal table and 'ABC is the value where you want to change SHKZG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Add Index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY TABLE int_fdata FROM int_fdata&lt;/P&gt;&lt;P&gt;TRANSPORTING shkzg Index Sy-Tabix/Sy-Index/Index.&lt;/P&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;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779198#M909312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779199#M909313</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 personally like to use the modify using indexes, it makes the update always correct.&lt;/P&gt;&lt;P&gt;DATA: lv_tabix LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa.&lt;/P&gt;&lt;P&gt;MOVE sy-tabix TO lv_tabix.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;MOVE 'S' TO wa-shkzg.&lt;/P&gt;&lt;P&gt;MODIFY itab FROM wa INDEX lv_tabix.&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;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779199#M909313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T11:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779200#M909314</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 should not use tables with header lines. It is obsolete. Can you paste the definition of the table? The key value in working area have to match with at least one record in table. Are you sure that it is true? Here is the example from ABAP documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS p_carrid TYPE scarr-carrid. 

DATA scarr_tab TYPE SORTED TABLE OF scarr 
               WITH UNIQUE KEY carrid. 

DATA: idx      TYPE sy-tabix, 
      scarr_wa TYPE scarr. 

SELECT * 
       FROM scarr 
       INTO TABLE scarr_tab. 

READ TABLE scarr_tab 
     WITH TABLE KEY carrid   = p_carrid 
     TRANSPORTING NO FIELDS. 

idx = sy-tabix. 

scarr_wa-currcode = 'EUR'. 

MODIFY scarr_tab INDEX idx FROM scarr_wa 
       TRANSPORTING currcode. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779200#M909314</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2008-04-29T11:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: modify internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779201#M909315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks  to  all......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY int_fdata index idx FROM int_fdata&lt;/P&gt;&lt;P&gt;               TRANSPORTING shkzg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 12:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/3779201#M909315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T12:34:11Z</dc:date>
    </item>
  </channel>
</rss>

