<?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 statement is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419713#M821351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY USING THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;loop at itab2 where f1 = itab1-f1 and f2 = itab2-f2 .&lt;/P&gt;&lt;P&gt;itab2-f3 = itab2-f3 + itab1-f3. &lt;/P&gt;&lt;P&gt;modify table itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2008 12:41:44 GMT</pubDate>
    <dc:creator>former_member609120</dc:creator>
    <dc:date>2008-02-08T12:41:44Z</dc:date>
    <item>
      <title>modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419707#M821345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 2 iternal tables itab1 and itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i fetched the data into itab1 and it has 4 fields and itab2 also has 4 fields and fetched the data into it.&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab2 with key f1 = itab1-f1&lt;/P&gt;&lt;P&gt;                          f2 = itab2-f2 binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;itab2-f3 = itab2-f3 + itab1-f3.        " both these fields are same not overflowing    &lt;/P&gt;&lt;P&gt;modify table itab2 transporting f3.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;this modify statement is not working even though itab2 and itab1 is having header line.please explain &lt;/P&gt;&lt;P&gt;me why this code is not working and also suggest me alternate code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419707#M821345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T12:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419708#M821346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ITAB2 &lt;STRONG&gt;INDEX SY-TABIX&lt;/STRONG&gt; TRANSPORTING F3 .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Since you are within a loop, you need to pin point which record needs to be modified!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Remi&lt;/P&gt;&lt;P&gt;Plz reward points if useful!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419708#M821346</guid>
      <dc:creator>RemiKaimal</dc:creator>
      <dc:date>2008-02-08T12:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419709#M821347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try to debug? One thing is sure: itab2 has to be SORTed before the READ TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419709#M821347</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-08T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419710#M821348</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 to change your code like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify table itab2 index sy-tabix transporting f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419710#M821348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419711#M821349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this and revert if probs occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab1 by f1 f2 ascending.&lt;/P&gt;&lt;P&gt;sort itab2 by f1 f2 ascending.&lt;/P&gt;&lt;P&gt;data:wk_tabix type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab2 with key f1 = itab1-f1 f2 = itab2-f2 .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wk_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;itab2-f3 = itab2-f3 + itab1-f3. &lt;/P&gt;&lt;P&gt;modify table itab2 index wk_tabix transporting f3.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419711#M821349</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-08T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419712#M821350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Did u sort the iternal table1 by f1 f2 before reading it...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaveir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419712#M821350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419713#M821351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY USING THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;loop at itab2 where f1 = itab1-f1 and f2 = itab2-f2 .&lt;/P&gt;&lt;P&gt;itab2-f3 = itab2-f3 + itab1-f3. &lt;/P&gt;&lt;P&gt;modify table itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419713#M821351</guid>
      <dc:creator>former_member609120</dc:creator>
      <dc:date>2008-02-08T12:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: modify statement is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419714#M821352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lot of replies, lot of - to say it politically correct - not necessarily helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct answer: Must use INDEX addition for modify. Only in a loop you do not need an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In rare cases, F1 on modify may help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Internal tables: Changing Lines|http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the section &lt;STRONG&gt;Changing Table Lines Using the Index&lt;/STRONG&gt;. They say &lt;EM&gt;Without the INDEX addition, you can only use the above statement within a LOOP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 14:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement-is-not-working/m-p/3419714#M821352</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-02-08T14:27:16Z</dc:date>
    </item>
  </channel>
</rss>

