<?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: Inserting data into ZTABLE created in data dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346661#M1231307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT dbtab FROM TABLE itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts all lines of the internal table itab in a single operation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the command has been executed, the system field SYDBCNT contains the number of inserted lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0 after the call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2009 11:17:17 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-03-17T11:17:17Z</dc:date>
    <item>
      <title>Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346653#M1231299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've created ztable in data dictionary via se11 called zzcalc.&lt;/P&gt;&lt;P&gt;I am able to insert only one record using code, which you could see below.&lt;/P&gt;&lt;P&gt;When I try to insert second record sy-subrc = 4.&lt;/P&gt;&lt;P&gt;Why ? How can I insert more than one record ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  zzcalc-zzmeins = rv45a-zzmeins.&lt;/P&gt;&lt;P&gt;  zzcalc-zzfield1 = rv45a-zzfield1.&lt;/P&gt;&lt;P&gt;  zzcalc-zzfield2 = rv45a-zzfield2.&lt;/P&gt;&lt;P&gt;  zzcalc-zzfield3 = rv45a-zzfield3.&lt;/P&gt;&lt;P&gt;  zzcalc-ZZQTYAUM = rv45a-ZZQTYAUM.&lt;/P&gt;&lt;P&gt;  insert zzcalc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Stefan Kolev on Mar 17, 2009 11:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346653#M1231299</guid>
      <dc:creator>stefan_kolev4</dc:creator>
      <dc:date>2009-03-17T10:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346654#M1231300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u may b inserting a duplicate record where the key already exists... check it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346654#M1231300</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-03-17T10:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346655#M1231301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.&lt;/P&gt;&lt;P&gt;Ist paste ur code &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use * append zztable* not insert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: tahir naqqash on Mar 17, 2009 3:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346655#M1231301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T10:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346656#M1231302</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 MODIFY statement, as it performs both operations as INSERT and UPDATE&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346656#M1231302</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-03-17T10:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346657#M1231303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will not allow to enter values for a particular set of primary keys if a value already exists.&lt;/P&gt;&lt;P&gt;it will simply overwrite with new value.&lt;/P&gt;&lt;P&gt;plz check that u are not inserting values for the same set of primary keys which already has a value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346657#M1231303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T10:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346658#M1231304</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; and use * append zztable* not insert&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a database table, NOT an internal table.  And even if it was, your answer would still be incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346658#M1231304</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-03-17T10:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346659#M1231305</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;There is nothing wrong in your code&lt;/P&gt;&lt;P&gt;1.If you want to insert the data using INSERT statement then make sure you are &lt;/P&gt;&lt;P&gt;not enetring the duplicate records&lt;/P&gt;&lt;P&gt;2.Better to use the MODIFY statement that checks if the record is already presetn in the tbale it&lt;/P&gt;&lt;P&gt;simply update the record, if record not prersent then it will insert the new into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might help you.&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346659#M1231305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346660#M1231306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have field MANDT which I set to be 'Key' and 'Initial values'. This is my primary key.&lt;/P&gt;&lt;P&gt;Is this correct or I have to change ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346660#M1231306</guid>
      <dc:creator>stefan_kolev4</dc:creator>
      <dc:date>2009-03-17T11:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346661#M1231307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT dbtab FROM TABLE itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts all lines of the internal table itab in a single operation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the command has been executed, the system field SYDBCNT contains the number of inserted lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0 after the call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346661#M1231307</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-03-17T11:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346662#M1231308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;link:[http://members.tripod.com/sap_abap/insert_d.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346662#M1231308</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-03-17T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346663#M1231309</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;If Mandt is same for all records,how can u distinguish records.&lt;/P&gt;&lt;P&gt;So,better declare one field as primary key,then mandt and the field(primary key) together will be unique to identify record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case ,u can insert any number of records,by changing primary key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346663#M1231309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T11:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346664#M1231310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu need not to fill in MANDT fields value...its value will be filled automatically but rest all the field values you need to supply.&lt;/P&gt;&lt;P&gt;And I am sure MANDT is not only the key field in the table (if its value is constant in the table),if it is so then please make some other field along with the MANDT filed as key fields or every time you need to insert new value for this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pooja Gupta on Mar 17, 2009 12:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346664#M1231310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T11:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346665#M1231311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;May be entering same key alues .&lt;/P&gt;&lt;P&gt;so try modify or check roeply thee is no othe reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346665#M1231311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into ZTABLE created in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346666#M1231312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We solved the problem.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 07:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-data-into-ztable-created-in-data-dictionary/m-p/5346666#M1231312</guid>
      <dc:creator>stefan_kolev4</dc:creator>
      <dc:date>2009-03-18T07:19:31Z</dc:date>
    </item>
  </channel>
</rss>

