<?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: acces CDPOS optimize in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029446#M1349095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello yassine82,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CDHDR / CDPOS are designed to get all the changes for a given object (for example, all the changes for one equipment). That is how they are used in standard transactions, and they are fast when used correctly.&lt;/P&gt;&lt;P&gt;They are not designed to get all the objects that were changed in a given period (for example, all equipments changed today).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to know all objects that were changed (for example, because you have an interface that sends all changes in equipments) I suggest you use change pointers instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some transactions you'll need:&lt;/P&gt;&lt;P&gt;WE81 to create a new message type;&lt;/P&gt;&lt;P&gt;BD52 to configure which changes are relevant for you (and therefore create a change pointer);&lt;/P&gt;&lt;P&gt;BD50 to activate the message type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that everytime a change is made (and recorded in CDHDR / CDPOS) then a pointer is created in tables BDCP / BDCPS. You can then read these tables, do what you have to do, and mark the pointer as processed (BDCPS-PROCESS). These change pointers should be regularly cleaned with transcation BD22 / report RBDCPCLR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Rui Dantas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2009 15:03:46 GMT</pubDate>
    <dc:creator>Rui_Dantas</dc:creator>
    <dc:date>2009-07-31T15:03:46Z</dc:date>
    <item>
      <title>acces CDPOS optimize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029443#M1349092</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;i use this code but it takes a lot of time  to acces to CDPOS&lt;/P&gt;&lt;P&gt;Any suggestion to optimize&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************&lt;/P&gt;&lt;P&gt;REPORT  ZCDHDR                                  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters p_date like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data wt_cdhdr like cdhdr occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data wt_cdpos like cdpos occurs 0 with header line.&lt;/P&gt;&lt;P&gt;Data wl_show type tplnr.&lt;/P&gt;&lt;P&gt;DATA :  w_deb  like sy-uzeit,  w_fin  like sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_deb = sy-uzeit.&lt;/P&gt;&lt;P&gt;refresh :  wt_cdhdr , wt_cdpos.&lt;/P&gt;&lt;P&gt;select * from cdhdr into table wt_cdhdr&lt;/P&gt;&lt;P&gt;where objectclas = 'IFLO'&lt;/P&gt;&lt;P&gt;and udate = p_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from cdhdr  APPENDING CORRESPONDING FIELDS OF  TABLE wt_cdhdr&lt;/P&gt;&lt;P&gt;where objectclas = 'EQUI'&lt;/P&gt;&lt;P&gt;and udate = p_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not wt_cdhdr[] is initial.&lt;/P&gt;&lt;P&gt;select * from cdpos into table wt_cdpos   " take a lot of time&lt;/P&gt;&lt;P&gt;for all entries in wt_cdhdr&lt;/P&gt;&lt;P&gt;where changenr = wt_cdhdr-changenr.&lt;/P&gt;&lt;P&gt;*and ( tabname = 'IFLOT' OR tabname = 'IFLOTX'  OR tabname = 'ILOA' )&lt;/P&gt;&lt;P&gt;*AND ( fname = 'TPLMA' OR fname = 'PLTXT' OR   fname = 'GROES' OR  fname = 'EQART' OR fname = 'TPLNR' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fin = sy-uzeit - w_deb.&lt;/P&gt;&lt;P&gt;write /: w_fin.&lt;/P&gt;&lt;P&gt;loop at wt_cdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       clear wl_show.&lt;/P&gt;&lt;P&gt;       CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            input  = wt_cdpos-objectid&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            output = wl_show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; read table wt_cdhdr with key objectid =  wt_cdpos-objectid.&lt;/P&gt;&lt;P&gt; write: / wl_show , wt_cdhdr-username .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 14:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029443#M1349092</guid>
      <dc:creator>adil</dc:creator>
      <dc:date>2009-07-31T14:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: acces CDPOS optimize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029444#M1349093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i forget :  AND condition is without comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from cdpos into table wt_cdpos " take a lot of time&lt;/P&gt;&lt;P&gt;for all entries in wt_cdhdr&lt;/P&gt;&lt;P&gt;where changenr = wt_cdhdr-changenr.&lt;/P&gt;&lt;P&gt;and ( tabname = 'IFLOT' OR tabname = 'IFLOTX' OR tabname = 'ILOA' )&lt;/P&gt;&lt;P&gt;AND ( fname = 'TPLMA' OR fname = 'PLTXT' OR fname = 'GROES' OR fname = 'EQART' OR fname = 'TPLNR' ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 14:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029444#M1349093</guid>
      <dc:creator>adil</dc:creator>
      <dc:date>2009-07-31T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: acces CDPOS optimize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029445#M1349094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(oops, wrong user)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rui Pedro Dantas on Jul 31, 2009 5:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 14:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029445#M1349094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: acces CDPOS optimize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029446#M1349095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello yassine82,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CDHDR / CDPOS are designed to get all the changes for a given object (for example, all the changes for one equipment). That is how they are used in standard transactions, and they are fast when used correctly.&lt;/P&gt;&lt;P&gt;They are not designed to get all the objects that were changed in a given period (for example, all equipments changed today).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to know all objects that were changed (for example, because you have an interface that sends all changes in equipments) I suggest you use change pointers instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some transactions you'll need:&lt;/P&gt;&lt;P&gt;WE81 to create a new message type;&lt;/P&gt;&lt;P&gt;BD52 to configure which changes are relevant for you (and therefore create a change pointer);&lt;/P&gt;&lt;P&gt;BD50 to activate the message type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that everytime a change is made (and recorded in CDHDR / CDPOS) then a pointer is created in tables BDCP / BDCPS. You can then read these tables, do what you have to do, and mark the pointer as processed (BDCPS-PROCESS). These change pointers should be regularly cleaned with transcation BD22 / report RBDCPCLR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Rui Dantas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 15:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029446#M1349095</guid>
      <dc:creator>Rui_Dantas</dc:creator>
      <dc:date>2009-07-31T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: acces CDPOS optimize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029447#M1349096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, your select on CDHDR should already take some time, or at least it will once your system fills up with EUQI and IFLO type change documents over time.&lt;/P&gt;&lt;P&gt;Anyway, if you include OBJECTCLAS and OBJECTID as found in CDHDR in the WHERE-conditions of your select on CDPOS, you should see a significant improvement by using the primary key.&lt;/P&gt;&lt;P&gt;As a minor improvement, declare your internal tables for CDHDR/CDPOS only with those fields you actually need for further processing.&lt;/P&gt;&lt;P&gt;Also make sure that the READ TABLE statement uses a binary search, whether explicit or implicit.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 15:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029447#M1349096</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-07-31T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: acces CDPOS optimize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029448#M1349097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now is more fast&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not wt_cdhdr[] is initial.&lt;/P&gt;&lt;P&gt;    select OBJECTCLAS OBJECTID CHANGENR TABNAME TABKEY FNAME  CHNGIND  VALUE_NEW VALUE_OLD  from cdpos into table wt_cdpos&lt;/P&gt;&lt;P&gt;    for all entries in wt_cdhdr&lt;/P&gt;&lt;P&gt;    where objectclas = wt_cdhdr-objectclas&lt;/P&gt;&lt;P&gt;    and objectid = wt_cdhdr-objectid&lt;/P&gt;&lt;P&gt;    and changenr = wt_cdhdr-changenr&lt;/P&gt;&lt;P&gt;    and ( tabname = 'IFLOT' OR tabname = 'IFLOTX'  OR tabname = 'ILOA' )&lt;/P&gt;&lt;P&gt;    and ( fname = 'TPLMA' OR fname = 'PLTXT' OR   fname = 'GROES' OR  fname = 'EQART' OR fname = 'TPLNR' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 16:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/acces-cdpos-optimize/m-p/6029448#M1349097</guid>
      <dc:creator>adil</dc:creator>
      <dc:date>2009-07-31T16:32:45Z</dc:date>
    </item>
  </channel>
</rss>

