<?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: CDPOS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921807#M382878</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;this is a huge table... use this FM to get the entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ or&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_HEADERS    Change document: Read change document header&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_POSITIONS  Change document: Read change document items..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by passing the same details u r pssing into the select query u ahve given..&lt;/P&gt;&lt;P&gt;it improve the performance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing here is u r nor passing primaary ke values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2007 13:54:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-14T13:54:56Z</dc:date>
    <item>
      <title>CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921806#M382877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post on this forum and I am new to ABAP so please be gentle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to extract a subset of data from CDPOS the cluster table. We have been doing this using Cognos sap connector but it takes over 6 hours. So I wrote a function module to extract from cluster table into new transparent table. There has been some performance improvement but not as much I would like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ABAP is pretty basic as similar to Oracle as that is my background. My code looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MANDANT OBJECTCLAS OBJECTID CHANGENR&lt;/P&gt;&lt;P&gt;                            TABNAME FNAME VALUE_NEW VALUE_OLD&lt;/P&gt;&lt;P&gt;       FROM CDPOS&lt;/P&gt;&lt;P&gt;       INTO TABLE it_ztbcdpos&lt;/P&gt;&lt;P&gt;       WHERE OBJECTCLAS = 'ORDER'&lt;/P&gt;&lt;P&gt;       AND   TABNAME = 'AFKO'&lt;/P&gt;&lt;P&gt;       AND   FNAME = 'GLTRP'&lt;/P&gt;&lt;P&gt;       AND   CHNGIND = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delete all records from transparent table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM ZTBCDPOS WHERE OBJECTCLAS IS NOT NULL.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;transfer internal table to transparant table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZTBCDPOS FROM TABLE it_ztbcdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything I can do optimise ? I have read on another thread about using CHANGEDOCUMENT_READ but I am not familiar with it. Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 12:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921806#M382877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T12:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921807#M382878</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;this is a huge table... use this FM to get the entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ or&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_HEADERS    Change document: Read change document header&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_POSITIONS  Change document: Read change document items..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by passing the same details u r pssing into the select query u ahve given..&lt;/P&gt;&lt;P&gt;it improve the performance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing here is u r nor passing primaary ke values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 13:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921807#M382878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921808#M382879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This mnay or may not work. But you can try first doing a SELECT against CDHDR instead of CDPOS using  OBJECTCLAS only into an internal table. Then use this internal table in a SELECT FOR ALL ENTRIES against CDPOS using the other criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921808#M382879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921809#M382880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried CHANGEDOCUMENT_READ and it appears to take longer in the dev client atleast. Admittedly it only has 438000 records compared to the millions in production. Can someone explain why it might be quicker than a single database select statement please before I consider trying in prod..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will look into trying to specify the full primary key values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 18:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921809#M382880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T18:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921810#M382881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashif,&lt;/P&gt;&lt;P&gt;do you really need to select all changed ever made to this table/field (AFKO/GLTRP) or you are interested in some date range only.&lt;/P&gt;&lt;P&gt;If you are interested in date range - select from SDHDR first using objectclas, udate.&lt;/P&gt;&lt;P&gt;We created new index for CDHDR using objectclas, udate, tcode to make some of our programs faster. You can create new idex for CDHDR as well which may significally improve the speed of your selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can select from CDPOS based on full key from CDHDR...it will be much faster than just select directly from CDPOS as this table is constantly growing and your select will take longer &amp;amp; longer and will fail eventually anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 20:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921810#M382881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T20:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921811#M382882</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;Thanx for you rsuggestions regarding CDHDR. Can you confirm that CDHDR is only appended to and records already in there do NOT get updated (changed). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 12:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921811#M382882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T12:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921812#M382883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asif!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it's correct:&lt;/P&gt;&lt;P&gt;all changes make only inserts in CDHDR (and CDPOS), only archiving makes deletes.&lt;/P&gt;&lt;P&gt;In rare cases just no CDHDR entry is written (similiar to: there is no change document at all - it has to be programmed explicitly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 13:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921812#M382883</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-02-15T13:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921813#M382884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siarhi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your idea of using CDHDR is a good one. Would you suggest also using FOR ALL ENTRIES too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 16:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921813#M382884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T16:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921814#M382885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, you can select all changes from CDHDR into internal table, then select form CDPOS for all entries in this internal table (do not forget to check that internal table is NOT empty before using for all entries).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 16:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921814#M382885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921815#M382886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my earlier resonse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 17:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921815#M382886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T17:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921816#M382887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Rob, you did suggest this approach earlier, however, I discounted it as our CDHDR table contains almost 9 million records, and I read somewhere that SELECT FOR ALL ENTRIES using a large dataset was not effecient. Using the date to drastically cut down the dataset makes this approach far more appealing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you implied this but as I am new to SAP I didnt get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 18:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921816#M382887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T18:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921817#M382888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just ran a partial test. I would stick with the way you originally wrote it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 18:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921817#M382888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T18:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: CDPOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921818#M382889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please elaborate. What do you mean by partial test and which approach should I stick to. Are you saying that using CDHDH and a date is not the way to go ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please supply test results and conclusions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 10:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/1921818#M382889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T10:58:01Z</dc:date>
    </item>
  </channel>
</rss>

