<?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: how to modify a data base table ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823666#M1470531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please hit F1 on MODIFY and UPDATE statements and check the documentation. That should give you a solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Apr 2010 09:25:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-22T09:25:35Z</dc:date>
    <item>
      <title>how to modify a data base table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823664#M1470529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    i am working on a list output where if user is editing a field and that field need to be updated in the data base. table is a z table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table has 5 fields .&lt;/P&gt;&lt;P&gt;mandt       key field &lt;/P&gt;&lt;P&gt;matnr       key field&lt;/P&gt;&lt;P&gt;werks      key field&lt;/P&gt;&lt;P&gt;charg       key field&lt;/P&gt;&lt;P&gt;lgpla         key field&lt;/P&gt;&lt;P&gt;usnam&lt;/P&gt;&lt;P&gt;edate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the list output , the user will change the values in the lgpla field and that field need to be changed in the data base table.&lt;/P&gt;&lt;P&gt;i have used the stmt : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify&amp;lt; table&amp;gt; from &amp;lt;internal table&amp;gt; , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but a new record is added in the data base instead of overwriting the existing one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the record can be seen modified in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kinldy let me know the method of updating or modifying the existing value in the data base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;vikram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 09:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823664#M1470529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T09:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify a data base table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823665#M1470530</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;Use the Below syntax and see whether table gets modified instead of added new rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY dbtab       FROM TABLE itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 09:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823665#M1470530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T09:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify a data base table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823666#M1470531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please hit F1 on MODIFY and UPDATE statements and check the documentation. That should give you a solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 09:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823666#M1470531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T09:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify a data base table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823667#M1470532</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 below code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY scarr_tab INDEX idx FROM scarr_wa &lt;/P&gt;&lt;P&gt;       TRANSPORTING currcode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or modify db from table itab transporting lgpla.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 09:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823667#M1470532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T09:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify a data base table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823668#M1470533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its not possible to change Primary Key contents in the database.&lt;/P&gt;&lt;P&gt;it  mention in documentation of MODIFY Statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

a line is searched for in the database table that has the same content 
in the primary key as the corresponding beginning part of the work area. 

If such a line is not found, 
a new line is inserted according to the same rules as for the INSERT statement. 

If such a line is found, 
this line is overwritten according to the same rules as for the UPDATE statement


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want insert the modified line first Delete from database,Then Use Modify Statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 10:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823668#M1470533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T10:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify a data base table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823669#M1470534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raghava ,&lt;/P&gt;&lt;P&gt;                    thanks for the update ..really helpful answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vikram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 12:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-a-data-base-table/m-p/6823669#M1470534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T12:03:48Z</dc:date>
    </item>
  </channel>
</rss>

