<?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: moving data from internal table to data base table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215347#M766651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;loop at (ur internal table).&lt;/P&gt;&lt;P&gt;insert into (ur DDIC table) values (ur internal table).&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful, award point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2008 10:07:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-07T10:07:11Z</dc:date>
    <item>
      <title>moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215342#M766646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi any body pls explain me how to transfer data from internal table to data base table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 19:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215342#M766646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-23T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215343#M766647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the abap help on modify, insert and update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 19:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215343#M766647</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-23T19:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215344#M766648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaladhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose u have a DB table named ZTEST. having 3 fields ID NAME AGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u declare TABLES: ZTEST in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTEST-ID = '01',&lt;/P&gt;&lt;P&gt;ZTEST-NAME = 'XXXX'.&lt;/P&gt;&lt;P&gt;ZTEST-AGE = '20'&lt;/P&gt;&lt;P&gt;INSERT ZTEST.  " it'll insert this row into the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u declare a structure in DATA section. u can do it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZTEST VALUES RECORD. "record has the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have an int tab , do it:&lt;/P&gt;&lt;P&gt;INSERT ZTEST FROM T_RECORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also see UPDATE, DELETE, MODIFY statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ANUPAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 04:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215344#M766648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T04:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215345#M766649</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;modifying datbase table useing internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advises before updating this datbase table plz lock that table to avoid incosistency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the logic for modifying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the database table as per new dunning procedure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY fkkvkp FROM TABLE lt_fkkvkp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and finally unlock the table&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;*To lock table for further operations&lt;/P&gt;&lt;P&gt;constants: lc_tabname TYPE rstable-tabname VALUE 'FKKVKP' . "FKKVKP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = lc_tabname&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;foreign_lock = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To fetch all the contract accounts for customers of the segment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Households/SME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM fetch_contract_accounts using lc_tabname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. " IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*wrote the logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the database table as per new dunning procedure from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY fkkvkp FROM TABLE lt_fkkvkp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*unlock the tbale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = uc_tabname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 09:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215345#M766649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T09:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215346#M766650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use insert database from table internaltable..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 10:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215346#M766650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T10:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215347#M766651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;loop at (ur internal table).&lt;/P&gt;&lt;P&gt;insert into (ur DDIC table) values (ur internal table).&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful, award point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 10:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215347#M766651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T10:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215348#M766652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Update DT from IT.&lt;/P&gt;&lt;P&gt;using insert inside the loop land up with the less performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before updating the databse table make sure that u r using Lock objects for the same in order to lock the table for avoiding incosistencies.&lt;/P&gt;&lt;P&gt;create lock object in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function ENQUE_&amp;lt;LOCKOBJECT&amp;gt;.&lt;/P&gt;&lt;P&gt;update DT from IT.&lt;/P&gt;&lt;P&gt;Call function DEQUE_&amp;lt;LOCKOBJECT&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 11:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215348#M766652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T11:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215349#M766653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;tables zemploy.&lt;/P&gt;&lt;P&gt;loopat itab into wa.&lt;/P&gt;&lt;P&gt;insert into zemploy from wa .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;this will insert data from internal table to database table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 04:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215349#M766653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T04:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215350#M766654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When storing data in internal tables, you often use one internal table for each database you read. Each one contains some or all columns of the relevant database table. It is up to you whether you create an internal table with a flat structure for each database table or if you create, for example, internal tables with nested structures. If you have several tables, each one with a flat structure, you have to work with redundant key fields to link the tables. If, on the other hand, you use nested internal tables, you can store the data from the database tables hierarchically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saving and processing very large amounts of data in internal tables has disadvantages. If you divide up the data into different internal tables, processing it can be very runtime-intensive, since the tables have to be processed individually. Furthermore, it requires a lot of storage space, since internal tables are not stored in compressed form. The system may even need to store the dataset outside of its working memory. This means that processing it takes even longer.&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;vasavi.&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 07:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215350#M766654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T07:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215351#M766655</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;Database tables and open SQL Add a single record to a database table insert into values Inserting all lines from an internal table into a database table: insert from table Delete all records Select * from zmellemtab. delete zmellemtab. endselect. Deleting records using records from an internal table delete employees 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;with regards,&lt;/P&gt;&lt;P&gt;sowjanya.gosala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 11:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215351#M766655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T11:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215352#M766656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaladhar Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several ways of populating data base tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY - Will update the table, if the data already exists, if NOT inserts new rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE - Will update the table, errors out if the data is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of MODIFY the sy-subrc is always 0 so you would't know whether the data is actually updated or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT - Inserting Data in Database Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants:&lt;/P&gt;&lt;P&gt;1. INSERT INTO dbtab CLIENT SPECIFIED VALUES wa.&lt;/P&gt;&lt;P&gt;INSERT INTO (dbtabname) CLIENT SPECIFIED VALUES wa.&lt;/P&gt;&lt;P&gt;2. INSERT dbtab CLIENT SPECIFIED FROM TABLE itab. oder&lt;/P&gt;&lt;P&gt;INSERT (dbtabname) CLIENT SPECIFIED FROM TABLE itab.&lt;/P&gt;&lt;P&gt;3. INSERT dbtab CLIENT SPECIFIED. oder&lt;/P&gt;&lt;P&gt;INSERT *dbtab CLIENT SPECIFIED. oder&lt;/P&gt;&lt;P&gt;INSERT (dbtabname) CLIENT SPECIFIED ... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect Adds new records to a database table (see relational&lt;/P&gt;&lt;P&gt;database). You can specify the name of the database table&lt;/P&gt;&lt;P&gt;either directly in the program in the form dbtab or at runtime&lt;/P&gt;&lt;P&gt;as the contents of the field dbtabname. In either case, the&lt;/P&gt;&lt;P&gt;database table must be declared in the ABAP Dictionary. You&lt;/P&gt;&lt;P&gt;can only insert data using a view if the view refers to a&lt;/P&gt;&lt;P&gt;single table and has the maintenance status "No restriction"&lt;/P&gt;&lt;P&gt;in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, data is only inserted in the current client.&lt;/P&gt;&lt;P&gt;However, if you use the CLIENT SPECIFIED addition, you can&lt;/P&gt;&lt;P&gt;switch off the automatic client handling. This enables you to&lt;/P&gt;&lt;P&gt;enter data for any client in a cross-client table, not just in&lt;/P&gt;&lt;P&gt;the client in which you are logged on. In this case, the&lt;/P&gt;&lt;P&gt;client field is treated like a normal field to which you can&lt;/P&gt;&lt;P&gt;assign a value in the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY - Change a database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. MODIFY dbtab. or&lt;/P&gt;&lt;P&gt;MODIFY *dbtab. or&lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) ... ..&lt;/P&gt;&lt;P&gt;2. MODIFY dbtab FROM TABLE itab. or&lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt;3. MODIFY dbtab VERSION vers. or&lt;/P&gt;&lt;P&gt;MODIFY *dbtab VERSION vers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect Inserts new lines or updates existing lines in a database&lt;/P&gt;&lt;P&gt;table (s. relational database). If a line with the specified&lt;/P&gt;&lt;P&gt;primary key already exists, an UPDATE is executed. Otherwise,&lt;/P&gt;&lt;P&gt;an INSERT is performed. You can specify the name of the&lt;/P&gt;&lt;P&gt;database table either in the program itself in the form MODIFY&lt;/P&gt;&lt;P&gt;dbtab ... or at runtime as the contents of the field dbtabname&lt;/P&gt;&lt;P&gt;in the form MODIFY (dbtabname) ... . In both cases, the&lt;/P&gt;&lt;P&gt;database table must be defined in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;Normally, records are inserted or updated only in the current&lt;/P&gt;&lt;P&gt;client. Data can only be inserted or updated using a view, if&lt;/P&gt;&lt;P&gt;the view refers to a single table and was created in the ABAP&lt;/P&gt;&lt;P&gt;Dictionary with the maintenance status "No restriction".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY belongs to the Open SQL command set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the statement has been executed, the system field&lt;/P&gt;&lt;P&gt;SY-DBCNT contains the number of edited lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Insert' will add a new record or a new row into the database table.&lt;/P&gt;&lt;P&gt;'Update' will modify a record in the DB table.&lt;/P&gt;&lt;P&gt;'Modify' it is a combination of both insert and update...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check these links&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;&lt;/P&gt;&lt;P&gt;UPDATE-&amp;gt;&lt;/P&gt;&lt;P&gt;Bundling using Function Modules for Updates&lt;/P&gt;&lt;P&gt;If you call a function module using the statement CALL FUNCTION ... IN UPDATE TASK, the function module is flagged for execution using a special update work process. This means that you can write the Open SQL statements for the database changes in the function module instead of in your program, and call the function module at the point in the program where you would otherwise have included the statements. When you call a function module using the IN UPDATE TASKaddition, it and its interface parameters are stored as a log entry in a special database table called VBLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module is executed using an update work process when the program reaches the COMMIT WORKstatement. After the COMMIT WORKstatement, the dialog work process is free to receive further user input. The update work process is responsible for the update part of the SAP LUW. The statement COMMIT WORKcloses the SAP LUW for the dialog part of the program and starts the update. The SAP LUW is complete once the update process has committed or rolled back all of the database changes. Bundling using function modules is called Update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY-&amp;gt;&lt;/P&gt;&lt;P&gt;To modify the lines of a completed list from within the program, use the MODIFY LINE statement. There are two ways to specify the line you want to modify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Explicitly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY LINE n OF CURRENT PAGE&lt;/P&gt;&lt;P&gt;modifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the line most recently read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY CURRENT LINE modifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement modifies the line most recently read by means of line selection (F2) or read by the READ LINE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the ones described above, the modificationsaddition contains several other possibilities to modify the line. For more information on this and on the individual additions of the MODIFY LINEstatement , refer to the keyword documentation.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba4b235c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba4b235c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if helpful,&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;srikanth tulasi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 14:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215352#M766656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T14:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215353#M766657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &lt;/P&gt;&lt;P&gt;internal table(itab_dep) into workarea.&lt;/P&gt;&lt;P&gt;modify originaltable(zdep) from workarea(wa_dep).&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;sowjanya.b.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 05:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215353#M766657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T05:26:12Z</dc:date>
    </item>
  </channel>
</rss>

