<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482635#M559588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Database table:&amp;lt;/b&amp;gt;Here the modify statement will modify a particular record if it is existing in the database, otherwise it will create a new entry in the database.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Internal table   :&amp;lt;/b&amp;gt; Here the modify statement is used to modify an existing record in the internal table. This will not create new entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull.&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 11:34:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-03T11:34:12Z</dc:date>
    <item>
      <title>Modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482630#M559583</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;What is the use of modify statement.? When do I use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482630#M559583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482631#M559584</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;MODIFY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert lines into a database table regardless of whether there is already a line in the table with the same primary key, use the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;target&amp;gt; &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the database table contains no line with the same primary key as the line to be inserted, MODIFY works like INSERT, that is, the line is added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the database already contains a line with the same primary key as the line to be inserted, MODIFY works like UPDATE, that is, the line is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For performance reasons, you should use MODIFY only if you cannot distinguish between these two options in your ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Open SQL statement for changing data in a database table is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;target&amp;gt; &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It allows you to change one or more lines in the database table &amp;lt;target&amp;gt;. You can only change lines in an ABAP Dictionary view if it only contains fields from one table, and its maintenance status is defined as Read and change. You may specify the database table &amp;lt;target&amp;gt; either statically or dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinodh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482631#M559584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482632#M559585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify statment will work both insert and Update..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify ztable from table int_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are changing non primary key,then it works like update..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are creating new record then it works like insert command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link also&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=3613725&amp;amp;messageID=3479280" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=3613725&amp;amp;messageID=3479280&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482632#M559585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482633#M559586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFY for Database Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts or changes lines in database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;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;MODIFY for any Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the content of lines in internal tables of any type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;...] &lt;/P&gt;&lt;P&gt;                              [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;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;&lt;P&gt;MODIFY for Index Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the content of lines in index tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;...] &lt;/P&gt;&lt;P&gt;                        [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;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;&lt;P&gt;MODIFY for Lists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes a list line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY LINE &amp;lt;n&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [OF CURRENT PAGE|OF PAGE &amp;lt;p&amp;gt;]&lt;/P&gt;&lt;P&gt;      |CURRENT LINE&lt;/P&gt;&lt;P&gt;      LINE FORMAT &amp;lt;option1&amp;gt; &amp;lt;option2&amp;gt;... &lt;/P&gt;&lt;P&gt;      FIELD VALUE &amp;lt;f1&amp;gt; [FROM &amp;lt;g1&amp;gt;] &amp;lt;f2&amp;gt; [FROM &amp;lt;g2&amp;gt;]... &lt;/P&gt;&lt;P&gt;      FIELD FORMAT &amp;lt;f1&amp;gt; &amp;lt;options1&amp;gt; &amp;lt;f2&amp;gt; &amp;lt;options2&amp;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;Regards,&lt;/P&gt;&lt;P&gt;Pavan P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482633#M559586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482634#M559587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; Please see the example&lt;/P&gt;&lt;P&gt;MODIFY - Changing an Internal Table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants: &lt;/P&gt;&lt;P&gt;1. MODIFY itab [FROM wa] [INDEX idx] [TRANSPORTING f1 ... fn]. &lt;/P&gt;&lt;P&gt;2. MODIFY TABLE itab [FROM wa] [TRANSPORTING f1 ... fn]. &lt;/P&gt;&lt;P&gt;3. MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See Short forms not allowed with line o operations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1 &lt;/P&gt;&lt;P&gt;MODIFY itab [FROM wa] [INDEX idx] [TRANSPORTING f1 ... fn]. &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;Changes a single entry in the internal table itab, specifying the key explicitly or implicitly. You can only use this variant with index table (standard or sorted tables). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify "FROM wa", the new values are taken from the work area wa. If you do not specify FROM, the header line of itab is used as the work area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use "INDEX idx" to specify the table index of the line you want to change. This may be omitted within a LOOP at an internal table. In this case, the current table line is changed. &lt;/P&gt;&lt;P&gt;The INDEX specification can come before the FROM addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify " TRANSPORTING f1 ... fn", only components f1, f2, ... of the work area are copied into the table. You can also specify components dynamically in the form (name). The actual component name is then taken from the field name at runtime. If name contains an invalid component name, the system triggers a runtime error. You may not use a key field as a TRANSPORTING field with HASHED or SORTED tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you specify the insertion point with INDEX idx: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;The entry was changed. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;Index position too large. No entry was changed, since the table contains less than idx entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not specify an insertion point, return code is set to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;MODIFY TABLE itab [FROM wa] [TRANSPORTING f1 ... fn]. &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;Generic change to a single entry in the internal table itab with key. Unlike variant 1, you can use this variant for any table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use "FROM wa" and "TRANSPORTING f1 ... fn" in the same way as in variant 1. If you do not use the TRANSPORTING addition, only the non-key fields are transported. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key of the entry to be changed is taken from the work area. The procedure depends on the table type: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STANDARD TABLE: &lt;/P&gt;&lt;P&gt;The table is searched sequentially by its table key. The first entry found is changed. The runtime required for the search is in linear relation to the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTED TABLE: &lt;/P&gt;&lt;P&gt;The table is searched by its table key using a binary search. In tables with a non-unique key ( NON-UNIQUE) only the first entry in the list of duplicates is changed. The runtime required for the search is in logarithmic relation to the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HASHED TABLE: &lt;/P&gt;&lt;P&gt;The entry is found and changed by table key using the internal hash administration. The runtime required is essentially constant, since, unlike in standard or hashed tables, it does not depend on the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;The first entry with the specified key was changed. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;There was no entry with the specified key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond. &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;Changes several entries in the internal table itab. You can use this variant for any table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use " FROM wa" and "TRANSPORTING f1 ... fn" as in variant 1. If the table has the type SORTED TABLE or HASHED TABLE, the TRANSPORTING list may not contain key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In comparisons within the logical expression cond, the first operand must always be a subfield of the line structure of itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;At least one entry was changed. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;None of the entries was changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;When you use the WHERE condition with a STANDARD or HASHED table, a full table scan is always required. &lt;/P&gt;&lt;P&gt;If you are working with a SORTED TABLE, the partial sequential processing can be optimized so that only the entries that actually satisfy the WHERE condition are processed. This optimization requires that the WHERE condition be specified in the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE k1 = v1 AND k2 = v2 AND ... AND kn = vn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the components k1, ..., kn are in the same sequence as the beginning of the table key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All operands in the WHERE condition that are not components of the internal table itab can be replaced with a functional method call. Functional methods are methods in ABAP Objects that can have any number of IMPORTING parameters and a single RETURNING parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the line type of the internal table contains object reference variables as components, or the entire line type is a reference variable, you can use the attributes of the object to which the reference refers as values in the WHERE condition (see Attributes of objects as the key of internal tables). &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;Reset a status flag universally &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF TAB OCCURS 500, &lt;/P&gt;&lt;P&gt;        FLAG     TYPE C, &lt;/P&gt;&lt;P&gt;        COMP(20) TYPE C, &lt;/P&gt;&lt;P&gt;      END OF TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR TAB-FLAG. &lt;/P&gt;&lt;P&gt;MODIFY TAB TRANSPORTING FLAG WHERE FLAG = 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;General: &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 you use the TRANSPORTING addition together with an explicitly-specified work area, the work area must be compatible with the line type of the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The counter for table entries begins at 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A unique or summarized dataset built up using an internal table and COLLECT can be modified while you are constructing it using the "MODIFY ... TRANSPORTING ..." statement, as long as the components selected with TRANSPORTING are not contained in the key of the internal table. This method does not cause significant performance impairment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;Performance: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can save unnecessary assignments if you use statements that use a specific work area with internal tables with header 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;The runtime required to change an entry in a table 100 bytes wide using an index is around 5 msn (standardized microseconds). &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 you only want to change individual fields within a complex line structure, it is quicker to use " TRANSPORTING f1 f2 ..." than the simple MODIFY statement. This applies particularly if you can use the TRANSPORTING addition to eliminate tabular components. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;Runtime errors: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB_ILLEGAL_COMPONENT: Illegal dynamic specification for a line component. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB_ILLEGAL_TRANSP_COMP: Illegal key components in the TRANSPORTING list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related &lt;/P&gt;&lt;P&gt;APPEND itab, INSERT itab, COLLECT itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional help &lt;/P&gt;&lt;P&gt;Changing Table Lines &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing Table Lines Using the Index &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;P&gt;Reward if it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482634#M559587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482635#M559588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Database table:&amp;lt;/b&amp;gt;Here the modify statement will modify a particular record if it is existing in the database, otherwise it will create a new entry in the database.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Internal table   :&amp;lt;/b&amp;gt; Here the modify statement is used to modify an existing record in the internal table. This will not create new entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull.&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482635#M559588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482636#M559589</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;it will work as both insert and update depending on condition. when a record is found then modify works like update and saves that changes to internal table with new record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it didnt found any record then it appends a record at the end of internal table with given data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with reagrds,&lt;/P&gt;&lt;P&gt;suresh.a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 11:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-statement/m-p/2482636#M559589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T11:36:46Z</dc:date>
    </item>
  </channel>
</rss>

