Delta between ODS with Data field as key field

Hello,
I have a problem with a data load between two ODS. Below is the scenario
ODS 1 has delivery data with delivery Doc and Delivery Item as key field and Plant,Material, Delivery Qty, etc..  as Data filed
ODS 2 need to create as a aggregare at the plant, material level. So for ODS 2, Key Field is Plant, Material and the Data filed is Delivery Qty (additive), etc...
When I load the Full load it works correctly, But when I bring the data as a delta it is updating the delivery Qty incorrectly and some of the data fileds are comming as blank also eventhough the source ODS (ODS1) has data.
Can we use data filed from ODS1 as a Key filed for ODS2 ?
Is that causing the
Regards,
Biju

Hi,
Looks like someone deleted/ added/ updated some entries in the change log table of ODS1.
Did you check the "Change log" of ODS1 and compare with the delta request of ODS2?
Isn't change log of ODS1 showing the entries you got as part of delta in ODS2?
Another recommendation would be to compare the "Change log" of ODS1 with the "Active" table of ODS1 and see if they are showing the same value of the key figures.
- Ashish

Similar Messages

  • Data fileds and key fields in DSO

    Can any one explain what exactly difference between data fileds and keyfields in DSO or the concept of these two
    And how to know which fields should be assigned to data filed or key field
    with regards,
    musai

    Hi Musai,
    Let me take an ex. Say you have 3 fields A, B & C. Let us assume 'A' is keyfield, 'B' & 'C' are Datafields.
    Lets assume the PSA data is :
    A             B              C
    001      Musai        89.9  
    002      Musai        89.9
    003      Pavan       75.00
    So when you load the data to DSO, since all the keyfield values are unique (001,002,003), all the records will get loaded to DSO.
    But If PSA data is :
    A             B              C
    001      Musai        89.9  
    001      Musai        85.7
    003      Pavan       75.00
    Only 2nd & 3rd rows will be loaded to DSO since 1st & 2nd row have same value for keyfield (001). So 1st row gets overwritten(or summation depending on what is the setting in Transformation rule for C considering C is Keyfigure) by 2nd when you load to DSO. 3rd row doesn't have any problem. So that will go as it is.
    Also please note that we cannot use Keyfigures as keyfield.
    Hope it is clear now!
    Regards,
    Pavan

  • Data fields and key fields

    Hi,
    Data fields and key fields are same as Characteristcs and key figures? Or they are diffrerent?
    Thanks,
    Radha

    HI
    Key Fields =  Acts as Primary Key for The ODS like Primary of Tables in R3.
    Data fields =  Apart from Key fields We consider rest as data fields.
    Ususally we use Characteristic info Objects and Dates in Key Fields and Key figures in Data fields.
    It's decisive factor for overwriting property of ODS or DOS.
    Hope this helps.
    Regards,
    Rangzz
    Edited by: Ranganath Kodiugane on Feb 7, 2009 12:14 PM

  • Difference between initialization with data transfer?

    Dear Ones,
    What is the Difference between initialization with data transfer,initialization without data transfer and early delta initialization?
    Please explain me in senario basis..
    Thanks
    Shiva

    Hello Shivananda,
    See oss note 505700 :
    The early delta initialization is used to admit document postings
                in the OLTP system as early as possible during the initialization
                procedure.
    Regards,
    Fred

  • Changing Non key field to Key field in a custom table

    Hello Abap gurus:
    I have a requirement in which i need to change a non key field in my custom table(Z TABLE) to key field.
    For example; i have field sequence as
    field 1  key field
    field 2 key field
    field 3 key field
    field 4 non-key field
    field 5 non-key field
    field 6 non-key field
    field 7 non-key field.
    i want to change field 7 as key field.
    Can i do perform operation??
    when i am tryingto perform bove operation it is taking long time to get the table activated.
    Could any one please help me in getting this resolved.
    regards,
    Sravanthi.

    Use DB Utility (se14) to perform alter table or conversion. The latter is used when atemps to perform first operation fails. Which one is used, really depends on system and current DB table state (i.e. if has any content and what is being adjusted).
    The way Max suggested is similar to [conversion process|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1b8446011d189700000e8322d00/content.htm] which system takes care of itself.
    Refer [Adjusting Database Structures|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1ab446011d189700000e8322d00/content.htm] and already given link to conversion.
    Please also consider potential errors while doing conversion . This can lead to data loss, so you should think of some backup to prevent that.
    Regards
    Marcin

  • Additive delta causing problem with data being displayed in the query.

    Hi,
    I am having a delta mechanism to load data from ODS to cube. The delta runs everynight and when we run the report for yesterday the report works fine but if some of the line items changed during the course of the day today the delta is picking them up today in the nightly job. When I run the report tomorrow for yesterday and today the report is displying incorrect data because the cube thinks there are more than one line items.
    for eg: Yesterday let's say
    Salesdocument customfield docitems Keyfeild
    ODS : 1001                 1                1            1
    IC:      1001                 1                1           1
    When I run the query today and "customefield" is in the report it is displaying value of "1" which is correct.
    Today let's say the key feild has been changed to 2. Since ODS is overwritable
    ODS : 1001        1     1  2
    but in IC, I see
    IC:      1001         1    1  1
              1001         1    1   -1
              1001         1    1   2
    and when I report on "Customefield" it displays the value of "3" instead of "1". Is there any way to solve this issue.
    Very urgent.
    Thanks,
    PV

    PV,
    Normally when the delta is loaded from an ods to cube, it will have two records, one will be the reverse image of the existing record and a new image of the record. So, in your case (I think you are referring to change in key figure and not the key field)
    After the change, this is how it should look like --
    ODS : 1001 1 1 2
    IC: 1001 1 1 1 (original record)
    1001 -1 -1 -1 (reverse image of the old record)
    1001 1 1 2 (new image)
    So when you run the report, you will get the following correct result.
    1001 1 1 2
    If this is not happening, then there must be something else. You can check all this by loading the delta to psa and looking for the particular record etc.
    -Saket

  • EEWB: Insert New Table with more than one key field  for BP object

    Hi Gurus,
    I want to enhance Business Partner object with a new table with two key fields, one the address number and another a sequence number, because I need to save several entries for each address belonging to a determined business partner. Something as what happens in communication data (i.e fax number)for an address.
    I have run the wizard from EEWB but the only possibility that offers you is to create only one key field for the new custom table. There is something in EEWB to achieve this, two key fields for the new table?
    Another question is the following: which Badi or BAPI must I enhance to populate my table with the corresponding address number to which the data belong to?
    I mean my custom data are filled through a table control that I have allocated within the screen sequence BUA130 (Detail Address). Thus, when a new address is added to a BP and my particular table control is populated within this address I should fill the key fields from my table (address number and sequence number) when the BP were saved. So, I must know beforehand which address number the system will assign to this new address.
    I repeat the question: which Badi or BAPI must I enhance to populate my table with the corresponding address number to which the data belong to?
    Thanks in Advance.
    Regards,
    Rosa Ferrando

    Hi Rosa,
    Please go through the following links. It will help you.
    <a href="http://help.sap.com/saphelp_crm50/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm">http://help.sap.com/saphelp_crm50/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm</a>
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Prob with Updation of Primary Key field '' SPRPS '' in PA2001. Plz HELP

    Can anyone please tell me how to update a primary key field in HR Tables (PA2001 and PA2002).
    I need to update sprps field in both the tables. I used HR_Infotype_Operation function module, but still it is not updating the field.
    Pls find the following code snippet for the table PA2001 and let me know if any discrepancies :
    TABLES: pa2001.
    DATA: it_pa2001 TYPE TABLE OF pa2001,
    wa_pa2001 LIKE LINE OF it_pa2001,
    DATA: date TYPE d.
    date = sy-datum - 100.
    SELECT pernr sprps begda endda FROM PA2001 INTO CORRESPONDING FIELDS OF TABLE it_pa2001
    WHERE begda BETWEEN date and sy-datum.
    WRITE:/.
    WRITE:/ 'PA 2001 Records'.
    if sy-subrc <> 0.
    WRITE:/ 'No Data Exists'.
    else.
    LOOP AT it_pa2001 INTO wa_pa2001.
    WRITE:/ wa_pa2001-pernr, wa_pa2001-sprps, wa_pa2001-begda, wa_pa2001-endda.
    ENDLOOP.
    endif.
    LOOP AT it_pa2001 INTO wa_pa2001.
    wa_pa2001-sprps = 'X'.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    infty = '2001'
    number = wa_pa2001-pernr
    SUBTYPE =
    OBJECTID =
    LOCKINDICATOR =
    VALIDITYEND =
    VALIDITYBEGIN =
    RECORDNUMBER =
    record = wa_pa2001
    operation = 'MOD'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT =
    VIEW_IDENTIFIER =
    SECONDARY_RECORD =
    IMPORTING
    RETURN =
    KEY =
    ENDLOOP.
    if sy-subrc = 0.
    write:/ 'SY-subrc is zero'.
    write:/ ' Rows modified = ', sy-dbcnt.
    else.
    write:/ 'No Record(s) updated'.
    endif.
    commit work.
    WRITE: / 'Updated Records in the Internal Table IT_PA2001'.
    SELECT pernr sprps begda endda FROM PA2001 INTO CORRESPONDING FIELDS OF TABLE it_pa2001
    WHERE begda BETWEEN date AND sy-datum..
    LOOP AT it_pa2001 INTO wa_pa2001.
    WRITE:/ wa_pa2001-pernr, wa_pa2001-sprps, wa_pa2001-begda, wa_pa2001-endda.
    ENDLOOP.

    Thanks Kiran.
    But I need to change this field as we need to lock the records, as soon as the employee fills his/her time sheets which will be sent for HR Payroll, later on.
    When I am updating directly the field the database table PA2001, its not updating but for table PA2002, only few records are being updated.
    Is there any other alternative for this problem?
    Pls reply.
    Thanks,
    Harish

  • Diff between init with data transfer and repair full request

    hi,
    i have observed that even in the new flow we are doing init without data transfer and then repair full request
    if i do init with data transfer also i can achieve the same?
    i want to know why we need to do this ,do we have any advantage of doing init without transfer and repair full request?
    please suggest me

    Hi Venkat,
    A repair full request is loaded in cases where you get erroneous records or where there are missing records which you want to load. In such cases, a repair full request for the selective records can be loaded and is the most efficient way to correct the data, since you won't be required to load the entire data once again. Also you acheive the desired result without disturbing the delta. (You are not required to do an init w/o data transfer after a repair full, people just do it a a precaution)
    However, repair full requests should only be loaded to infoproviders with update mode 'overwrite'. Otherwise, if the InfoProvider, its very probable that you might double the value of the key-figures due to rows being added twice - in case of an InfoProvider with update mode 'Additive'. So, if your InfoProvider is additive, you will need to delete the entire data and do an 'init with data transfer' to avoid corrupting the data. (Note: you can do a repair full request for an additive infoprovider in case of lost records or if you can delete erroneous records with selective deletion.But you have to be careful with the selections lest you inadvertently load other records than required and corrupt the data)

  • To show a negative sign with date in a calculated field

    Hi,
    I've been trying to work out on how to calculate the number of days under or over between 2 dates. The two fields are called CompleteBy and CompletedOn, so if the CompletedOn is under it would show a positive and if CompletedOn is over then it would
    show a negative.
    I've got it working for the positive side of things but it returns #NUM! when the CompletedOn date is over:
    For example CompleteBy is 19/03/15 and CompletedOn is 20/03/15 it should return -1 but instead it returns #NUM!
    Here is the current code:
    =IF(CompletedOn="","",IF(AND((WEEKDAY(CompleteBy,2))<(WEEKDAY(CompletedOn,2)),((WEEKDAY(CompletedOn,2))-(WEEKDAY(CompleteBy,2)))>1),(((DATEDIF(CompletedOn,CompleteBy,"D")+1))-(FLOOR((DATEDIF(CompletedOn,CompleteBy,"D")+1)/7,1)*2)-2),(((DATEDIF(CompletedOn,CompleteBy,"D")+1))-(FLOOR((DATEDIF(CompletedOn,CompleteBy,"D")+1)/7,1)*2)))-1)
    So this formula works to show positive, but need to find a way how to work backwards and show minus.
    Any help would be grateful.
    Kind regards
    James

    Its throwing the error for negative numbers. Try and work your logic around error handling. Something like below.
    =IF(ISERROR(DATEDIF(Modified,[Created],”d”)),”LATE”,DATEDIF(Modified,[Created],”d”))
    Hope this helps.
    Please mark as 'Propose as Answer' or 'Vote' as appropriate.
    Regards,
    Sagir Kazi
    orgchartgoogleapi.codeplex.com

  • Problems with Data tab's Filter field

    First of all, this is so bad I'm wondering if it must be something specific to my installation, since I don't see any other posts about it.
    If I start typing into the Data tab's Filter field anything that's been typed there before, I get a drop-down of choices. However, the letter I've just typed is selected, and from then on anything I type replaces the previously typed character. In other words, there's no way to get more than one character to appear in the Filter field (at least not without choosing one of the suggested previously-entered items).
    Here's some version info:
    Mac OS X 10.5.2
    Java(TM) Platform     1.5.0_13
    Oracle IDE     1.5.0.53.38
    Any ideas? Thanks!

    Yes, it's very frustrating. It might be related to another focus annoyance I've noticed: When I type into the Filter field, then switch to another app (say to copy the value I need), then switch back, the existing contents of the Filter field are selected. So if I paste without paying attention, I've just overwritten what I had typed. I don't think it used to do this, and I'd be curious how it behaves for you.
    Thanks!
    -- Mark

  • Visio Drawing Using Data Graphics with data that has a field that contains Multiple Values.

    I am working on creating a drawing for SMTP connectors.  I decided I would use a Data Graphic connecting to a spreadsheet.  In the spreadsheet there are a few fields that are Multi-Value fields.  For instance SmartHosts contains multiple Ip
    address.  I am trying to get this to format things so that the IPs show on the next line down instead of continuing on the same line until it wraps. 
    Does anyone know a way I could do this?
    Jeff C

    Hi Jeff,
    Arrange the IP values in spreadsheet using Alt+Enter (Use this key pair as a separator between two IP values). Now link this spread sheet to Visio. The values should appear in the same manner in data graphics as your expectation.
    Let me know if you meant something else.
    Thanks,
    Dheeraj 

  • Problem with flexitems:  dot in key field results in JBO-25005

    I am using flexitems in my application.
    I am using version 10.1.3.2.51
    My application has a single group with flexitemregion. The underlying VO has one Key attribute of type String (underlying PK column is a varchar2 field). When I create a record with a '.' (a dot like in a.b ) in the field I get an error when the page is redisplayed:
    JBO-25005: Objectnaam FlexItemsForAlgemeenFlexRegionAlgemeena.bnullnull voor type Viewrijset is ongeldig.
    Apparently, the name of ViewRowSet is invalid, because of the dot.
    Is there a solution for this ? Can we change the way the name of the rowset is derived? Note: we cannot remove the dots from the PK field in all records!
    Thank you for the help.
    Lia

    Lia,
    We will fix this for the 10.1.3.3 release.
    The problem is in method getFlexItems:
    public RowIteratorListAdapter getFlexItems(String group,
    String flexRegion,
    String keyValue1,
    String keyValue2,
    String keyValue3)
    ViewObject vo = getFlexItemDefsOuterJoinedWithFlexItems();
    String naam =
    "FlexItemsFor" + group + flexRegion + keyValue1 + keyValue2 +
    keyValue3;
    RowSet rs = vo.findRowSet(naam);
    if (rs == null)
    rs = vo.createRowSet(naam);
    The naam variable should substitute dots with something like underscores to create a valid RowSet name. You can override this method in a subclass and do this, but then you will run into another issue, see this thread:
    JhsModelService extension does not work ?
    Steven Davelaar,
    JHeadstart Team.

  • Calling the selection screen of report with data for the selection field

    I have the selection screen with 2 fileds.
    sales order and  payment terms.
    My requirement is to update the payment terms into the ztable for the given order.
    Sometimes the payment terms will be there ie already maintained ,in that case i need to show to the user the existing payment term ,so that he can modify and save that one.If the payment term is not existing then simply i can go inside the program and update the payment term.
    What I thought of doing is , writing a report program and then after the user inputs the selection screen ie order number , I Will check in the ztable and if the payment terms is found then i will use the key word leave list processing. But i dont know how to populate the payement term in the selection screen oncegaing from the program

    Hi shiva,
    when the user enters sales order number on screen, in parameter 1,
    you want to show payment term, on selection screen itself, in parameter 2.
    We can use the event
    AT SELECTION-SCREEN.
    Eg. PO Number <----
    > User
    Below is sample code for same.
    If you enter PO Number, the system will show the corresponding user in parameter2.
    Just copy paste.
    REPORT  YAM_TEMPA09.
    PARAMETERS : EBELN LIKE EKKO-EBELN.
    PARAMETERS : ERNAM LIKE EKKO-ERNAM.
    AT SELECTION-SCREEN.
    ERNAM = ''.
    SELECT SINGLE ERNAM
    FROM EKKO
    INTO ERNAM
    WHERE EBELN = EBELN.
    regards,
    amit m.

  • Having issues with populating a Text Field with data from 2 other fields

    I have 3 fields Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.
    Tools_1a_pri is a drop down combo with a predefined list. One of the options is "Other".  When "Other" is selected, the text field Tools_1a_pri_other becomes visible for users to enter the name of the other tool.
    The Tools_1a_pri_txt is a text field with a calculation that shows either text stating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.
    When I select one of the predefined tools, everything works.  When I select other, it appears that nothing has changed.  It requires that I click on another field before it populates.  This is confusing to the user.
    Tools_1a_pri   Validate code
    this.getField("Tools_1a_pri_Other").display = event.value=="Other" ? display.visible : display.hidden;
    Tools_1a_pri_txt  Calculation code
    //if nothing is selected, do the following
    if (getField("Tools_1a_pri").value.length < 2) {
    event.target.textColor = color.red
    event.value = "No primary tool identified";
    }else if (getField("Tools_1a_pri").value != "Other") {
    //otherwise do this if other is selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value;
    }else if (getField("Tools_1a_pri").value = "Other") {
    //otherwise do this if other is not selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value + " - " + getField("Tools_1a_pri_Other").value;

    You made the classic mistake of using the assignment operator in an if-statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = "Other") {
    To this:
    } else if (getField("Tools_1a_pri").value == "Other") {

Maybe you are looking for

  • RECONNECTING MEDIA... ONE AT A TIME ?????

    I migrated my I-tunes list from my dual 1.25 G4 to my new MacPro but its didn't automatically connect... I have several hundred songs in my library and have to find and connect a song individually by searching its title. Is that the only way to do it

  • Creative Cloud says 'Download Error' and will not reload applications

    I need the newest version of Premiere CC and my adobe creative cloud desktop application manager refuses to connect for updates, I have internet connection and valid creative cloud account. Im stuck on premiere version 7.2.2 and I need to be able to

  • Unable to digitally sign

    I have a form created that multiple people go in and sign, but one person in particular always gets the message "The file may be read-only, or another user may have it open.  Please......."  I know what that usually means but in this case there's no

  • How can you increase performance ?

    Hello, I am building a site but it's framerate is very slow.  I read some articles that Sprites are much faster then movieclips.  For example i have 5 long movieclips (4300 pixels in width). These clips scroll in horizontal direction to get a paralla

  • Report Generator??

    HelloEverybody, Can anyone tell me as to wat is a <u>REPORT GENERATOR</u>?? And can send some material on SAP-SCRIPTS and SMARTFORMS??Please do send it immediately.Quick response will be appreciated..... Thanking u in anticipation . Regards, Sirisha