<?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: upload data into database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110021#M440830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mahi,&lt;/P&gt;&lt;P&gt;first use "Upload Function Module"&lt;/P&gt;&lt;P&gt;and then in loop use Modify Tab-name From Itab endloop.&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 12:32:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T12:32:12Z</dc:date>
    <item>
      <title>upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110009#M440818</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;How can i upload bulky data into a custom created database table using program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points assured&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;maahi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110009#M440818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110010#M440819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use INSERT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110010#M440819</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-04-16T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110011#M440820</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;U can use INSERT statement to insert data into database tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Open SQL statement for inserting data into a database table is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO &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 insert one or more lines into the database table &amp;lt;target&amp;gt;. You can only insert lines into 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;Specifying a Database Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To specify the database table statically, enter the following for &amp;lt;target&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO &amp;lt;dbtab&amp;gt; [CLIENT SPECIFIED] &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;dbtab&amp;gt; is the name of a database table defined in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To specify the database table dynamically, enter the following for &amp;lt;target&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO (&amp;lt;name&amp;gt;) [CLIENT SPECIFIED] &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the field &amp;lt;name&amp;gt; contains the name of a database table defined in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the CLIENT SPECIFIED addition to disable automatic client handling. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserting a Single Line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert a single line into a database table, use the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO &amp;lt;target&amp;gt; VALUES &amp;lt;wa&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of the work area &amp;lt;wa&amp;gt; are written to the database table &amp;lt;dbtab&amp;gt;. The work area &amp;lt;wa&amp;gt; must be a data object with at least the same length and alignment as the line structure of the database table. The data is placed in the database table according to the line structure of the table, and regardless of the structure of the work area. It is a good idea to define the work area with reference to the structure of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the database table does not already contain a line with the same primary key as specified in the work area, the operation is completed successfully and SY-SUBRC is set to 0. Otherwise, the line is not inserted, and SY-SUBRC is set to 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also insert single lines using the following shortened form of the INSERT statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;target&amp;gt; FROM &amp;lt;wa &amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using FROM instead of VALUE allows you to omit the INTO clause. Shorter still is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;dbtab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the contents of the table work area &amp;lt;dbtab&amp;gt; are inserted into the database table with the same name. You must declare this table work area using the TABLES statement. In this case, it is not possible to specify the name of the database table dynamically. Table work areas with the same name as the database table (necessary before Release 4.0) should no longer be used for the sake of clarity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserting Several Lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert several lines into a database table, use the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;target&amp;gt; FROM TABLE &amp;lt;itab&amp;gt; [ACCEPTING DUPLICATE KEYS] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This writes all lines of the internal table &amp;lt;itab&amp;gt; to the database table in one single operation. The same rules apply to the line type of &amp;lt;itab&amp;gt; as to the work area &amp;lt;wa&amp;gt; described above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the system is able to insert all of the lines from the internal table, SY-SUBRC is set to 0. If one or more lines cannot be inserted because the database already contains a line with the same primary key, a runtime error occurs. You can prevent the runtime error occurring by using the addition ACCEPTING DUPLICATE KEYS. In this case, the lines that would otherwise cause runtime errors are discarded, and SY-SUBRC is set to 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system field SY-DBCNT contains the number of lines inserted into the database table, regardless of the value in SY-SUBRC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you want to insert more than one line into a database table, it is more efficient to work with an internal table than to insert the lines one by one. &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;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110011#M440820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110012#M440821</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;u can use &amp;lt;b&amp;gt;insert statement&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont forget to use&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;modify &amp;lt;database table name &amp;gt; after inserting&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;hope all ur doubts will get clear.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110012#M440821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110013#M440822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 276 records in excel that needs to be uploaded. &lt;/P&gt;&lt;P&gt;can i upload using fm upload..and then use insert stmnt ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110013#M440822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110014#M440823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the insert statment to Upload the data into a Database table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/insert_d.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/insert_d.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm&lt;/A&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110014#M440823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110015#M440824</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 GUI_UPLOAD to upload the data into internal table and then insert the data into tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110015#M440824</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-04-16T11:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110016#M440825</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;thanks for the replies i will surely give the points..but i have one more requirement in the same..&lt;/P&gt;&lt;P&gt;as my data is in excel.. i need to format it also..&lt;/P&gt;&lt;P&gt;It says	Data in the Open, Pending and closing column should be left justified.&lt;/P&gt;&lt;P&gt;For example, Input data is &amp;#145;8.68&amp;#146;, then format should be &amp;#145;8.68   &amp;#145;.&lt;/P&gt;&lt;P&gt;                      Input data is &amp;#146;73.13&amp;#146;, then format should be &amp;#146;73.13 &amp;#145;.&lt;/P&gt;&lt;P&gt;                      Input data is &amp;#145;100.00&amp;#146;, then format should be &amp;#145;100.00&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how it can be done ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110016#M440825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110017#M440826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where u need the format?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You r going to reas the data from excel and insert into data base table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110017#M440826</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-04-16T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110018#M440827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when my records get appended in the db table it has to left justified&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110018#M440827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110019#M440828</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 recorde will be left justified or right it will depend on the field type that u have taken for that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have taken the field as numeric it will be automatically right justified.&lt;/P&gt;&lt;P&gt;it does not depend on the excel format, it depends on the format of internal table and on the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 12:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110019#M440828</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-04-16T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110020#M440829</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;You can upload the data into the database by using the function module "UPLOAD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can create a recording of the transaction(If you know it) and then use BDC to tranfer the data to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward, if it help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Prerna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 12:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110020#M440829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: upload data into database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110021#M440830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mahi,&lt;/P&gt;&lt;P&gt;first use "Upload Function Module"&lt;/P&gt;&lt;P&gt;and then in loop use Modify Tab-name From Itab endloop.&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 12:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-into-database-table/m-p/2110021#M440830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T12:32:12Z</dc:date>
    </item>
  </channel>
</rss>

