<?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: INSERT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671214#M1289596</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 use of "accepting duplicate entry" will just avoid the dump. but it wont insert the two rows with same primary keys. it will insert only one row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if u want the two rows any ways... just tweak the values a bit ..&lt;/P&gt;&lt;P&gt;these are the primary keys in NAST.&lt;/P&gt;&lt;P&gt;KAPPL&lt;/P&gt;&lt;P&gt;OBJKY&lt;/P&gt;&lt;P&gt;KSCHL&lt;/P&gt;&lt;P&gt;SPRAS&lt;/P&gt;&lt;P&gt;PARNR&lt;/P&gt;&lt;P&gt;PARVW&lt;/P&gt;&lt;P&gt;ERDAT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERUHR------&amp;gt;Time at which status record was created&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;just change this value of ERUHR and then insert .. no errors will occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please specify/clarify you requirements if this doesnt help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2009 08:46:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-25T08:46:22Z</dc:date>
    <item>
      <title>INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671208#M1289590</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;I am using the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert nast from table lt_insert&lt;/P&gt;&lt;P&gt;and internal table lt_insert contains two entries which are exactly same(same entries in both records)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then will it give a dump (as primary keys in both records in table lt_insert is same).so &lt;/P&gt;&lt;P&gt;in nast can we enter two records with exactly same primary keys.&lt;/P&gt;&lt;P&gt;can somebody try this scenario in the ssystem, i dont have access to create a prog in system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2009 16:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671208#M1289590</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2009-05-24T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671209#M1289591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;then will it give a dump (as primary keys in both records in table lt_insert is same).so 
in nast can we enter two records with exactly same primary keys.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Yes it will give dump&lt;/STRONG&gt; and will &lt;STRONG&gt;not&lt;/STRONG&gt; allow either or entry as you are trying to insert both &lt;/P&gt;&lt;P&gt;of them together. I have tried it my own in system and conformed the behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2009 18:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671209#M1289591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-24T18:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671210#M1289592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it will dump out because DB can only hold unique entries (the same key combination is not allowed).&lt;/P&gt;&lt;P&gt;If you want that to work, first you have to delete duplicating entries from internal table, before inserting that table to DB.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DELETE ADJENCT DUPLICATES FROM lt_insert.

INSERT nast FROM TABLE lt_insert.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2009 19:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671210#M1289592</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-24T19:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671211#M1289593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Primary key field will not allow duplicate records so&lt;/P&gt;&lt;P&gt;first try to delete the duplicate records and then try to insert into dbtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM ITAB COMPARING &amp;lt;FIELDNAME&amp;gt;&lt;/P&gt;&lt;P&gt;INSERT DBTAB FROM TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 04:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671211#M1289593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T04:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671212#M1289594</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 give this a try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;dbtable&amp;gt; FROM TABLE &amp;lt;itab&amp;gt; [ACCEPTING DUPLICATE KEYS] ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of ACCEPTING DUPLICATE KEYS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition ACCEPTING DUPLICATE KEYS is specified, all rows are inserted for which this is possible. The remaining rows are rejected and sy-subrc is set to 4. The system field sy-dbcnt is set to the number of lines that are inserted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dakshna Nagaratnam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 07:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671212#M1289594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T07:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671213#M1289595</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 should never insert entries directly into the SAP Standard tables...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671213#M1289595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671214#M1289596</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 use of "accepting duplicate entry" will just avoid the dump. but it wont insert the two rows with same primary keys. it will insert only one row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if u want the two rows any ways... just tweak the values a bit ..&lt;/P&gt;&lt;P&gt;these are the primary keys in NAST.&lt;/P&gt;&lt;P&gt;KAPPL&lt;/P&gt;&lt;P&gt;OBJKY&lt;/P&gt;&lt;P&gt;KSCHL&lt;/P&gt;&lt;P&gt;SPRAS&lt;/P&gt;&lt;P&gt;PARNR&lt;/P&gt;&lt;P&gt;PARVW&lt;/P&gt;&lt;P&gt;ERDAT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERUHR------&amp;gt;Time at which status record was created&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;just change this value of ERUHR and then insert .. no errors will occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please specify/clarify you requirements if this doesnt help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671214#M1289596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671215#M1289597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; can somebody try this scenario in the ssystem, i dont have access to create a prog in system.&lt;/P&gt;&lt;P&gt;So you want someone else to screw up their SAP system so that you know whether or not NAST will accept duplicate key fields, or whether the program will dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is because of people like you that SAP should block direct access to tables completely and provide only "fool proof" ways of accessing data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671215#M1289597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671216#M1289598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; It is because of people like you that SAP should block direct access to tables completely and provide only "fool proof" ways of accessing data...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's coming.  Imagine all those programs that are going to have to be re-written...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert/m-p/5671216#M1289598</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-05-25T09:40:36Z</dc:date>
    </item>
  </channel>
</rss>

