Generic delta queue for CDHDR

Hi,
Has anyone used the function module to create a generic delta queue to work for extracting data from tables CDHDR and CDPOS when using the UDATE as the change date? I was able to find an alternate solution to extracting the data from these tables, but the solution is not approved, and it is suggested to use the function module and use a changed date to create the generic delta queue from RSO2.
Please advise.
Thank you

Hi Siggi,
Thank you for your insight on this. Well, UDATE is the changed date in the table CDHDR, and I am wondering if that should be used to provide to the RSO2 setup and set the interval to 1 day. I am extracting this UDATE to my extract structure.
Here is what I have in the FM and I am loading right now. I provided the date range to the 'Data Selection' tab for a complete year, which should only be 100K records but it is now extracting up to 17M records and still going. I am not sure if I should stop the load because it seems that it is loading the complete table CDHDR which is 80M.
Here is my code form my FM:
Fill range tables BW will only pass down simple selection criteria
of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
      LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'UDATE'.
        MOVE-CORRESPONDING L_S_SELECT TO L_R_UDATE.
        APPEND L_R_UDATE.
      ENDLOOP.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
      OPEN CURSOR WITH HOLD S_CURSOR FOR
     SELECT (S_S_IF-T_FIELDS) FROM CDHDR
                              WHERE UDATE  IN L_R_UDATE
                              AND   OBJECTCLAS ='ORDERBUCH'.
  SELECT OBJECTID CHANGENR USERNAME UDATE UTIME OBJECTCLAS TCODE
         FROM CDHDR
      WHERE UDATE  IN L_R_UDATE
      AND   OBJECTCLAS ='ORDERBUCH'.
I have the other SELECT commented out because I was getting an error dump on the R3 side saying "One of the field names in the SELECT clause was not recognized.", referring to statement "OPEN CURSOR WITH HOLD S_CURSOR FOR", so I am using the other SELECT that is not commented out.
I think I am following what you are referring to about the SELECT but not quite completely. What would you suggest to rewrite for the UDATE issue to process both the Full and Delta data?
Thank you

Similar Messages

  • Zero records in Delta Queue for Non-LO Datasource

    Hi,
    I have a process chain which loads data daily and last loaded on 5th of this month which is a delta load to DSO, and then I have triggered process chain on 10th  and now the process chain got successful but delta is returning zero records. I have gone through the Delta queue monitor, in that the data source is showing 0. what could be the reason for this? The data source is a Generic data source built on View and it is not a LO data source and delta is on timestamp.
    Thanks,
    Karan.

    Hi lokesh.
    Repair Full delta option it wont distub existing deltas.....
    repair full delta put full update indicate request as repair request.
    Via the Scheduler menu we can indicate a request with full-update mode as Repair Full Request. This request can be updated into every data target even if the data target already contains data from an initialization run or delta for this Data Source/ source system combination, and has overlapping selection criteria.

  • How to delete the data in update queue and delta queue for Queued delta?

    Dear BWers,
    How do i delete the delta queue and update queue data before i fill the setup tables for a extraction based on Queued delta. Please help.
    Thanks
    Raj

    Hi Raj,
    I think you need some ground work for the LO extraction same as others here. Please read the 3 blogs expliciltly created for LIS by Robert Negro.
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    As well, the OSS 380078 would clear your doubts reagrding the the BW QUEUE mainatinance. 
    Please let me know if these material has been suffecient enough.
    regarda,
    raj

  • Critical issue - delta queues for LIS empty after upgrade BW3.5

    The delta queue in R/3 for LIS sources (S260-261-262) remains empty,
    even after a successful init delta. Hence I cannot extract delta
    records.
    BW3.5
    PI2004.1
    Does the BW upgrade has an effet on the delta queue management in R/3 ?
    The previous configuration BW2.0B PI2004.1 did work fine in that
    respect.
    Laurent Querella
    BI Consultant ALTI

    Laurent,
    from OSS Note 534296 'LBW0: DataSource generation possible for SAP info str.' you can read:
    "(...)it is no longer possible to generate DataSources for info structures (transfer) Snn delivered by SAP (where nnn is between 001 and 500) in the BW interface for LIS info structures (TR: LBW0) in the OLTP. (...)The corresponding DataSources are delivered with the Business Content."
    I think this is the issue...
    However, are you saying that all infostructures are empty ?
    And from where your init is taking data ?
    After an init your delta tables have to be empty...did you empty all these tables before doing your upgrade ?
    Bye,
    Roberto

  • How to flush Delta queue for future SAP upgrades/support pack !

    Guys,
    I'm making documentation regards to " How to flush Delta Queues" in case SAP wanted to upgrade the system or any support pack. Please anyone let me know the effective way to flush out the delta queue in step by step methods. I really appreciate your help.

    1.  Run V3 for associated application(s), this will load any potential delta data to the delta queues.
    2.  Run the delta load for each datasource twice.  The second load will clear the delta repeat data so that there should not be any more data in the delta queues defined with the format of the current datasources.
    Does this help?

  • Generic delta extractor for BW

    Hello people!
    I'm developing an extractor for BW with Generic delta with the field AEDAT.
    In function module for the extractor, how can I identify this delta?
    I have to select the table ESSR with this field and I don't know how to identify this field.
    Thanks in advance!
    See ya!

    Define a range field like
    ranges : l_r_aedat for <tabname>-aedat.
    In your FM
    LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'AEDAT'.
    MOVE-CORRESPONDING L_S_SELECT TO L_R_AEDAT.
    append l_r_aedat.
    Then when you do selections :-
    Select * from <tabname> where
    and aedat in l_r_aedat.

  • No records in delta queue for 0CRM_SALES_ACT_1 & 0CRM_COMPLAINTS_I

    Hi all,
    we are linking a SAP CRM system 4.0 (patch level 10) with BW 7.0. We have initialized the delta extraction and everything was fine. Data was extracted and we can see the delta queue in RSA7 but no records are added. Users are creating new activities and nothing appears in the delta queue. We have other extractors delta capable which are working fine.
    The main difference is that these two extractors have been enhanced using the Badi CRM_BWA_MFLOW. When we check the extractor using transaction RSA6, records include the information we add in the Badi.
    We think the problem is in CRM because, it does not collect any delta data (queue is always empty). BW is capable to extract when initilitialization. We have tried the early delta initialization and the simple delta initialization.
    Any help will be appreciated.
    Thank you in advance.
    As an extension: we can't see the extractors in the qRFC monitor (trans. SMQ1). We can see there the ones which are working...

    Hi again,
    we finally solved the problem. The thing was that no BDOCS with type BUS_TRANS_MSG were not being generated when creating or modifying CRM activities. Theses datasources need the BDOCS to work. Transaction SMW3_00 had the flag "Do Not Send" set. We unmarked it and everything seems to work now.

  • Generic datasource with Delta queue

    Hi All,
    I 've created a generic datasource on prices tables A* and KONP. Next, I used HowTo document "create generic datasource that uses delta queue", finding the right BTE that could catch prices modification. Up to this point, everything works fine.
    I've extracted an Init delta to BW and now, on R/3, in RSA7, I can see a delta queue for my generic datasource.
    When I modify price conditions in VK12, BTE works fine and I can see the counter in RSA7 increasing. I also can see new entries in table TRFCQOUT with status READY. (either in SE16 or in SMQ1 )
    The problem is :
    - in RSA7, if I want to display the posted data, system returns an empty list (whereas the counter is different from 0)
    - when I run a delta InfoPackage, no data is sent to BW, but in table TRFCQOUT, status has been changed to READ for entries that previously had status READY (and old entries that had status READ due to a previous delta upload are deleted)
    Does anyone has any idea about the reason of the issue ?
    Thanks for any help
    AJ

    Sure, I can.
    The problem was in the specific coding that update the delta queue : not all the fields were updated and some of these fields were used as selection criteria in th delta infopackage...
    in RSA7, when you try to see the data in the queue, the system only shows you the records that match the selection criterias of your delta IP...so in our case, because of those empty fields, no records were selected...
    AJ

  • Query for generic delta

    i need to create a extractor x_attr to bring master data attributes from a table y.how can set
    the generic delta on this x_attr generic datasource.does a generic delta exists for attr
    datasource?

    Hi,
    For delta to work properly in case of generic extractor.the field on which you want to make delta should be present in
    the data source.
    We have three delta.
    1.Time stamp.
    2.Cal day.
    3Numeric pointer.
    So depending upon your requirement and volume of your data you can choose the delta method.
    Thanks,
    Saveen Kumar

  • How to set Generic Delta for Generic Datasource

    Hi to all,
    please can any one explain me the generic Delta option for Generic datasource
    after creating generic datasource, i need to set the generic delta .
    can any one explain me all generic delta option in simple language with example.
    Field Nm
    Time samp
    calend. Day
    Numeric Pointer
    Safety Interval Upper Limit
    Safety Interval Lower Limit
    New status for changed Records
    Additive Delta
    i shall be thankful to you for this.
    Regards
    Pavneet Rana

    this question has been answered a million times.
    search the forum.
    M.

  • DUMMY_BW (0FI_GL_04) delta queue not getting cleared

    Hi,
    We're using minute based extraction approach for 0FI_GL_04 and thereby have two delta queues for the 0FI_GL_4 extractor in the SAP ERP ECC system: One for the ‘DUMMY_BW’ and the other for the 'real' BI system. The delta queue for DUMMY_BW is not getting cleared automatically in production system and it keeps on adding more records in the queue which is in turn consuming memory in ARFCSDATA. Any thoughts on this would be really helpful.
    Regards,
    Karthik

    Hi Gurus,
    Please help me on how can I check that on what fields 0FI_GL_20 is pulling delta.
    I tried to find the MSG Type to check in BD52 for relevant field list, in ROOSGEN table. the entry for MSG type is blank there.
    Any help on this is appreciated.
    Thanks,
    Sourabh Deo

  • Number of records in Delta Queue in table level.

    Hi All,
    I want to know the number of records in Delta Queue for a particular database in Table level. Right now in Production, i dont have access to TCODE RSA7. I just trying to check the Table TRFCQOUT but i am unable to see the exact count of records specific to data source. Can you please provide any other table to see the data and the count of records in delta queue specific to each data source.
    Thanks.

    Hi Jalina,
    Check the follwing tables:
    -ARFCDATA
    -TRFCQOUT
    -ARFCSTATE
    In case you can't find what you need in the above tables. You can always ask a temporary access to RSA7 transcation to your basis team or ask them to give you the required information from RSA7 themseleves (of course provide to them a step by step procedure) .
    Hope it helps.
    Amine

  • XML/Web Service Load into Delta queue

    Hello,
    What is the mechanism to push an XML file into the BW delta queue for use by an XML/SOAP or Web service based datasource? There is no XI in the picture so the XI based how/to papers are not germane to this question. The HOWTO paper on XML load has a script for loading an XML file but it errors out on creation of the Activex object, plus it needs XML parser etc. Is there an SAP approved way of routinely loading XML files into the delta queue versus some test script?

    This can be done in BW.
    Try the links given below, also there is a How to document available from SAP on this.
    http://help.sap.com/saphelp_bw33/helpdata/en/9f/9b8f3c855f0454e10000000a11405a/content.htm
    http://www.sapteched.com/presentations/session.asp?sid=140
    Thanks.

  • Question about Note 886102 - Empty the delta queue of the connected SAP source systems

    Dear expert
    I'm doing the system refresh from ECC PRD to QAS using the hot backup of PRD
    Before i start the database restore i was told to do the following step since this ECC has connection with one BW system
    -----------------------Step -----------------------------
    2.17 SAP note 886102 scenario C3
    Empty the delta queue for all of the connected BW systems.
    Execute all delta info packages two times on BW side, to clean up the delta queue in the source system. This is needed, because BDLS cannot rename the still available LUW-s in the qRFC queue.
    ----------------------Step-----------------------
    But unfortunately i missed to execute this step
    And the Q11 is now retoreing the backup of the database
    My quesion
    1. what will be bad consequence due to not execute this step? any way to makeup this error?
    Best regards,

    Hi Kate,
    The probably issue which I could forsee is data getting wrongly updated into production if RFC connection from ECC to BW is not stopped.
    Solution here could be to disable or deletethe RFC connections between ECC and BW before starting the SAP system at database level.
    delete from sapr3.rfcdes where rfcdest = '<name>';
    Once the system is up and running you can recreate them if required.
    Also before starting SAP set the number of batch processes to 0 on the profile at OS level so that any released jobs don't start as soon as SAP is up.
    Once the SAP system is up execute BDLS and change the logical system name.
    Hope this helps.
    Regards,
    Deepak Kori

  • About Generic Delta!

    I create a Z-table and use RSO2 to create a datasource,and create the general delta by using the calendar day.but when I use the Delta function twice,the error message is like this "Error occurred in the data selection " "The data in the delta queue for DataSource ZZZZTA are inconsistent. The structure that was used to put the data in the queue, can no longer be
    reconstructed."
    Anybody has confront this problem?
    by the way,I found that the initial and delta will be duplicate,my data is this:
    bukrs belnr      bldat
    1000  1000000001 2005.07.25
    1000  1000000002 2005.07.26
    1000  1000000003 2005.07.27
    1000  1000000004 2005.07.28
    1000  1000000005 2005.07.28
    the initial on 2005.07.27,result is:
    1000  1000000001 2005.07.25
    1000  1000000002 2005.07.26
    1000  1000000003 2005.07.27
    then delta data is:
    1000  1000000003 2005.07.27
    so the initial and delta duplicated,right?

    Very helpful answer.
    But can you explain the difference among:
    Time Stamp,Calendar day,Numerical Pointer
    If I use Time Stamp,while Use BLDAT as field name above the radio button,can I do the Test the same day?You mean that there will be no data,but in my test,it's a ERROR,the error message is the one listed above.please look into it and doing some analysis.
    Message was edited by: Chunhui Zhu
    Message was edited by: Chunhui Zhu

Maybe you are looking for

  • How can I change my Illustrator CS5 Adobe ID and password

    Hi all! I am having problems to share my screen from Illustrator CS5 since I lost my password. Everytime I try to share my screen I am having the same message "An internal error occurred. Please try again." over and over. I have tried everything they

  • How do i edit a site created with iweb

    I created a site last year with iweb, but now when I try to open it, it only lets me create a new site.  I can see the thumbnail in my finder view, but cannot edit it. Help. Thanks in advance

  • HT1420 how can I deathorize a computer that has been destroyed?

    I had iTunes on a work computer that I had to turn in and it was completely wiped.  I only uninstalled iTunes and I did not deauthorize it.  How can I delete it without having the computer any more?

  • SAP -ISU-DEVICE MANAGEMENT-MM LINK MATERIAL

    Hi, Basically i am a MM Consultant,recently i have been assinged to IS-Utilities Project,i wanted to know the what are the things i have to know/study for the understanding of the ISU and MM and where i will get the material for IS-Utilities speciall

  • SCSM 2012 R2 AD connector sync issue

    Hi Guys, I have a very strange  issue with the AD connector and have been struggling with it for a couple of days now. Frankly I’m out of options and hope some here can help me out. Let me start by telling you briefly how our environment is setup. Do