Mismatch in the datatypes in join conditions of the views

Hi guys,
For creating a view I am trying to join 2 tables( EUIINSTLN & EUFASS).
I have selected 4 fields in first table(EUIINSTLN) and 3 fields in the second table(EUFASS).
The join condition is in such a way that the first table field(EUIINSTLN-ANLAGE) is input to second table primary field(EUFASS-OBJKEY).
The first table field(EUIINSTLN-ANLAGE) is of 10 char length and the input field(EUFASS-OBJKEY) in the second table primary field(EUFASS-OBJKEY) is 70 characters in length.
When we take the value in the first table field(EUIINSTLN-ANLAGE) individually and give input( to EUFASS-OBJKEY) in the second table((EUFASS) it works fine even though there is mismatch in the datatypes. I.e., it works individually.
But when this data is viewed using the DDIC view it doens't show any records, since the field length condition is not met. i.e., mismatch in the datatypes takes place. The below is the condition I have given in the view - table/join condition.
EUIINSTLN     MANDT     =     EUFASS     MANDT
EUIINSTLN     ANLAGE     =     EUFASS     OBJKEY.
Some persons have said that I can delimit the 70 char field(EUFASS-OBJKEY) to 10 char.
How can I delimit the length of 70 characters field(EUFASS-OBJKEY) to 10 char in the join conditions of the view.
Appreciate if any one give any solution on this.
Regards
Mac

> EUIINSTLN     MANDT     =     EUFASS     MANDT
> EUIINSTLN     ANLAGE     =     EUFASS     OBJKEY.
Hi Mac,
You can limit the number of char in OBJKEY to 10.
Join Condition
EUIINSTLN-MANDT     =     EUFASS-MANDT
EUIINSTLN-ANLAGE      =     EUFASS-OBJKEY(10).
Best regards,
Shahid Malayil

Similar Messages

  • Where can I find join conditions in the ALL_IV_XFORM views?

    OWB 10.2
    where can I find join conditions in the ALL_IV_XFORM views? And if they cannot be found there, where are they to be found?
    Regards,
    Jaap.

    Hi Jaap,
    ALL_IV_XFORM views are called Mapping Model Views . These are available at repostory owner user.
    ALL_IV_XFORM_MAPS
    ALL_IV_XFORM_MAP_COMPONENTS
    ALL_IV_XFORM_MAP_PARAMETERS
    ALL_IV_XFORM_MAP_PROPERTIES
    ALL_IV_XFORM_MAP_DETAILS
    Connect repository user and execute below statement
    SELECT VIEW_NAME FROM ALL_VIEWS WHERE VIEW_name like 'ALL_%';
    Regards,
    Venkat

  • How i can make in the same action 2 condition (check the exemple down)

    how i can make in the same action 2 condition (check the exemple down)
    this is an example and I really thank you for helping me(any body plz)
    http://www.2shared.com/file/DPpdgC_a/Exemple_Edge.html

    1. make each rectangle a symbol  (Symbol_1 and Symbol_2) and uncheck autoplay()
    2. Delete your code on the click event and put the following code in compostion ready:
    var toggle=true;
    function btnPlay(){
              if (toggle){
                        toggle=false;
                        sym.getSymbol('Symbol_1').play();
              else{
                        toggle=true;
                        sym.getSymbol('Symbol_2').play();
    sym.$('Ellipse').click(function(){
              btnPlay();

  • How to make the join condition in a view with this tables LFBK LFA1 TIBAN?

    Hi gurus,
    how can I make the join conditions for those 4 tables LFBK LFA1 TIBAN and BNKA ?
    thanx
    Moderator message: please (re)search and try yourself first.
    Edited by: Thomas Zloch on Nov 22, 2010 4:44 PM

    Well, use
    LFA1-LIFNR EQ LFBK-LIFNR
    LFBK-BANKS EQ BNKA-BANKS
    LFBK-BANKK EQ BNKA-BANKK
    LFBK-BANKS EQ TIBAN-BANKS
    LFBK-BANKK EQ TIBAN-BANKK
    LFBK-BANKN EQ TIBAN-BANKN
    LFBK-BKONT EQ TIBAN-BKONT
    Not very hard...
    Regards,
    Raymond

  • How to list all the datatypes are being used in the database?

    Is there any way you can list all the oracle datatypes are being used in the database?
    Thanks,
    Chau

    Use USER_TAB_COLUMNS or DBA_TAB_COLUMNS to determing various data type but USER_TAB_COLUMNS will show you what type being used by a schema user

  • Join conditions for the given tables

    Hi,
    I would like to join the below tables
    FA_INVOICE_DETAILS_V FID
    ,AP_INVOICE_PAYMENT_HISTORY_V AIP
    ,PO_DISTRIBUTIONS_all PD
    ,AP_BATCHES_ALL AB
    ,PO_HEADERS_ALL POH
    ,PO_LINES_ALL POL
    ,FA_ADDITIONS_V FAA
    can anyone give me the conditions to join the above tables. Its an urgent please suggest me
    Thanks in advance

    Only you can know how to join those tables. We don't know your business, your data, or your requirements.
    If you would like us to help you, you need to provide the definitions of all the tables and which columns match between these tables. Then you have to tell us if you want inner joins, outer joins, theta joins, etc.
    Please see the following link:
    Urgency in online postings

  • No record found in the table while using condition for the new added field

    Hi,
    I have added a new field in Z table. There is lots of record in the table. The field which I added have null records. When I am checking the record using the condition new field equal(EQ) to space or blank. This shows no record in the table, but when I execute whole of the table, it shows entries for all field.
    Please suggest. Thanks in Advance.
    Rgds,
    Hemant Maurya

    Hi Suhas,
    Thanks for your quick response.
    Yes I have run SE14 and activate & adjust the database, But problem is same.
    My select query is:
    SELECT VBELN
             PI
             GJAHR
             KUNNR
             GPD
             GPI
    INTO TABLE I_GP_DATA
    FROM ZFI_GP_DISCOUNTS
    WHERE AUGDT BETWEEN ZFI_GP_DISCOUNTS-AUGDT AND ZFI_GP_DISCOUNTS-P_DATE
    AND DOC_NO EQ SPACE.
    Thanks & Regards,
    Hemant Maurya

  • How can I restore my computer to the it's previous condition from the present Firefox 4?

    I would like to uninstall Firefox 4 and return to my previous Firefox version of 3.6

    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles
    What problems are you having with Firefox 4?

  • Is there any way to accept the apple terms and conditions using the website or any other ways that are not flawed to being unusable?

    I have tried using the set in system of trying to update an app and being prompted to agree, but every single time  Apple's gay system keeps telling me that my session has timed out and I should try again. I have tried multiple times to have it sent by email, but every one of those show up as "there was an error and email failed. Please try again.". I signed in on the website and was prompted to agree to the terms and I did, but Apple still will not let me dowload/update apps. Is there any way to get to a part of a website that lets you agree to the terms? If not, is there any fool-proof way that I can do it or a solution to the session timing out issue?

    Try resetting your device.
    If that fails, Reboot, Reset, Restore.

  • Issue with join condition while using in the corelated sub query

    Bees,
    I am not able to use the below query since i have used a join condition in the corelated sub qery inline view.But i have a requirement like this . Please help me on this
    select * from dept d
    where exists (select 1 from (
    select deptno
    from emp where deptno= d.deptno)
    Thank you
    Boooo

    Hi,
    I've never seen a general solution for how to reference columns from main query a from sub-query c, where c is is sub-query of b, which is a sub-query of a.
    Whenever I've wanted to, I've been able to get the desired results with a different approach.
    In this case, you seem to want
    SELECT     *
    FROM     dept     d
    WHERE     EXISTS     (
              SELECT     1
              FROM     emp
              WHERE     deptno     = d.deptno
              );I'm guessing at your data and desired output.

  • Joiner Join Condition changed automatically

    Hi,
    When one of the ingrp table operators has been added with new column and that new column is connected to the joiner, the join condition of the joiner automatically changes(randomly).
    To give the steps to recreate (it doesnot occur all the time)
    1.Take two source table operators.
    2.join them through a joiner with the correct join condition like for example.
    INGRP1.COLUMN1 = INGRP2.COLUMN1 AND
    INGRP1.COLUMN2=INGRP2.COLUMN2
    3.Take the output from OUTGRP1 to the target table.
    4.Generate the map and they are correct until now.
    5.Now add one column to the first source table operator(manually or by synchronize).
    6.Drag that column into the joiner and then save.
    7.Generate the map now to see the condition would have become something like
    INGRP1.COLUMN1 = INGRP2.COLUMN9 AND
    INGRP1.COLUMN2=INGRP2.COLUMN10
    Couldnot find out in what exact condition this mismatch occurs.
    Has anyone faced this issue earlier.
    Regards
    Ganesh

    Yes the joiner is something you have to be careful with.
    For example, you can also have this problem.
    1. 2 source tables are joined.
    2. ingroup1.col1 = ingroup2.col1 (for example)
    3. You decide to take a few columns from both tables as the joiner's 'out' group.
    4. You then realize that you can't use one of the columns that is being brought in from ingroup1.
    5. The column is removed from the ingroup1 table operator, and it is removed from the 'input' portion of the joiner.
    6. It looks like it is also removed from the 'output' portion of the joiner....and it is. BUT...
    7. Sometimes removing something from the joiner causes the output values to 'shift'.
    example:
    joiner input: 1.1, 1.2, 1.3 joins with 2.1, 2.2, 2.3, 2.4
    output is 1.1, 1.2, 1.3, 2.1, 2.2, 2.3, 2.4
    now we decide we don't need to bring in 2.2 at all.
    it is removed from the incoming table operator and the ingroup of the joiner.
    it is then removed from the outgroup of the joiner.
    however the values simply shift in the absence of 2.2. Observe:
    output is 1.1, 1.2, 1.3, 2.1, 2.3, 2.4
    ^ ^
    2.2 2.3
    so sometimes the outgroups get bound to the missing value and they all 'shift'
    watch for this. I've seen many it happen to many people even after reconciling and synchronizing and so forth.
    Message was edited by:
    Greg Partenach

  • Set operator NE in Database View creation in  join condition

    Hi Experts,
         I have a requirement to set NE(not equal) operator in join condition of Database View creation. Could you please help me how to set in operator.
    Join condition :
    Ex : BSAK-AUGBL NE BSAK-BELNR.
    You know that by default operator is '='. i want to set NE in place of '='.
    Thanks,

    Hi Chinna,
    Check whether if there is any possibility or not to include more key fields like bukrs, lifnr, gjahr etc in the where condition, so that you query may result faster. Then, there won't be any necessary to create the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • URGENT:Problem in a mapping with 8 tables in JOIN and using the DEDUP op.

    I have an urgent problem with a mapping: I must load data from 8 source tables (joined togheter) in a target table.
    Some data from 1 of the 8 tables have to be deduplicated, so I created a sort of staging table where I inserted the "cleaned" data, I mean, the deduplicated ones.
    I made it to make all the process faster.
    Then, I joined the 8 tabled, writing the join conditions in the operator properties, and connected the outputs into the fields of the target table.
    But..it does not work because this kind of mapping create a cartesian product.
    Then, I tried again with another mapping builted up in this way: after the joiner operator, I used the Match-Merge Operator and I load all data into a staging table exactly alike the target one, except for the PK (because it is a sequence). Then, I load the data from this staging table into the target one, and, of course, I connect to the target table also the sequence (the primary key). The first loading works fine (and load all the data as I expected).
    For the next loadings,I scheduled a pre-mapping process that truncate the staging table and re-load the new data.
    But..it does not work. I mean, It doesn't update the data previously loaded (or inser the new ones), but only insert the data, not considering the PK.
    So, my questions are as follow:
    1) Why loading the data directly from the joiner operator into the fact table doesn't work? Why does it generate a cartesian product??
    2) The "escamotage" to use the Match-Merge operator is correct? I have to admit that I didn't understand very well the behaviour of this operator...
    3) And, most of all, HOW CAN I LOAD MY DATA? I cannot find a way out....

    First of all, thanks for the answer!
    Yes, I inserted the proper join condition and in fact I saw that when WB generates the script it considers my join but, instead of using the fields in a single select statement, it builts up many sub-selects. Furthermore, it seems as it doesn't evaluate properly the fields coming from the source tables where I inserted the deduplicated data...I mean, the problems seems not to be the join condition, but the data not correctly deduplicated..

  • How to change operator of join conditions in where clause?

    Hello
    I have a situation... I want to change the operator between each join conditions in the where clause when these join conditions are not from the same join..
    For example, I have the following schema:
    Dim1 ------ DimA -------Fact1
    Dim1-------DimB -----Fact1
    So DimA and DimB are aliasas of one dim table, but the join is different.
    Now if I run this model, what I will get in the where clause of the query is:
    Where Dim1 = DimA and Dim1 = DimB and DimA= Fact1 and DimB = fact1.
    Is there a way I can change these "and" operator to "OR", so that the where clause would look like this: Where Dim1 = DimA and Dim1 = DimB and DimA= Fact1 OR DimB = fact1?
    This is different from simply changing the join operator within the same join, because these are different joins and I'd like to control how they relate to each other..
    Please help
    Thanks

    Sometimes, business rules are complex, so there isn't always a way to simplify things.  Is your issue that it's complex and error prone, or is it performance due to the OR clauses?
    One possibility that will at least make it easier to test and debug is something like this:  (pseudocode)
    From Table1 Inner join Table2 on x=y etc.etc.
    CROSS APPLY
    (Select case when a=b and (c=d or e=f) then 1 else 0 end) as Situation1
    , case when h=i or j = k then 1 else 0 end) as situation2
    , case when l = m then 1 else 0 end) as situation 3
    ) as CA_Logic_Simplifier
    Where situation1 = 1 and situation2 = 1 and situation3 = 1
    Although you could say, "Hey, this is basically doing the same thing as before", this approach would be far easier to test and debug, because you can at a glance look at the values for situation1, 2, 3, etc. to see where errors are being introduced. 
    The cross apply makes the columns situation1/2/3 "instantiated", so they are usable in the where clause. Divide and conquer.  

  • DB view - join conditions order

    Hi gurus
    I wonder if, while creating a DB view, the order of join conditions will affect the overall performance. In my case, i need to join COEP, COBK and TKA01. Actually the join conditions are, in this order:
    COEP     MANDT     =     TKA01     MANDT
    COEP     KOKRS     =     TKA01     KOKRS
    COBK     MANDT     =     COEP     MANDT
    COBK     KOKRS     =     COEP     KOKRS
    COBK     BELNR     =     COEP     BELNR
    To achieve a better performance, may I change the order (up/down or left/right)?
    Thank you! <removed by moderator>
    Edited by: Thomas Zloch on Jan 19, 2012

    My problem is that basis admnistrator is asking me why in the execution plan there is a TABLE ACCESS FULL COBK (see 5th point of the log). Any suggestion?
    SELECT STATEMENT ( Estimated Costs = 644.937 , Estimated #Rows = 0 )
      ---   7 HASH JOIN
    ( Estim. Costs = 644.937 , Estim. #Rows = 3.507.206 )
    Estim. CPU-Costs = 41.978.142.620 Estim. IO-Costs = 640.056
    Memory Used KB: 1.252.352
    Access Predicates
    --   2 TABLE ACCESS BY INDEX ROWID TKA01
    Estim. CPU-Costs = 5.909 Estim. IO-Costs = 0
    1 INDEX RANGE SCAN TKA01~0
    Search Columns: 1
    Estim. CPU-Costs = 2.784 Estim. IO-Costs = 0
    Access Predicates
          ---   6 HASH JOIN
    ( Estim. Costs = 644.895 , Estim. #Rows = 2.475.675 )
    Estim. CPU-Costs = 41.623.110.298 Estim. IO-Costs = 640.056
    Memory Used KB: 21.261.312
    Access Predicates
    --   4 TABLE ACCESS BY INDEX ROWID COEP
    ( Estim. Costs = 502.319 , Estim. #Rows = 2.475.675 )
    Estim. CPU-Costs = 19.972.892.425 Estim. IO-Costs = 499.997
    3 INDEX RANGE SCAN COEP~1
    ( Estim. Costs = 149.180 , Estim. #Rows = 2.475.675 )
    Search Columns: 3
    Estim. CPU-Costs = 16.424.997.869 Estim. IO-Costs = 147.270
    Access Predicates Filter Predicates
    5 TABLE ACCESS FULL COBK
                      ( Estim. Costs = 100.134 , Estim. #Rows = 20.711.400 )
                      Estim. CPU-Costs = 16.102.369.535 Estim. IO-Costs = 98.262
                      Filter Predicates

Maybe you are looking for

  • What software do I need to purchase/subscribe?

    I'm planning to do the $143.88 subscription for PLUS on FormsCentral.  I will be creating probably no more than 15 forms per year.  I will need to create forms, maintain them, do reports and gather data on membership information, registration of even

  • Can't upload any files from my mac to the Internet

    I am new to Macbook, and this obviously never happened before So, the problem is: I can't upload any files from my Mac anywhere (Facebook, Instagram, etc) I can't attach files to e-mails. any files that are on my desktop, folders - they just turn in

  • Global Navigation - Sites (no longer offers the 'scroll' option when there are many sub sites)

    Hi, just completed a test migration (database attach method) to SharePoint 2010 from MOSS 2007. We have many subsites in the SiteDirectory and in MOSS2007 they would all show when you mouse over the 'Sites' TAB on the page. In 2007, when the list was

  • Urgent:how to add two table regions to one query region

    hello In my page a serach region is there and for that region i need to add two tables and two are based on two different view objects.how can i implemnet this thing please let me know. advance thanks

  • Extensions crash Extension Manager

    I'm trying to install a couple of extensions for DW CS4. At first I thought there was something wrong with the extension, so I tried another, and they both crash Extension Manager. I upgraded from CS2 to CS4 Master Collection. Adobe first told me I n