<?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 a table not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829718#M662218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yogesh the data in the temp table is the data which i am mofifying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how to match it with the data which i have modified? so that is is modified&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 02:22:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-05T02:22:36Z</dc:date>
    <item>
      <title>modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829713#M662213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am using the below statement to modiby a ztable created by me but it is not working&lt;/P&gt;&lt;P&gt;the record is not modified but ADDED TO THE TABLE PLS SUGGEST ON THE PROBLEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not t_zcust_em_modify[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at t_zcust_em_modify.&lt;/P&gt;&lt;P&gt;      modify zcustemail   from table t_zcust_em_modify.&lt;/P&gt;&lt;P&gt;      message s001 with 'Data saved'(004).&lt;/P&gt;&lt;P&gt;      refresh:t_zcust_em_modify.&lt;/P&gt;&lt;P&gt;**nv modify problem&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     clear:t_zcust_em_modify.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;**Nv&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;NISHANT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 10:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829713#M662213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T10:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829714#M662214</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;if not t_zcust_em_modify[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with this alone&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;modify zcustemail from table t_zcust_em_modify.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;no need of this&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;loop at t_zcust_em_modify.&lt;/P&gt;&lt;P&gt;modify zcustemail from table t_zcust_em_modify.&lt;/P&gt;&lt;P&gt;message s001 with 'Data saved'(004).&lt;/P&gt;&lt;P&gt;refresh:t_zcust_em_modify.&lt;/P&gt;&lt;P&gt;**nv modify problem&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;clear:t_zcust_em_modify.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;**Nv&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 10:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829714#M662214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T10:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829715#M662215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;               The data what you enter in the table might not be there so it has got inserted.so check the key fields and get the data from the table and modify the data by means of your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 10:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829715#M662215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T10:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829716#M662216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi t hat data is obviously there which i am modifying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829716#M662216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829717#M662217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you are removing the refresh and loop what if there are several records?&lt;/P&gt;&lt;P&gt;in the internal table&lt;/P&gt;&lt;P&gt;in that case loop is necessary?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829717#M662217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829718#M662218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yogesh the data in the temp table is the data which i am mofifying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how to match it with the data which i have modified? so that is is modified&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 02:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829718#M662218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T02:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829719#M662219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need to do a loop for modifying the database. There would be a need for loop only if you modify any values of the internal table before you update the Z table.&lt;/P&gt;&lt;P&gt;Because the data base table is being modified from the table &amp;lt;internal table itself&amp;gt; which contains all the records which is specified in the modify syntax itself&lt;/P&gt;&lt;P&gt;More over you have been using refresh in your code which will delete all the entries of the internal table.  Just for your info you should always use a clear statement inside a loop to clear the internal table headerline, but not refresh. See the ABAP Syntax fro more information by pressing F1 on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so just write ur modify statement like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not t_zcust_em_modify[] is initial.
  modify zcustemail from table t_zcust_em_modify.
    if sy-subrc = 0.
      message s001 with 'Data saved'(004).
    endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 03:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829719#M662219</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-05T03:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829720#M662220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gopi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this statement is not working as the modified record is not in the&lt;/P&gt;&lt;P&gt;t_zcust_em_modify[] but it is inserting in the database table rather then modifying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggsest&lt;/P&gt;&lt;P&gt;as this recored is modified one obviously it does not exists in the database table&lt;/P&gt;&lt;P&gt;i want to use modify using index&lt;/P&gt;&lt;P&gt;how to use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 03:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829720#M662220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T03:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829721#M662221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;u r modifying the database table from the work area (header line in ur case) only. thats why u wrote modify statement inside the loop. then why r u using modify statement with TABLE keyword. take the keyword 'table' off. n then try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 11:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-table-not-working/m-p/2829721#M662221</guid>
      <dc:creator>asik_shameem</dc:creator>
      <dc:date>2007-10-05T11:10:23Z</dc:date>
    </item>
  </channel>
</rss>

