Integration table always inserting not updating

Hi,
I put a sequence in an integration layer target table (which is the result of 2 joined tables). I put the option INSERT/UPDATE, but the target table seems to be in insert mode, she never updates ! Any idea what I could look for?
Thank's

Hi folks,
I finally got to read this entire thing. There are 2 issues here:
1) How do you use the attributes on a target to make sure there is an update possible when you use surrogate keys (sequence values)?
2) How does OWB generate sequence numbers?
The answer to 1) is best shown with an example. Suppose I have a table T1 with 3 columns:
ID
CODE
NAME
ID is the primary key, filled with the sequence and plays the role of surrogate key. Code is the actual code as found in the source system (let's say customer code), is is the PK on the source and is unique. Name is the name of the customer and may not be unique.
Scenario1: No keys are set on T1 and therefore no uniqueness is enforced. How do I do insert/update?
Answer1: You set the following attributes:
ID:
Load column when inserting row = YES
Load column when updating row = NO
Match column when updating row = NO
CODE:
Load column when inserting row = YES
Load column when updating row = NO
Match column when updating row = YES
NAME:
Load column when inserting row = YES
Load column when updating row = YES
Match column when updating row = NO
This means that any update on the NAME or any other thing that changes will update based on the CODE column, which is the pk of the source and therefore the correct match. The ID will NOT be updated in this update case. New records will get a new id, code and name as per source.
Scenario2: A PK/UK is set on T1, column ID. How do I do insert/update?
Answer1: You set the following attributes:
Match by constraint = NO CONSTRAINT
ID:
Load column when inserting row = YES
Load column when updating row = NO
Match column when updating row = NO
CODE:
Load column when inserting row = YES
Load column when updating row = NO
Match column when updating row = YES
NAME:
Load column when inserting row = YES
Load column when updating row = YES
Match column when updating row = NO
You must avoid matching on the contraint/PK/UK because that is a generated number and will never match with the source. So you must make sure to match on the source attribute, aka the CODE attribute. Then you merge will perfectly work, and it is very fast!
#2 is a bit different. OWB (there is a bug on this) generates sequences and discards them if not needed. So you may see gaps.
Now here are 2 things to consider. Oracle RDBMS caches sequence numbers by default and therefore by default you will/may see gaps anyways. A sequence (as documented) is not intended to guarantee sequential numbers without gaps!!! So use you own function if you need a meaningful number with no gaps.
Now here is the other thing. IDs are in classic DWH supposed to be meaningles. In other words it does not matter by definition what the number is, as long as it is unique. The number should not be used to base anything on, it's there to optimize storage in big fact tables. No other reason.
Hope that explains the lot, and maybe this obsoletes the "-1" solution as you can do this out of the box.
Jean-Pierre

Similar Messages

  • Derived table 'tablename' is not updatable because a column of the derived table is derived or constant.

    Hi Guys,
    I have a With CTE table expression ,this cte gets the value from startdate and enddate
    I need to insert this startdate and enddate into a table ,while inserting into table,i got the below error,
    Derived table 'Datematrix' is not updatable because a column of the derived table is derived or constant.
    below is the query i used,
    declare @StartDate date='01/01/2013'
    declare @EndDate date='12/31/2013'
    ;WITH Datematrix(AllocationDate)
    As
    SELECT @StartDate AS AllocationDate
    UNION ALL
    SELECT DATEADD(D,1,AllocationDate) AS AllocationDate
    FROM Datematrix WHERE AllocationDate<@EndDate
    Insert into Datematrix(AllocationDate)
    select * from Datematrix 
    any guys update this solution.
    Thanks 
    Bhupesh.R

    ;WITH Datematrix(AllocationDate)
    As
    SELECT @StartDate AS AllocationDate
    UNION ALL
    SELECT DATEADD(D,1,AllocationDate) AS AllocationDate
    FROM Datematrix WHERE AllocationDate<@EndDate
    Insert into Datematrix(AllocationDate)
    select * from Datematrix 
    Hello,
    Your CTE bases only on fix value = @StartDate , not on a table/view; here do you want to insert data to? This don't work in any way.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • TRM-TM TABLE "DIFT_POS_IDENT" IS NOT UPDATED

    When I create a money market transaction, the table DIFT_POS_IDENT is not updated.
    Only the securities transactions are updated in the table. I want to know if this is the
    correct situation or I can config it in IMG.

    What is the scenario you are executing ? This table belongs to Transaction manager in the treasury module. This group might not be apt. There is a seperate group for treasury and risk.

  • Table record is not updated correctly after navigate back from detail page

    I have 2 jspx pages one (page A) has a table displaying the employee record, another one (page B) is used to update the selected employee record. On page A, when selecting a record and clicking the 'Details' button I can be navigaed to pag B on which I can modify the record information in a form component. I have one table column 'teamName' which is binding to a LOV at VO layer and on pageB I am using <af:inputComboboxListOfValues> to show a editable LOV list for this attribute, when I input a new value here and save it, I can go back to page A but the team name for this record shows empty, by querying the database I do find the record updated successfully with the changed value. And when I reloaded the page the record can show the new team name value. Why it is not updated in the employee table when immediately navigating back from page B? I have set the table iterator refresh attribut to "always" but still failed. Can anyone help on this issue? Thanks!!
    BTW, for other columns (not LOV) they are ok, the table can show the changed value correctly.
    Edited by: user774592 on Jul 14, 2011 7:56 PM
    Edited by: user774592 on Jul 14, 2011 9:59 PM

    Thanks for reply!
    I did exactly the same as what you said. I d&d the data control Commit operation on page B to generate a 'Save' commandToolbarButton with the action attribute set to 'save' which is the from outcome for navigating back to page A. Is there any business logic I need to write here? Currently I have no.
    Note: In this case I used an editable LOV, I have a requirment that besides selecting a existing value from the lov, user can also input a new value in the LOV. When going back to page A, I do find the LOV list is updated to contain the new vaule. Just the record in the table shows an empty value instead of the new value. Still do not know why.

  • Table UDM_COLL_ITEM & UDM_COLL_LASTPAY Not updated

    Hi,
    I've a peculiar issue with this particular customer that open items are cleared last week, however they are still appearing in a worklist. Last Payment details are also not showing correctly.
    I've observed that both the tables UDM_COLL_ITEM and UDM_COLL_LASTPAY are not updated with the AR data transfer program, why? Whereas, rest of the BPs are fine.
    If I run FDM_COLL_SEND01 just for this customer than probably the issue will be resolved. However, I would like to know the reason for such discrepancy. I had that issue before with some other BP. What should be the reason for such intermittent anomalousness?
    Thanks,
    Nirav

    Hi Nirav,
    As per SAP Collections management, there is a need to transfer FI-AR data to collections management before creation of worklist.
    FI-AR data for company codes relevant for collection management is transferred on execution of program Send FI-AR relevant Data to Collections Management i.e FDM_COLL_SEND_ITEMS .
    So it is advisable that you schedule this program as batch job before creation of worklist everyday.
    You can also refer to the below link which states the same.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/43/26a38dfd2f0d23e10000000a1553f7/content.htm
    Hope this clarifies your question.

  • Tables CABN, KLAH not updated

    Hi
    I have downloaded objects CLASS, ATTRIBUTE & OBJCL for a configurable product but corresponding tables in CRM, CABN, KLAH etc are not updated.
    I am not able to comprehend the reason for this.
    Thanx in advance.
    Cheers
    Hits

    Hi Hitesh,
    If an entry is missing in the table CABN, which could be result of Overwriting.
    Please refer the following correction in the notes.
    Notes:410704
    Reward with points.
    regards,
    Muralidhar Prasad.C

  • GL_JE_HEADER table : Posted date not update properly

    Hi All,
    I have seen that for few of the journals created inside GL,  The posted date inside the GL_JE_HEADER table is update with a date instead of time stamp.
    i.e  the posted date column is updated as '7/08/2013'  instead of  '7/08/2013 4:40:39 AM'
    This has caused some problem in te system.
    was wondering if you could help me to get an answer for this.
    regards
    Amit

    i am thinking that you want to include the time when you query the column post_date from table. if you are using SQL*Plus the default display for the date does not include the time. to include the time when you do a select on any data column use the ALTER SESSION SET NLS_DATE_FORMAT command.
    e.g.
    SQL> select sysdate from dual;
    SYSDATE
    18-SEP-13
    SQL> alter session set nls_date_format = 'dd-mon-yyyy hh:mi:ss am';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    18-sep-2013 11:57:17 am
    SQL>

  • LFA1 Table fields are not updated via IDOC for particular vendors

    Hello,
    We have a scenario where some of the additional vendor fields in transaction xk02 should be updated via inbound IDOC.
    The IDOC segments have the corresponding vendor field values in it.
    For particular vendors, the updation is not taking place for those fields.
    What could be the possible reason. Kindly help me with this.

    Hello,
    that may be due to customizing.
    You should check with functional consultant.
    Regards

  • Free space showing in Table space but not updated on os file system.

    Hi Support,
    I am using oracle 10.2.0.4.0 in ECC6.0. OS is Solaris 10 (Linux).
    We deleted all xml messages from my PI/XI server. its successfully deleted even table space showing free space almost 400GB in DB02 and from brtools also. But from OS side OS file system not showing free space,
    Is any body know about this issue????  do i need to reboot system or any other solution.
    Thanks,
    Kazi Faizan.

    Try to set it up as new device and restore again from the backup:
    How to erase your iOS device and then set it up as a new device or restore it from backups

  • File-to-rfc ..database tables are not updating??

    hi xi friends..
    in my file -to-rfc scenario.. without BPM ..
    in sxmb_moni..it is showing successfull.. database tables in sap not updating..
    my source structure..
    workorders 1..1
    ..order 1..unbounded
    ...id
    ...operation 1..unbounded
    .....id
    .....closingdate
    .....status
    .....comment
    my target is Zbapi_alm_conf_create..
    Zbapi_alm_conf_create
    ...Zdetail_return 1..1
    .....item 0..unbounded
    ...Ztimetickets
    .....item 0..unbounded
    .......orderid
    .......operation
    .......fin_conf
    .......con_text
    .......exec_fin_date
    in message mapping:
    MM_file_to_zrfc
    i changed the occurance of target to unbounded..
    message mapping like this..
    my source structure..
    workorders 1..1 
    ..order 1..unbounded   --------->Zrfc 0..unbouned
    ...id                  --------->Ztimetickets-item-order
    ...operation 1..unbounded ------>Ztimetickets-item 0..unbounded
    .....id                ---------->Ztimeticktes-item-operation
    .....closingdate       ----------->Ztimeticktes-item-exec_fin_date
    .....status            ----------->Ztimetickets-item-fin_conf
    .....comment           ------------>Ztimeticktes-item-conf_text
    and also in  interfacemapping ,changed the target occurance to unbounded.
    and in ID ,interface determination using enhanced i selected interface mapping with occurance unbounded..
    in sxmb_moni it is showing success..
    in adapter monetering( receiver).
    <i>Receiver channel 'cc_sap_work' for party '', service 'SAP_ERP__DEV' (internal name 'RfcClient[cc_sap_work]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=****, jco.webas.ignore_jdsr_error=1, jco.client.user=aar, jco.client.sysnr=10, jco.client.ashost=53.247.192.84}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=****, jco.webas.ignore_jdsr_error=1, jco.client.user=thotv, jco.client.sysnr=10, jco.client.ashost=53.247.192.84}
    Current pool size: 0, maximum pool size : 1
    Channel History
    - OK: 2006-12-31 14:19:47 CET: Message processed for interface ZBAPI_ALM_CONF_CREATE
    - OK: 2006-12-31 14:18:50 CET: Message processed for interface ZBAPI_ALM_CONF_CREATE</i>
    but the database tables are not updating..if i execute ZBAPI_ALM_CONF_CREATE manually in SAP ..tables are updating...
    please guide me...
    thanks in advance...
    regards
    Ram

    Hi..
    my mappis is like this..
    message                   message
    .message1                         message1       
    ..workorders 1..1 
    ..order 1..unbounded   -
    >Zrfc 0..unbouned
    ...id                  -
    >Ztimetickets-item-order
    ...operation 1..unbounded -
    >Ztimetickets-item 0..unbounded
    .....id                -
    >Ztimeticktes-item-operation
    .....closingdate       -
    >Ztimeticktes-item-exec_fin_date
    .....status            -
    >Ztimetickets-item-fin_conf
    .....comment           -
    >Ztimeticktes-item-conf_text
    i didnt mapped message at root..is this necessary to mapp messages??
    please tell me
    regards
    ram

  • J_1IRG23D Table was not updated With Correct Values While Doing MIGO

    Hi Friends,
    I am new to the Excise duty , facing a proble in CIN -While doing MIGO, the Excise Calculation are coming correct values (i.e 10% ),but in the table it was not updated correctly (J_1IRG23D) only one entry is showing wrong ,the other entries in the table are correct.
    In table -J_1IEXCDTL the EXBED it was with correct value 10% of the Base value
    But In table -J_1IRG23D the EXBED,ADE,CESS It was updated with 0.06% on the base value .its gives wrong value
    Kindly help in this issue.
    Regards
    Siva

    Hi,
    Go to T Code - J2I5 (not 215 it is j 2 i 5) enter details and select register PLA Check box and execute. This can be extracted many times - no problem.
    After J2i5 balance will update in registers including tables.
    Ramesh

  • TDS TABLE Not updating

    Hi Experts,
    I m using TDS 4.9 version whenever i do A/P invoice the WH(TDS ) calculation is doing good but the related table @CXS_TDS_ENTRY is not updating
    Plz suggest me
    Rajesh B K

    Hi,
    Pls. reinstall ur TDS addon, AddOn is not properly installed.
    Regards,
    Mahesh.

  • OM PA Integration (PLOGI SPLIT) is not working for all employees

    Hello Experts,
    In our 4.7 system, PLOGI SPLIT (Integration: New IT 0001 record at name change) is enabled.  But there are certain infotype 0001 records which are not updated when descriptions to positions/org units are changed in OM.
    PLOGI ORGA is also activated. 
    RHINTE30 runs as a batch job regularly.
    The PA data should have been updated.
    We have checked RHINTE30 program and it checks table HRINTE30.  When does table HRINTE30 be filled with the employees to be updated?  Do you think that the root of this problem is that table HRINTE30 is not updated?
    Points will be awarded.
    Many thanks
    Regards,
    Olekan Babatonde

    did you check the following switch in T77S0:
    PLOGI SPLIT Integration: New IT 0001 record at name change
    The description (F1) states:
    Integration: New Infotype 0001 Record When Description Is Changed
    If the value entered is 'X' and you change the description of positions,
    jobs or organizational units, new infotype 0001 records for the
    personnel numbers concerned are created on the date of the change(s).
    This means that the system will always display the up-to-date
    descriptions of named objects, both in Personnel Administration
    transactions and in reports on persons.
    If the description of an object is changed on a particular date (as of
    Release 4.5, this is done in Organizational Management by copying a
    record from infotype 1000, "object"), the system first establishes which
    personnel numbers are affected by this, and marks them internally. Then,
    you should use report RHINTE30 (parameter "Open Personnel Numbers Only")
    to create a batch input session. After this session has been processed,
    new infotype 0001 records for the person(s) concerned are created.
    If the field PLOGI SPLIT is blank, the system only creates new infotype
    0001 records if the assignment itself (that is, the number of the
    position, job or organizational unit) changes.
    Seems to be just what you are looking for. However the downside is that this will increase the data in IT0001.

  • PGI status at delivery header level has not updated

    Dear Friends,
    We had created deliver, picking was completed and PGI was completed successfully. However when we try to create Billing, an error occurs stating that PGI is not completed.
    Further when we check the delivery, the Goods Issue status at item level is completed but at the Header level the GM is B which is partially completed. In the Document flow we can see the PGI Status is completed.
    I think there might be some table which was not update. Is there any way to update the status in the delivery?
    Further we tried to reverse the PGI through VL09, but system is not able to find the delivery ..this might be because the system might be checking in some table where the statues has not updated.
    Please suggest me how should I complete this.

    HI,
           Go to transaction "SE16N" and enter table "VBUK" and give the delivery number in the field sales document number. Now you type "&SAP_EDIT" in the transaction bar and execute. Here you can change the status(Total goods movement). And see If you can actually bill the document. Kindly please let me know If you need any more information on this.
    Regards,
    Ram Pedarla

  • J_1IRG23D is not updating with Correct Excise DED Value,

    Hi Friends,
    I am  new to the Excise duty , facing a proble in CIN -While doing MIGO, the Excise Calculation are coming correct values          i(.e 10% ),but in the tables it was not updated correctly (J_1IRG23D)   only one entry is showing wrong ,the other entries in the table are correct.
    In table -J_1IEXCDTL  the EXBED it was with correct value 10% of Base value
    But In table -J_1IRG23D  the  EXBED It was updated  with 0.006% on the base value .its gives wrong value
    Kindly help in this issue.
    Regards
    Siva

    Hi Siva,
    J1IG is to create depot excise invoice.
    you can update J-1IRG23D table in two ways-
    MIGO > Create Rg23D
    OR MIGO > No excise entry and then create RG23D entry via J1IG.
    For more information on the same please gothrough  -
    http://help.sap.com/erp2005_ehp_06/helpdata/en/09/ebf138cdd78a4be10000000a114084/frameset.htm
    Regards,
    Brinda

Maybe you are looking for

  • How to update Adobe Presenter 8.01?

    I am trying to do presentations with animated inking on a tablet and the quality is so poor (I have to use ppt instead of pptx in the native inking). I have to convert them to images. I'm hoping that they work in presenter 8.02, but I can't figure ou

  • TS3771 Quicktime not working in itunes store.

    Hey, when i try to play a video on itunes store or view any trailer of a movie, it does not play it, it just stucks. I runned it on 32-bit mode but it did not help. Please someone help me get out of this situation!

  • Linking Mac Mini to iMac

    I recently purchased a new iMac and would like to link my Mac Mini to it. Anyone know how this can be done. I tried 'daisy chaining' via firewire but it doesn't work. Thanks

  • I bought windows when I needed the Mac version, who can help me?

    I accidentally bought the wrong for the wrong system - how can I get is exchanged?

  • Starting and stopping a loop

    I am importing a list of 10,000 emails into memory and then comparing them to a database which holds over 400,000 records. It doesnt take long for the <cfquery> to time out. I know there must be a way to loop thru 20 or so, then stop, then loop thru