<?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: Open Sql Insert in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360025#M521979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Yes it is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2007 06:51:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-07T06:51:24Z</dc:date>
    <item>
      <title>Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360023#M521977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Using insert can we use direct to insert record in database table its possibe whats the syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360023#M521977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T06:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360024#M521978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;... { {VALUES wa} &lt;/P&gt;&lt;P&gt;    | {FROM wa|{TABLE itab [ACCEPTING DUPLICATE KEYS]}} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... {VALUES wa} | {FROM wa} ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab [ACCEPTING DUPLICATE KEYS] ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FROM and VALUES, you can specify a non-table-type data object wa. After FROM, you can also specify an internal table itab. The contents of the row(s) to be inserted are taken from these data objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360024#M521978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T06:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360025#M521979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Yes it is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360025#M521979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T06:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360026#M521980</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 Open SQL statement for inserting data into a database table is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INSERT INTO &amp;lt;target&amp;gt; &amp;lt;lines&amp;gt;.&amp;lt;/b&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example Program&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES SPFLI.

DATA WA TYPE SPFLI.

WA-CARRID = 'LH'.
WA-CITYFROM = 'WASHINGTON'.
...
INSERT INTO SPFLI VALUES WA.

WA-CARRID = 'UA'.
WA-CITYFROM = 'LONDON'.
...
INSERT SPFLI FROM WA.

SPFLI-CARRID = 'LH'.
SPFLI-CITYFROM = 'BERLIN'.
...
INSERT SPFLI.
&lt;/CODE&gt;&lt;/PRE&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>Thu, 07 Jun 2007 06:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360026#M521980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T06:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360027#M521981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can NOT use option accepting duplicate keys with wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option accepting duplicate keys only work with table itab NOT wa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT dbtab FROM TABLE itab. or &lt;/P&gt;&lt;P&gt;INSERT (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;... ACCEPTING DUPLICATE KEYS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to build internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;           include structure zcitorderout.&lt;/P&gt;&lt;P&gt;data: end of itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: wa_zcitorderout like zcitorderout.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;wa_zcitorderout-vbeln = nast-objky. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;itab = wa_zcitorderout.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;insert zcitorderout from table itab accepting duplicate keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360027#M521981</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-06-07T06:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360028#M521982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=3029349&amp;amp;messageID=1528170" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=3029349&amp;amp;messageID=1528170&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360028#M521982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T06:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360029#M521983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;Table name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not advisable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360029#M521983</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-06-07T06:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open Sql Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360030#M521984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. INSERT INTO  dbtab      VALUES wa. oder &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;INSERT INTO (dbtabname) VALUES wa. oder &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;INSERT  dbtab      FROM wa. oder &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;INSERT (dbtabname) FROM wa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. INSERT  dbtab      FROM TABLE itab. oder &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;INSERT (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. INSERT  dbtab. oder &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;INSERT *dbtab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Inserts new lines in a database table (see relational database). You can specify the name of the database table either in the program itself in the form dbtab or at runtime as the contents of the variable dbtabname. In both cases, the database table must be defined in the ABAP Dictionary. By default, data is only inserted in the current client. Data can only be inserted using a view if the view refers to a single table and was defined in the ABAP Dictionary with the maintenance status "No restriction". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT belongs to the Open SQL command set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs.See Open SQL and Unicode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;You cannot insert a line if a line with the same primary key already exists or if a UNIQUE index already has a line with identical key field values (with regard to this UNIQUE index). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When inserting lines using a view, all fields of the &lt;/P&gt;&lt;P&gt;database table that are not in the view are set to their initial value &lt;/P&gt;&lt;P&gt;(see TABLES) - if they were defined with NOT NULL in the ABAP Dictionary. Otherwise they are set to NULL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization checks (see The SAP Authorization Concept) are not supported by the INSERT statement. You must include these in the program yourself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines specified with the INSERT command are not finally added to the database table until after a database commit (see Logical Unit of Work (LUW)). Prior to this, you can cancel any changes to the database with a database rollback (see Programming Transactions). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the dialog system, you cannot rely on the locking mechanism used by the database system (see Database Locking) to synchronize simultaneous access to the same database by several users. Therefore, it is often necessary to use SAP's locking mechanism (see SAP Locking). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: please reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-insert/m-p/2360030#M521984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T06:56:59Z</dc:date>
    </item>
  </channel>
</rss>

