<?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 Database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268718#M149808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MODIFY statement changes existing lines and inserts lines which do not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sflight-carrid = &amp;#145;MN&amp;#146;.&lt;/P&gt;&lt;P&gt;Sflight-connid = &amp;#145;454&amp;#146;.&lt;/P&gt;&lt;P&gt;UPDATE SFLIGHT where CARRID = &amp;#145;LH&amp;#146;.&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;TABLES SFLIGHT.&lt;/P&gt;&lt;P&gt;UPDATE SFLIGHT SET PRICE = 1100&lt;/P&gt;&lt;P&gt;			WHERE CARRID = &amp;#145;LH&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here price of sflight will get updated with new price 1100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2006 08:55:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-10T08:55:39Z</dc:date>
    <item>
      <title>Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268711#M149801</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;Can anyone tell me the ways to modify a database table directly in coding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And which one is the best way in terms of perfomance.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268711#M149801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268712#M149802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi subhash,&lt;/P&gt;&lt;P&gt;MODIFY statement is used in codes for for modifying the db tables..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;MODIFY target FROM source. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;example:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;tables:zashtable.&lt;/P&gt;&lt;P&gt;data:itab like zashtable occurs 0 with header line.&lt;/P&gt;&lt;P&gt;itab-idno = 37.&lt;/P&gt;&lt;P&gt;itab-name = 'ramv'.&lt;/P&gt;&lt;P&gt;modify zashtable from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ashok Kumar Prithiviraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268712#M149802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268713#M149803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhash, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY dbtab - target &lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... {dbtab|(dbtab_syntax)} [CLIENT SPECIFIED] &lt;/P&gt;&lt;P&gt;                           [CONNECTION {con|(con_syntax)}] ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatives: &lt;/P&gt;&lt;P&gt;1. ... dbtab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... (dbtab_syntax) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... CONNECTION {con|(con_syntax)} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;The entries in target determine, statically or dynamically, which database table or which view is accessed, and control client handling. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative 1 &lt;/P&gt;&lt;P&gt;... dbtab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;For dbtab, a database table defined in the ABAP Dictionary or a view defined in the ABAP Dictionary can be specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only views that refer to a single database table, and whose maintenance status in the ABAP Dictionary permits change access can be specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative 2 &lt;/P&gt;&lt;P&gt;... (dbtab_syntax) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;Instead of static specification, a bracketed data object dbtab_syntax can be specified, which must contain the name of the database table or the view when the statement is executed. A character-type data object can be specified for the data object dbtab_syntax. The syntax in dbtab_syntax, as in the AAP Editor, is not case-sensitive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;Before release 6.10, it was only possible to specify a flat character-type data object for dbtab_syntax, which had to contain the name of the database table or the view in capital letters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;This addition deactivates the automatic client handling of Open SQL. If the addition CLIENT SPECIFIED is used, the client identifier specified in source is taken into account. Without the addition CLIENT SPECIFIED, the ABAP runtime environment does not transfer the client identifier specified in source to the database system, but transfers the identifier of the current client instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;As of release 6.10, the client identifer specified in source remains unchanged during automatic client handling. Before release 6.10, it was overwritten with the current client identifier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... CONNECTION {con|(con_syntax)} &lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This addition is for internal use only. &lt;/P&gt;&lt;P&gt;It cannot be used in application programs &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The Open SQL command is not executed on the standard database but on the specified secondary database connection . The database connection can be specified statically with con or dynamically as the content of con_syntax, where the field con_syntax must belong to the type c or string. The database connection must be specified with a name that is in column CON_NAME in table DBCON. &lt;/P&gt;&lt;P&gt;The addition CONNECTION must be specified immediately after the name of the database table or after the addition CLIENT SPECIFIED. &lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If the Open SQL command is to be possible on a secondary database connection, the table definitions in the connection must be the same as those on the standard database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY dbtab - source &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... FROM { {wa} | {TABLE itab} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatives: &lt;/P&gt;&lt;P&gt;1. ... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;A wa data object that is not table-type or an itab internal table can be specified after FROM. On the one hand the content of the data objects determines whether the line(s) are inserted or changed, and on the other hand, which values are inserted or used for changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative 1 &lt;/P&gt;&lt;P&gt;... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;When a wa work area that is not table-type is specified, which meets the requirements for use in Open SQL statements, 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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If such a line is not found, a new line is inserted according to the same rules as for the INSERT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If such a line is found, this line is overwritten according to the same rules as for the UPDATE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the change would lead to a double entry in a unique secondary index, then it is not executed and sy-subrc is set to 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The wa work area should always be declared with reference to the database table or the view in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the the database table or view is specified statically, then you the specification of the work area using FROM wa can be ommitted outside of classes if a dbtab table work area is declared for the corresponding database table or for the view using the TABLES statement. The system enhances the MODIFY statement implicitly with the FROM dbtab addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create or change a message in database table T100. If there is no message with the number 100 in the MYMSGCLASS message class in English, it will be created. Otherwise only the text is changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA message_wa TYPE t100. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message_wa-sprsl = 'EN'. &lt;/P&gt;&lt;P&gt;message_wa-arbgb = 'MYMSGCLASS'. &lt;/P&gt;&lt;P&gt;message_wa-msgnr =  '100'. &lt;/P&gt;&lt;P&gt;message_wa-text =  'Some new message ...'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY t100 FROM message_wa. &lt;/P&gt;&lt;P&gt;Alternative 2 &lt;/P&gt;&lt;P&gt;... FROM TABLE itab &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If an itab internal table is specified, the system processes all lines in the internal table according to the rules for the wa work area. The line type of the internal table has to meet the requirements for use in Open SQL statements. &lt;/P&gt;&lt;P&gt;If the change to a line in the internal table would lead to a double entry in a unique secondary index, the corresponding line is not inserted and sy-subrc is set to 4. If the internal table is empty, sy-subrc is set to 0. The sy-dbcnt system field is always set to the number of lines that were actually processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would suggest you not to modify the SAP Standard tables directly, rather use a Standard FM to modify the tables....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268713#M149803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268714#M149804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are different ways to modify a table.&lt;/P&gt;&lt;P&gt;Take a look at transaction abapterm in combination with the keywords: modify, insert, delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you´ll find different examples depending on whether you want to change one record or many records in your database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268714#M149804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268715#M149805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi subhash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. are u talking about the database table&lt;/P&gt;&lt;P&gt;   structure or records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if u are talking about structure,&lt;/P&gt;&lt;P&gt;   then its not recommended to do thru abap coding.&lt;/P&gt;&lt;P&gt;  ( i don't know if any FM is provided for that)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. use se11, se14 to do such things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Since these are one times changes,&lt;/P&gt;&lt;P&gt;   performance don't matter.&lt;/P&gt;&lt;P&gt;  (in both cases, it will be same only)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268715#M149805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268716#M149806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to modify your database table structure,&lt;/P&gt;&lt;P&gt;you must use Native SQL statements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALTER TABLE :tabl ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268716#M149806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268717#M149807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subash,&lt;/P&gt;&lt;P&gt; Hope the best method would ne to populate into an ITAB and use..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; MODIFY &amp;lt;table&amp;gt; from TABLE itab.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268717#M149807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268718#M149808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MODIFY statement changes existing lines and inserts lines which do not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sflight-carrid = &amp;#145;MN&amp;#146;.&lt;/P&gt;&lt;P&gt;Sflight-connid = &amp;#145;454&amp;#146;.&lt;/P&gt;&lt;P&gt;UPDATE SFLIGHT where CARRID = &amp;#145;LH&amp;#146;.&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;TABLES SFLIGHT.&lt;/P&gt;&lt;P&gt;UPDATE SFLIGHT SET PRICE = 1100&lt;/P&gt;&lt;P&gt;			WHERE CARRID = &amp;#145;LH&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here price of sflight will get updated with new price 1100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268718#M149808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268719#M149809</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;THE FOLLOWING LINK GIVES THE DIFFERENT METHODS TO MODIFY A DATABASE TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://64.233.179.104/search?q=cache:-YkpCM_BNVMJ:www.geocities.com/SiliconValley/Campus/6345/modify_d.htm&lt;EM&gt;MODIFY&lt;/EM&gt;TABLE&lt;EM&gt;IN&lt;/EM&gt;ABAP&amp;amp;hl=en&amp;amp;gl=in&amp;amp;ct=clnk&amp;amp;cd=7"&amp;gt;TABLE  MODIFICATION&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;ANOOP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268719#M149809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268720#M149810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit and all..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am talking specifically of records of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know about the MODIFY commmand but can you tell me the most effective way of modifying the database table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do it without using any internal tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268720#M149810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268721#M149811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Subash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use MODIFY &amp;lt;b&amp;gt;&amp;lt;TARGET Table&amp;gt;&amp;lt;/b&amp;gt; from &amp;lt;b&amp;gt;&amp;lt;SOURCE Table&amp;gt;&amp;lt;/b&amp;gt; here both source and target tables are internal tables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Santosh P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 08:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268721#M149811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268722#M149812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi subash ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; u need to modify the database table , since it is  modify &lt;/P&gt;&lt;P&gt;1. do u want to change a particular data for a criteria in the db?&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2. do u want to insert some data ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cause modify can do both the instances .&lt;/P&gt;&lt;P&gt;IF THE HIT FAILS FOR MODIFY THEN A RECORD WILL BE INSERTED into the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the record is there for a particular criteria and u want to change something &lt;/P&gt;&lt;P&gt;then select the particular list and modify the change onto ur db table ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT F1 F2 F3 F4 &lt;/P&gt;&lt;P&gt;WHERE COND1 &lt;/P&gt;&lt;P&gt;AND COND2&lt;/P&gt;&lt;P&gt;AND COND3 ETC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;MODIFY TABLE XXXX USING ITAB OR WA_ITAB.  &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;OR LOOP AT ITAB .&lt;/P&gt;&lt;P&gt;   MODIFY TABLE XXXX USING ITAB.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding performance it will depend on the number of records that u want to modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 09:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268722#M149812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T09:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268723#M149813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFY DBTAB/ (DBTAB) FROM WA/ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(DBTAB) -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;represents dbtab at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 09:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268723#M149813</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-03-10T09:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268724#M149814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Using Modify statement in database table is a costly statement. If the entry is not present in the table , then insertion of the record otherwise updation of the particular record will be made.&lt;/P&gt;&lt;P&gt;  Instead , use insert or update statement should be use&lt;/P&gt;&lt;P&gt;depending upon the logic you needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M.Saravanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 11:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268724#M149814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T11:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268725#M149815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I make a loop..in a table like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT GT_LIST_2 into list_2.&lt;/P&gt;&lt;P&gt;   .....&lt;/P&gt;&lt;P&gt;   ......&lt;/P&gt;&lt;P&gt;   MODIFY gt_LIST_2 FROM LIST_2.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The definition of a table I made like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  BEGIN OF LIST_2 OCCURS 0,&lt;/P&gt;&lt;P&gt;        EBELN          LIKE  EKBE-EBELN,&lt;/P&gt;&lt;P&gt;          EBELP          LIKE  EKBE-EBELP,&lt;/P&gt;&lt;P&gt;          GJAHR          LIKE  EKBE-GJAHR,&lt;/P&gt;&lt;P&gt;          BELNR          LIKE  EKBE-BELNR,&lt;/P&gt;&lt;P&gt;          BEWTP          LIKE  EKBE-BEWTP,&lt;/P&gt;&lt;P&gt;          BUDAT          LIKE  EKBE-BUDAT,&lt;/P&gt;&lt;P&gt;          MENGE          LIKE  EKBE-MENGE,&lt;/P&gt;&lt;P&gt;          WRBTR          LIKE  EKBE-WRBTR,&lt;/P&gt;&lt;P&gt;          WAERS          LIKE  EKBE-WAERS,&lt;/P&gt;&lt;P&gt;          WERKS          LIKE  EKBE-WERKS,  &lt;/P&gt;&lt;P&gt;          SHKZG          LIKE  EKBE-SHKZG,  &lt;/P&gt;&lt;P&gt;          DMBTR          LIKE  EKBE-DMBTR,  &lt;/P&gt;&lt;P&gt;       END OF LIST_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gt_list_2 LIKE SORTED TABLE&lt;/P&gt;&lt;P&gt;      OF list_2&lt;/P&gt;&lt;P&gt;      WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But... When the program arrive to MODIFY has a mistake... I don´t know exactly how I can modify the sorted table, can anybody tell me how I can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 17:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1268725#M149815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T17:40:28Z</dc:date>
    </item>
  </channel>
</rss>

