Creating a Relation between two Blocks - the Join Condition [SOLVED]

Hi. I'm trying to create a Relation between my TTMS_Audit table and my Bundle_Exceptions table. This is the join condition:
ttms_audit.primary_key_values = bundle_exceptions.project_cd||','||bundle_exceptions.bundle||','||bundle_exceptions.exception_cd
And I get the following error:
FRM-15004: Error while parsing join condition
Does anyone know if my concatenated values in the Join Condition are allowed? Can I even do this? Is there a logical work around?

Got it.
I first created the concatenated values as a non-base table item on my form:
:NBT_PRIMARY_KEY_VALUES := :bundle_exceptions.project_cd||','||:bundle_exceptions.bundle||','||:bundle_exceptions.exception_cd;
Then my join condition simply became:
ttms_audit.primary_key_values = bundle_exceptions.nbt_primary_key_values

Similar Messages

  • How to create an relation between two block

    Oracle forms 6i
    Hai All
    I have created a form in that i have four button ADD, QUERY, SAVE ,EXIT.
    I have two block named Leader and members.
    Four fields in leader block namely name , codeno, deptcode, unitid.
    When i pressed query button and the cursor goes to name field in leader when i enter the name of leader and click
    enter i gives the codeno, deptcode and unitid of the leader_name.
    so now i have created another block in tabular structure to bring the members in the same deptcode that belongs to Leader_name.
    So pls tell me the steps how to create the relation between these two blocks.
    when i enter the leader_name and gives enter it needs to bring the codeno, deptcode, unitid and
    I also need to gives the members in that deptcode..
    Thanks In Advance
    Srikkanth.M

    If it is possible to create relationship with one table No.
    Or
    I have created a pre-Query in the detali block and my code is
    set_block_property ('block_name', default_where, 'deptcode = (select deptcode from emplmaster where name like :block_in_which_leader_name.leader_name_field');BTW no need of joining here it can be solve by set the block's where clause as u said in ur earlier post above. Just changing the little bit this statement and then try.
    If numeric
    set_block_property ('block_name', default_where, 'deptcode = '||:block_in_which_leader_name.leader_name_field);
    Otherwire
    set_block_property ('block_name', default_where, 'deptcode = '''||:block_in_which_leader_name.leader_name_field||'''');-Ammad

  • Create relation between two blocks which are based on different procedure

    Hiii
    How to create relation between two blocks which are based on different stored procedures in Oracle form??
    Pradhyumn Sharma

    hiii,
    I selected the common key deptno in both procedure.
    I created a relation between both procedure. but when i compile the form it give an error in ON-CHECK-DELETE-MASTER. My procedure are
    ==================================
    PACKAGE emp_pkg AS
    TYPE emprec IS RECORD(
    empno asg_emp.empno%type,
    ename asg_emp.ename%type,
    job asg_emp.job%type,
    sal asg_emp.sal%type,
    deptno asg_emp.deptno%type);
    TYPE emptab IS TABLE OF emprec INDEX BY BINARY_INTEGER;
    PROCEDURE empquery(block_data IN OUT emptab, p_deptno IN NUMBER);
    end;
    ====================================
    PACKAGE dept_rec IS
    type rec is record(dname asg_dept.dname%type,
         loc     asg_dept.loc%type,
         deptno asg_dept.deptno%type);
    type deptrec is table of rec index by binary_integer;
    PROCEDURE dept_rec1(block1 in out deptrec);
    END;
    ===================================
    In ON-CHECK-DELETE-MASTER
    CURSOR BLOCK9_cur IS
    SELECT 1 FROM dept_rec.dept_rec1 d
    WHERE d.DEPTNO = :BLOCK6.DEPTNO;
    identifier dept_rec.dept_rec1 must be declared.
    Regards
    Pradhyumn

  • Using built-in function in the definition of relation between two blocks...

    Hi ,
    Is it possible to define a relation between two form blocks(db based) ....
    I have a master table such as:
    table : strdet (cols: ms varchar2(10) , det varchar2(10))
    materialized view : mv (cols : det varchar2(10) , sum_a number(5), sum_b number(5))
    and data:
    strdet
    ms                   det
    1                     1.1
    1                     1.2
    1.1                  1.1.1
    1.1                  1.1.2
    1.1.1               1.1.1.1
    e.t.c.
    and for the mv
    det               sum_a     sum_b
    1                   500        300
    1.1                100        200
    1.2                540        150
    e.t.c.
    I have tried some versions of relations so as to create a master-detail relation(in reality , the two blocks are connected via ms.det
    ->mv.det...  but the relation is one-to-one....) . I want a result such as:
    Master block
    1.1
    Detail Block
    1.1.1
    1.1.2
    e.t.c.Is it possible somehow...????
    Note: I use Dev6i and Dev10g ...
    Thanks ,,,
    Sim

    I think you'll have to use a from-clause-query for the detail block. If you join the master table and the mv on the DET column then you can give each row in the detail block a MS column (from the master table) which you can use in the relation.

  • Set a relation between two or more images

    Is it possible to create a relation between two or more images?
    For example: We have an image in three versions (rgb, cmyk, gray). If I find one of these, I would like to klick on a button like "show correspondend images". So I can see all versions of this images we ever saved.
    Any idea?
    Best regards!
    Roman

    I don't think Lightroom handles cmyk images.
    For rgb and gray, you can stack the images, or make the gray from a virtual copy of the rgb. In this way, simply unstacking the images results in your requested "show corresponding images".

  • SQL Join between two tables two columns, but the data in the join condition could be null.

    hello all,
    can anyone help me write an outer join b/n the two tables below. The joining condition has if's and or's.
    table 1 has 2 million rows, table 2 is very small
    TABLE1
    CUSTOMER_ID
    CITY
    STATE
    1
    SKOKIE
    IL
    2
    CHICAGO
    IL
    3
    CARY
    NC
    ERIE
    PA
    PHILLY
    PA
    CHARLOTE
    NC
    2 MILLION
    CITYXY
    STATEX
    TABLE2
    CITY
    STATE
    CONTACT
    IL
    OJO
    ERIE
    BRITT
    PA
    MIKE
    PITTSBURG
    PA
    HILTON
    N043
    TAT
    affi
    B
    affi
    R
    b0b
    Q
    b0b
    CHARLOTE
    NC
    b0b
    problem :: for all the data in table1, I need to find out the CONTACT from table 2 And the join condition would be as below
    1. either both TABLE1.CITY=TABLE2.CITY AND TABLE1.STATE=TABLE2.STATE and get CONTACT
    OR
    2. TABLE1.CITY=TABLE2.CITY AND TABLE2.STATE IS NULL  and get the value of CONTACT
    OR
    3. TABLE1.STATE=TABLE2.STATE AND TABLE2.CITY is null and get the value of CONTACT
    I need a query like this
    SELECT A.CUSTOMER_ID, A.CITY, A.STATE, B.CONTACT
    FROM TABLE1 A, TABLE2 B
    WHERE (join condition fitting in the 3 condition mentioned above)

    Dear OP,
    Do you want something like this?
    > with t1 as
    -- Start of SAMPLE DATA
    (select 1 CUSTOMER_ID, 'SKOKIE' CITY, 'IL' STATE from dual union
    select 2, 'CHICAGO', 'IL'  from dual union
    select 3, 'CARY', 'NC' from dual union
    select 4, 'ERIE', 'PA'  from dual union
    select 5, 'PHILLY', 'PA'  from dual union
    select 6, 'CHARLOTE', 'NC' from dual)
    t2 as
    (select null CITY, 'IL' STATE, 'OJO' CONTACT from dual union
    select  'ERIE', null, 'BRITT'  from dual union
    select null, 'PA', 'MIKE'  from dual union
    select 'PITTSBURG', 'PA', 'HILTON'  from dual union
    select 'N043', 'TAT', 'affi'  from dual union
    select null,'B', 'affi'  from dual union
    select null,'R', 'b0b'  from dual union
    select null,'Q', 'b0b'  from dual union
    select 'CHARLOTE', 'NC', 'b0b'  from dual
    --- END IF SAMPLE Data
    select * from t1 full outer join t2
    on ( nvl(t1.city,t2.city) = nvl(t2.city,t1.city)
    and nvl(t1.state,t2.state) = nvl(t2.state,t1.state) )
    order by 1,2,3,4
    CUSTOMER_ID CITY     STATE CITY      STATE CONTACT
              1 SKOKIE   IL              IL    OJO    
              2 CHICAGO  IL              IL    OJO    
              3 CARY     NC                           
              4 ERIE     PA    ERIE            BRITT  
              4 ERIE     PA              PA    MIKE   
              5 PHILLY   PA              PA    MIKE   
              6 CHARLOTE NC    CHARLOTE  NC    b0b    
                               N043      TAT   affi   
                               PITTSBURG PA    HILTON 
                                         B     affi   
                                         Q     b0b    
                                         R     b0b    
    12 rows selected
    Elapsed: 00:00:00.112
    Hope this is helpful. If not please let us know what is you desired result (sample) if your data was like above?
    vr,
    Sudhakar

  • How to create a View between two Ztables?

    Hi experts,
    I have two ztables TableA and TableB both has one common field.
    Now Which type of view (Database,Maintanance,Projection or Help) I should create? If so what are the steps I should follow.
    What I suppose to do in Table/Join Condition tab ,View Flds ,Selection Conditions and Maint stsus tab.
    Reply with the detailed steps.
    Thanks in Advance,
    Dharani

    Hi,
    selection of view is depends on the type of requirement you have.
    1. To create the view go to Se11
    2. select the type of the view you required.
    3.Enter the name of the two z table in the tables and click on the relation button  so that it will automatically create the relationship between 2 table.
    4. add the addition condition if required in the join condition.
    5. In view field select the number of the field required to display in the view from both the table.
    6. specify the selection criteria in the to select the values.
    7. In maintenance tab select the appropriate option as per you requirement.
    8. save and activate the view.

  • How to create a relation between to tables

    hi all
    i have two oracle database:one is oratest(sourse),the other is orawh(destination).
    i have a table named hr.jobs in oratest,and a table named hr.test in orawh.
    now i want to create a relation between these two tables to make them synchronized.But i have no idea how to deal with such a case.
    somebody help me please,thanks a lot!!
    Best regards!

    You can use DML_HANDLERS at the apply side and manipulate the LCR's so that when data is inserted on TABLEA at source it can inserted in TABLEB at target.
    More information on DML Handlers are available at oracle documentation.

  • Create view link between two view objects (from programmatic data source)

    Hi Experts,
    Can we create a link between two view objects (they are created from programmatic datasource ; not from either entity or sql query). If yes how to create the link; ( i mean the like attributes?)
    I would also like to drag and drop that in my page so that i can see as top master form and the below child table. Assume in my program i will be only have one master object and many child objects.
    Any hits or idea pls.
    -t

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • Relation between two View

    Hello,
    I have many blocks that based on some views. first every thing is ok when i insert record on them, but when i do an execute query i'm able to navigate between blocks in on way like (next, next) but when do previous i missed the sync between the blocks. So i decided to make some relations between these blocks. i have a main block that i take for my master and i constructed the relations master-details between my main block and others.
    now when i run form i received that error ''FRM-30415 the details block of the relation is a control block'', and it give me the relation's name. I have to mention that the QUERY_DATA_SOURCE_NAME is from clause for every blocks.
    as i said the blocks are based on views.
    could someone help me?

    Is the "Database Data Block" property of the detail block "Yes"?

  • How to create radio button between two slection screen

    hello all.
    could you please guide me how to create radio button between two SELECTION-SCREEN  in screen painter.
    Thank you,
    srinivas

    hi
    SEE THIS CODE
    REPORT  ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
    ******DATA DECLARATIONS**********
    DATA : BEGIN OF IT_PLANT OCCURS 0,
            MATNR LIKE MARA-MATNR,
            WERKS LIKE MARC-WERKS,
            PSTAT LIKE MARC-PSTAT,
            EKGRP LIKE MARC-EKGRP,
           END OF IT_PLANT.
    DATA : BEGIN OF IT_PONO OCCURS 0,
            EBELN LIKE EKKO-EBELN,
            EBELP LIKE EKPO-EBELP,
            MATNR LIKE EKPO-MATNR,
            WERKS LIKE EKPO-WERKS,
            LGORT LIKE EKPO-LGORT,
           END OF IT_PONO.
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R4 RADIOBUTTON GROUP G2.
    SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    <b>rEWARD IF USEFULL</b>

  • What is the Join condition between mtl_system_items_b and mtl_onhand_quantities_detail

    Hi,
    What is the Join condition between mtl_system_items_b and mtl_onhand_quantities_detail?
    Thanks & Regards,
    Hari Babu

    Please see the query in (Consolidate Onhand Quantity /Sum Quantity Zero in MTL_ONHAND_QUANTITIES_DETAIL (MOQD) / Concurrent Program Consolidate Inventory Onhand Quantities / Datafix for 0 Quantity Displayed For Finished Goods (Doc ID 353345.1)), is shows how to join those 2 tables.
    http://etrm.oracle.com
    Thanks,
    Hussein

  • How to check relation between two tables in same database

    How to check relation between two tables in same database using Oracle SQL developer. Version 2.1.1.64

    Hi,
    Try this,
    SELECT   cons.owner AS child_owner, cons.table_name AS child_table,
             cons.constraint_name constaint_name,
             cons.constraint_type constraint_type, col.owner parent_owner,
             col.table_name parent_table, col.column_name column_name
        FROM dba_cons_columns col, dba_constraints cons
       WHERE cons.r_owner = col.owner
         AND cons.r_constraint_name = col.constraint_name
         AND col.owner = 'MY_USER'
    ORDER BY child_table;Thanks,
    Shankar

  • 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

  • Now, Enterprise Program at the join conditions, company size (over 500) is irrelevant?

    Now, Enterprise Program at the join conditions, company size (over 500) is irrelevant?Now, Enterprise Program at the join conditions, company size (over 500) is irrelevant?

    You can join the iOS Developer Enterprise Program with any company size, at least in the USA. You will, however, need to have a Dun & Bradstreet (D&B) Data Universal Numbering System (DUNS) number. If you don't, you can apply for one which can take up to 30 days (unless you expedite).
    More information is available on the program details at www.apperian.com/technote/Apple_iOS_Enterprise_Developer_Program

Maybe you are looking for

  • Changing fonts in Screen painter

    Hi experts, I have a screen, that displays information. I need to display the information in a different font than usual, e.g. Bold or Italic. Could you please let me know the ways to change the FONTS in screen painter. Is it feasible to do so? Thank

  • Spl characters

    Hi i wan tto print special characters in smartforms. & * ( ) like those. how to do that?

  • Character animation question

    Hi all, i need some help to try to understand which technique was used to do this video "puppet", http://www.youtube.com/watch?v=WRNd6K8kS4M i mean witch techniques i can use to reach this result? Someone tell me that adobe guys done this kind of cha

  • Assign a process chain into proper component

    Hi Experts, I have problem relating ot process chains onece create aprocess chain it is automatically assigned in to unassigned component , how can i assign into proper components Thanks in advance Amruth.

  • Unsent Messages Flood Screen When Opening Mail

    I've been using Entourage for mail with Bellsouth, but I frequenly have a problem with several hundred messages that I've already read downloading again. So...I'm thinking of switchin to Mail. But when I open Mail to give it a test the screen floods