<?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 two I.TAB values into one TABLE using INSERT Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174213#M123943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi renjith..&lt;/P&gt;&lt;P&gt;     you are true both the ITABs have the same structure.. I also need the code to move both Itabs at one shot.. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Could you also write me the code of Moving the 2nd itab into 1st itab without Duplicating.. please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2006 12:57:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-10T12:57:54Z</dc:date>
    <item>
      <title>Inserting two I.TAB values into one TABLE using INSERT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174210#M123940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guru's!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to Insert the TABLE values of two Internal tables of Different Business Units...(Bu_zknvh &amp;amp; Au_Zknvh) into table Zknvh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently following is the CODE.. but I cant see both the Business Units data at once in the TABLE.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... Insert Zknvh from Bu_zknvh..................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZKNVH FROM TABLE BU_ZKNVH.&lt;/P&gt;&lt;P&gt;MESSAGE I002(ZM) WITH TEXT-006 SY-DBCNT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0 OR BU IS INITIAL.&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;MESSAGE E001(ZM) WITH TEXT-003.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this second internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into Zknvh values au_zknvh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it inserts only one ROW.... I want to append this table with all the values of au_zknvh but it shows me an ERROR MESSAGE:: ZKNVH is not an INTERNAL TABLE ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... Insert ZKNVH from Table Au_zknvh...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT zknvh From table au_zknvh.&lt;/P&gt;&lt;P&gt;MESSAGE i002(zm) WITH text-006 sy-dbcnt.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0 OR bu IS INITIAL.&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;MESSAGE e001(zm) WITH text-003.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me Thanx in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preethu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 12:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174210#M123940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting two I.TAB values into one TABLE using INSERT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174211#M123941</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 achieve it in following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of itab1 to itab.&lt;/P&gt;&lt;P&gt;append lines of itab2 to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 12:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174211#M123941</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-01-10T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting two I.TAB values into one TABLE using INSERT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174212#M123942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe both the internal tables are of the same same structure ...right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't you move the contents of both itabs to one and do the insert in one shot..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes, use the following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;move the 2nd itab data to the first&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;append lines of au_zknvh to bu_knvh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... Insert Zknvh from Bu_zknvh..................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZKNVH FROM TABLE BU_ZKNVH.&lt;/P&gt;&lt;P&gt;MESSAGE I002(ZM) WITH TEXT-006 SY-DBCNT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0 OR BU IS INITIAL.&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;MESSAGE E001(ZM) WITH TEXT-003.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 12:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174212#M123942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T12:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting two I.TAB values into one TABLE using INSERT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174213#M123943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi renjith..&lt;/P&gt;&lt;P&gt;     you are true both the ITABs have the same structure.. I also need the code to move both Itabs at one shot.. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Could you also write me the code of Moving the 2nd itab into 1st itab without Duplicating.. please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 12:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174213#M123943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting two I.TAB values into one TABLE using INSERT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174214#M123944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi preethu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. one shot is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. do u want to update database table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt; Loop at itab1.&lt;/P&gt;&lt;P&gt;   modify dbtab from itab1.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Loop at itab2.&lt;/P&gt;&lt;P&gt;   modify dbtab from itab2.&lt;/P&gt;&lt;P&gt;   endloop.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 13:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174214#M123944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T13:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting two I.TAB values into one TABLE using INSERT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174215#M123945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do this to remove duplicate entries after combining both itabs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of au_zknvh to bu_zknvh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort bu_zknvh.&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from bu_zknvh comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also while doing the insert add the "accepting duplicate keys " addition...check the F1 on Insert to see the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 13:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174215#M123945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T13:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting two I.TAB values into one TABLE using INSERT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174216#M123946</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 check your tables if you want to know if there are records with the same keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINE OF AU_ZKNVH TO BU_ZKNVH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZKNVH FROM BU_ZKNVH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the option ACCEPTING DUPLICATE KEYS if you don't know the dump for duplicate keys:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZKNVH FROM BU_ZKNVH ACCEPTING DUPLICATE KEYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 13:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-two-i-tab-values-into-one-table-using-insert-statement/m-p/1174216#M123946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T13:04:31Z</dc:date>
    </item>
  </channel>
</rss>

