<?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 values into DDIC table from program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038774#M1808745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nabheet and Sivasamy..&lt;/P&gt;&lt;P&gt;Thank you for your immediate solution..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 11:47:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-27T11:47:41Z</dc:date>
    <item>
      <title>Inserting values into DDIC table from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038770#M1808741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to insert the values into Data Dictionary table from a program.&lt;/P&gt;&lt;P&gt;It is allowing only first row.&lt;/P&gt;&lt;P&gt;When I try to add the second row it is not taking the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the statement as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;ZANX1 &amp;lt;table name&amp;gt; VALUES W_ANNXR &amp;lt;work area&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038770#M1808741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-27T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting values into DDIC table from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038771#M1808742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is key field ZANX1 if key field is same in both iteration it will not allow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038771#M1808742</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-01-27T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting values into DDIC table from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038772#M1808743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use MODIFY&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;&amp;lt;table name&amp;gt; FROM &amp;lt;work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If records are already exist, it will change otherwise it will create new record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arivazhagan S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038772#M1808743</guid>
      <dc:creator>arivazhagan_sivasamy</dc:creator>
      <dc:date>2014-01-27T11:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting values into DDIC table from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038773#M1808744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems that the data base table contains the same records with the key fields.&lt;/P&gt;&lt;P&gt;So, before using insert statement , first sort your internal table with the key fields.Then delete duplicate records from internal table by using DELETE ADJACENT DUPLICATES FROM &amp;lt;itab COMPARING &amp;lt;keyfields by which sorted itab&amp;gt;.&lt;/P&gt;&lt;P&gt;NOTE: If your database table ZANSX1 has two key fields then while sorting the internal table specify all those key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then finally use INSERT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternate Suggestion:&lt;/P&gt;&lt;P&gt;As you are inserting data one by one at a time into database table from work area by looping your internal table into work area, you can insert all rows in a single INSERT statement by the below statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZANX1 FROM TABLE &amp;lt;your internal table name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you doubt&amp;nbsp; about the duplicates entries, then you can add ACCEPTING DUPLICATE KEYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also go with MODIFY statement as it will work as a dual.&lt;/P&gt;&lt;P&gt;If the records exist with same keys then it will modify the rows otherwise will insert new row into the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038773#M1808744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-27T11:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting values into DDIC table from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038774#M1808745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nabheet and Sivasamy..&lt;/P&gt;&lt;P&gt;Thank you for your immediate solution..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038774#M1808745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-27T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting values into DDIC table from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038775#M1808746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your second record has the same key field values it will fail due to primary key duplication. Using MODIFY will allow you to insert the record with same primary key but will edit the first record with second in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-into-ddic-table-from-program/m-p/10038775#M1808746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-27T11:58:59Z</dc:date>
    </item>
  </channel>
</rss>

