<?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: Activate table entries? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679155#M299429</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;1. to delete entire contents contents of a table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;TABLENAME&amp;gt; where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;(Give some condition like the key fields not equal to space).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To insert entire internal table data to a table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;TABLE&amp;gt;  FROM   &amp;lt;ITAB&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2006 11:58:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-09T11:58:07Z</dc:date>
    <item>
      <title>Activate table entries?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679152#M299426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my bw 3.5 i have two tables: ztest_new (internal) and /bic/pvcom1_u02. they are identical. if it occurs that some of their data records differ, i want the data from ztest_new to be transferred to /bic/pvcom1_u02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is part of the ABAP code to accomplish that:&lt;/P&gt;&lt;P&gt;  LOOP AT ztest_new.&lt;/P&gt;&lt;P&gt;    MOVE ztest_new-/bic/vcom1 TO /bic/pvcom1_u02-/bic/vcom1_u02.&lt;/P&gt;&lt;P&gt;    MOVE ztest_new-/bic/vcom2 TO /bic/pvcom1_u02-/bic/vcom2_u02.&lt;/P&gt;&lt;P&gt;    MODIFY /bic/pvcom1_u02.&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does work half way. after executing the program, the table /bic/pvcom1_u02 contains twice as many data records. to every record another one was added, with the identical key field (vcom1_u02).&lt;/P&gt;&lt;P&gt;though the new records (which are partly identical to the active ones and are partly updated due to changes in ztest_new) are not active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to activate the new records and throw the old ones out. i thought MOVE would carry out an update query. well maybe it does, but the activation of the updated data is missing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any solutions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 11:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679152#M299426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T11:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Activate table entries?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679153#M299427</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;if you are sure that you have all the records in your new table which you wanted to maintain in the old one...delete all the entries from old one and do a mass update..i mean insert from the internal table ztest_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sajan Joseph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 11:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679153#M299427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Activate table entries?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679154#M299428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah i could do that. what commands do i use to delete the data in the old table /bic/pvcom1_u02?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then, instead of MOVE ... TO ..., I use INSERT ... ? ok for that one, i'll look up the documentation...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 11:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679154#M299428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T11:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Activate table entries?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679155#M299429</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;1. to delete entire contents contents of a table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;TABLENAME&amp;gt; where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;(Give some condition like the key fields not equal to space).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To insert entire internal table data to a table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;TABLE&amp;gt;  FROM   &amp;lt;ITAB&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 11:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679155#M299429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T11:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Activate table entries?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679156#M299430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the advice.&lt;/P&gt;&lt;P&gt;why should i put in a where clause instead of just deleting everything? because something like "Where keyfield &amp;lt;&amp;gt; ' ' " would leave the blank initial record in the table. and that would lead to a non-matching number of rows in the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 13:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679156#M299430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Activate table entries?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679157#M299431</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;I understood that you want to load the Delta Data into the table /bic/pvcom1_u02.To do that fetch the entire data from /bic/pvcom1_u02 into an Internal Table I_/bic/pvcom1_u02.Compare it with the data in the Internal Table ztest_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ztest_new.&lt;/P&gt;&lt;P&gt; V_INDEX  = SY-TABIX.&lt;/P&gt;&lt;P&gt; READ TABLE I_/bic/pvcom1_u02 WITH KEY &amp;lt;SPECIFY THE KEY&amp;gt;&lt;/P&gt;&lt;P&gt; IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;   DELETE ztest_new INDEX V_INDEX.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the internal table ztest_new will contain only records which are not available in /bic/pvcom1_u02.Now u can update the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY /bic/pvcom1_u02 FROM TABLE ztest_new.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 15:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-table-entries/m-p/1679157#M299431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T15:39:23Z</dc:date>
    </item>
  </channel>
</rss>

