Which trigger to use for insert data into db table in Forms

Hi,
My form is current having a database block with table reference. When enter data into form field and click on save button. Automatically the record is inserted into database table.
I want to make this as manual insert. I changed the data block to a non-database. Where should i write the insert statement in order to insert data into table.
Is it Key-commit trigger at form level?
Please advise.
Thanks,
Yuvaraaj.

Hi Yuvaraaj.
Insert should happen when we click on the save which is inbuilt in the form. In this case where should i write the insert statement.Forms in built save commit's the form data where block is based on database not non database.
@2nd reply
Ypu are right. The reason i chnaged the database block to non-database is Currently i have a database block with form field canvas which insert only 1 record in to >table when we click on standard save button. The requirement was to add a field called CHANNEL which should have multiple values displayed. (i created this channel >field in a seperate datablock (non database) and used the same canvas.) When we insert data in all fields (single record) and channel we should be able to selected >multiple channel (say A,B and C) when we click on save then 3 records should be inserted in to the table which looping values for each channel. This was the actual >requirement and this is the reason why iam changing the block to non-database block.You are talking about two blocks.. 1. Master block and 2. Details block name channel
You are inserting one record in master block then insert 3 record name A,B,C for that master record.
Now you want master record should insert to each A,B,C record. Means
'how are you' --master record
and you want
'A'- 'how are you'
'B'- 'how are you'
'C'- 'how are you'OR
?Ok. If you want master record save in database and then want to save non-database(channel) data into database USE Post-Insert trigger at block level and do the rest.
Hope this helps...
Hamid
Mark correct/helpful to help others to get right answer(s).*
Edited by: HamidHelal on Jan 26, 2013 1:20 AM

Similar Messages

  • How to use record type for inserting data into a table

    I've read through the web the following tip:
    "When working with a large number of columns, using variables of type RECORD is a better approach. With this approach, you do not have to list anything in the INSERT statement, because you are inserting a variable into the table that is defined as a row from the same table."
    I usually define a variable as
    r_mytable     mytable%ROWTYPE;
    and inside my procedure I'll set the fields I need as
    r_mytable.field1 := 1;
    r_mytable.field3 := 7;
    and then I perform the insert as
    insert into mytable
    (field1,
    field3)
    values
    (r_mytable.field1,
    r_mytable.field3);
    According to the tip I've copied above, how can I use the TYPE RECORD of pl/sql for achieving the same result but perhaps in a smarter way?
    Thanks in advance!

    Hi,
    Are you looking for this?
    SQL> create table table1 (id number, descr varchar2(30));
    Table created
    SQL>
    SQL> DECLARE
      2   my_rec table1%rowtype;
      3  BEGIN
      4   my_rec.id := 1;
      5   my_rec.descr := 'TEST';
      6   insert into table1 values my_rec;
      7  END;
      8  /
    PL/SQL procedure successfully completed
    SQL> select * from table1;
       ID DESCR
        1 TESTWorks with UPDATE too :
    SQL> DECLARE
      2   my_rec table1%rowtype;
      3  BEGIN
      4   my_rec.id := 2;
      5   my_rec.descr := 'TEST2';
      6   update table1 set row = my_rec where id = 1;
      7  END;
      8  /
    PL/SQL procedure successfully completed
    SQL> select * from table1;
       ID DESCR
        2 TEST2

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All
    Please let me know Which CKM is used for moving data from Oracle to delimited file ?
    Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

    Addy,
    A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
    Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
    Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
    HTH

  • How to insert data into two tables at once using XSJS

    Hello Experts,
    My requirement is to insert data into two tables at once. I have a XS JS app and want to update these tables via xsjs. How can I do this ?
    Is there any mechanism like sql 'transactions' also in Hana ? If yes, how can I call it via xsjs ? If not, what are the ways to populate two different tables at once.
    Please advice. Any help is really appreciated.
    Thanks !

    There is nothing special about inserting into two tables at once in XSJS. Just issue two separate SQL Statements.  Don't execute the COMMIT until after both commands.  That way they are all one transaction.

  • How to insert data into a table only when data has changed its value (when compared to the previous inserted value)

    I wish to insert data into a table only when the value of the inserted data has changed. Thus, in a time series, if the value of the data at time, t-1, is 206 then if the data to be inserted at time t is 206, then it is skipped (not entered).
    If the value of the data at time t+1 is 206, it is skipped also; until the value changes, so if the value at t+1 was 205, then that would be inserted, and if at time t+2 the data is 206, it would be inserted too.
    What is the best way to do it without increasing overheads?

    This view works:
    SELECT
    i.IDNO,i.[Date],i.[Level]
    FROM
    mytable i
    INNER
    JOIN mytable
    d
    ON
    d.IDNO
    = i.IDNO-1
    WHERE
    i.[Level]
    <> d.[Level]
    on this mytable below.  A trigger could be quite useful here although I am cautious using them. However I wish to avoid the overhead by not having a temp table (which could be sizable).  mytable below
    should give 3 lines. The IDNO is an identity column.
    IDNO
    Item
    Date
    Level
    1
    X24
    12/23/13 10:41
    22996
    2
    X24
    12/23/13 10:41
    22996
    3
    X24
    12/23/13 9:21
    23256
    4
    X24
    12/23/13 9:21
    23256
    5
    X24
    12/23/13 9:22
    23256
    6
    X24
    12/23/13 9:22
    23256
    7
    X24
    12/23/13 9:22
    22916

  • Inserting Data into nested table

    I am exploring the differences between OBJECT & RECORD.
    As i am still in process of learning, I found that both are structures which basically groups elements of different datatypes or columns of different datatypes, one is used in SQL and other is used in PL/SQL, please correct me if I am wrong in my understanding.
    Below i am trying to insert data into an table of type object but i am unsuccessful can you please help.
    CREATE OR REPLACE type sam as OBJECT
    v1 NUMBER,
    v2 VARCHAR2(20 CHAR)
    ---Nested Table---
    create or replace type t_sam as table of sam;
    --Inserting data----
    insert into table(t_sam) values(sam(10,'Dsouza'));
    Error Message:
    Error starting at line 22 in command:
    insert into table(t_sam) values(sam(10,'Dsouza'))
    Error at Command Line:22 Column:13
    Error report:
    SQL Error: ORA-00903: invalid table name
    00903. 00000 -  "invalid table name"
    *Cause:   
    *Action:

    Ariean wrote:
    So only purpose of equivalent SQL types concept of nested tables is to use them as one of the data types while defining an actual table?
    Sort of - you can definitely use them for more than just "defining an actual table". (I'm fairly certain you could pass a nested table into a procedure, for example - try it, though - I'm not 100% sure on that - it just "makes sense". If you can define a type, you can use it, pass it around, whatever.).
    Ariean wrote:
    And that nested table could be a record in SQL or an Object in PLSQL or just simple datatype(number,varchar etc)?
    Nested tables are just like any other custom data type. You can create a nested table of other data types. You can create a custom data type of nested tables.
    It could get stupidly .. er, stupid O_0
    CREATE TYPE o_myobj1 AS object ( id1   number, cdate1  date );
    CREATE TYPE t_mytype1 AS table of o_myobj1;
    CREATE TYPE o_myobj2 AS object ( id2   number,  dumb  t_mytype1 );
    CREATE TYPE t_dumber AS table of o_myobj2;
    O_0
    Ok, my brain's starting to hurt - I hope you get the idea
    Ariean wrote:
    Secondly is my understanding correct about OBJECT & RECORD?
    I can't think of any benefit of describing it another way.

  • How do I run a database procedure that inserts data into a table from withi

    How do I run a database procedure that inserts data into a table from within a Crystal report?
    I'm using CR 2008 with an Oracle 10i database containing a number of database tables, procedures and packages that provide the data for the reports I'm developing for my department.  However, I'd like to know when a particular report is run and by whom.  To do this I have created a database table called Report_Log and an associated procedure called prc_Insert_Entry that inserts a new line in the table each time it's called.  The procedure has 2 imput parameters (Report_Name & Username), the report name is just text and I'd like the username to be the account name of the person logged onto the PC.  How can I call this procedure from within a report when it's run and provide it with the 2 parameters?  I know the procedure works, I just can't figure out how to call it from with a report.
    I'd be grateful for any help.
    Colin

    Hi Colin, 
    Just so I'm clear about what you want: 
    You have a Stored procedure in your report.  When the report runs, you want that same procedure to write to a table called Report_Log. 
    If this is what you want the simple answer is cannot be done.  Crystal's fundamental prupose is to read only, not write.  That being said, there are ways around this. 
    One way is to have a trigger in your database that updates the Report_Log table when the Stored Procedure is executed.  This would be the most efficient.
    The other way would be to have an application run the report and manage the entry. 
    Good luck,
    Brian

  • Insert data into multiple tables

    Hi all,
    I've a requirement where i need to insert data into multiple tables using PL/SQL procedure
    Procedure should have two parameters
    1. Table Name (parameter1)
    2. Data (parameter2)
    Based on these two parameters i need to insert data into table (parameter1) using data (parameter2)
    ex:
    Procedure insert_data (p_table  IN VARCHAR2
                          ,p_data   IN -- what should be the datatype?
    IS
    l_statement VARCHAR2(2000);
    BEGIN
    -- insert data into tables
    INSERT INTO p_table
    values (....);
    END insert_data;Thanks in advance!!

    BEDE wrote:
    Amen to that!
    So, I believe a better approach would be the following...
    Suppose you have N datafiles with the same structure, and you wish to insert into the database the data from all those files.
    For that, you should have a single table, named, say incoming_file_data, which should be structured more or less like below:
    create table incoming_file_data (
    filename varchar2(250) not null -- name of the file inserted from
    ,file_time timestamp -- timestamp when the data was inserted
    ,... -- the columns of meaningful data contained in the lines of those files
    );And you will insert the data from all those files in this table, having normally one transaction for each file processed, for otherwise, when shit happens, some file may only get to be partially inserted into the table...
    Maybe one good approach would be to create dynamically an external table for the file to be loaded, and then execute dynamically insert select into the table I said, so that you will have only one insert select for one file instead of using utl_file... RTM on that.If the file structures are the same, and it's just the filename that's changing, I would have a single external table definition, and use the alter table ... location ... statement (through execute immediate) to change the filename(s) as appropriate before querying the data. Of course that's not scalable if there are multiple users intenting to use this, but generally when we talk about importing multiple files, it's a one-user/one-off/once-a-day type of scenario, so multi-user isn't a consideration.

  • Insert data into linked table

    Problem when you try to insert data into linked table.
    I made the view with all linked table columns (field1 is PK, field2, field3......) plus new primary key field "field1_PK" for tabular form wizard primary key field definition. After submit data on tabular form appears:
    "Error in mru internal routine:ORA-2001:Error in MRU: row=1,ORA-00957: duplicate column name ORA-02063:preciding line from "SHEMA_NAME", insert into "field1","field1_PK","field3",........) values (:b1,:b2,:b3.........)
    Error Unable to process update.
    Is it bug too?

    Hi,
    Have you tried to do your updates using an INSTEAD OF TRIGGER on your view? An INSTEAD OF TRIGGER allows you to update a non-updateable view.
    The following book contains an excellent introduction to this topic.
    "Oracle PL/SQL for Dummies"
    written by Rosenblum and Dorsey
    published by Wiley Publishing Inc.
    The following book is also excellant reference that deals with INSTEAD OF TRIGGERS.
    "Oracle PL/SQL programming
    written by Steven Feuerstein
    published by O'Reilly
    Hope this helps.
    Cheers,
    Patrick Cimolini

  • How to insert data into a table from an xml document

    using the XmlSql Utility, how do I insert data into a table from an xml document, using the sqlplus prompt.
    if i use the xmlgen.insertXML(....)
    requires a CLOB file, which i dont have, only the xml doc.
    Cant i insert directly from the doc to the table?
    the xmlgen examples I have seen first convert a table to a CLOB xmlString and then insert it into another table.
    Isnt there any other way?

    Your question is little perplexing.
    If you're using XML SQL Utility from
    the commandline, just use putXML.
    java OracleXML putXML
    null

  • Concurrent program Do not Insert Data Into Interface Tables!

    Hi there:
    I am facing a problem with my concurrent program whenever I execute my stored procedure in SQL/PLUS it's work fine data load into the AP_INTERFACE/LINES.
    Whenever I try to load data through my concurrent programs it doesn't load into AP_INTERFACE/LINES and concurrent request successfully completed but don't load data.
    This is code query take a look.
    CREATE OR REPLACE PROCEDURE CINDNOTE(errbuff OUT VARCHAR2,
    retcode OUT NUMBER,
    p_org IN VARCHAR2,
    p_from_date IN VARCHAR2,
    p_to_date IN VARCHAR2)
    --p_org_id IN NUMBER,
    *Module Name AP DEBIT NOTE INTERFACE
    *Description This Package contains PL/SQL to support the
    * the DEBIT NOTE Inward Interface to AP
    *Author Zeeshan Hussain Siddiqui
    *Date 15 May, 2007
    *Modification Log
    *Developer Version Date Description
    *Zeeshan Hussain Siddiqui 1.0.0.1 15-MAY-2007 This interface integrated to AP
    AS
    ap_sequence NUMBER;
    reject_debit CHAR:='D';
    --v_invoice_lookup_code VARCHAR2(25):='Debit Memo';
    --v_negative_amt1 CHAR:='(';
    --v_negative_amt2 CHAR:=')';
    v_code VARCHAR2(250):='01.01.000.10450.00.00000';
    v_description VARCHAR2(250);
    V_rma_no VARCHAR2(10):='RMA#';
    from_date DATE;
    to_date DATE;
    CURSOR rejected_cur
    IS
    SELECT HR.full_name,ORG.organization_code InvOrg,
    ROUND(NVL((CR.unit_price*quantity_rejected*-1)+NVL(CR.gst_amount*-1,0),0),2)
    Invoice_Amt,ROUND(NVL(CR.unit_price*quantity_rejected*-1,0),2) AMT,ROUND(NVL(CR.gst_amount*-1,0),2) GST_AMT,
    POS.vendor_site_code,CR.date_of_disposition disposition_date,POS.vendor_site_id,CR.organization_id,
    (CASE WHEN CR.organization_id =305 THEN '01' WHEN CR.organization_id =304 THEN '01'
    WHEN CR.organization_id =450 THEN '07' WHEN CR.organization_id =303 THEN '02' ELSE '00' END)||'.'||
    (CASE WHEN CR.organization_id=305 THEN '02' ELSE '01' END)||'.000.'||(CASE WHEN CR.disposition=4
    THEN '10430' WHEN CR.disposition=6 THEN '10433' WHEN CR.disposition=3 THEN '10430'
    ELSE '00000' END)||'.'||'00.00000' Distribution_Code,
    PO.vendor_id,CR.reject_number,CR.disposition,CR.po_number,CR.unit_price,CR.rework_po_no,
    CR.shipping_memo, PO.vendor_name,
    CR.debit_note_number Invoice_Number,CR.account_number,CR.currency_code,
    CR.shipped_via,CR.vendor_rma,POC.first_name||' '||POC.last_name Contact,POS.phone,
    SUBSTR(POS.Fax_Area_Code,1,10)||'-'||SUBSTR(POS.Fax,1,20) Fax_Number,
    SUBSTR(POS.Address_Line1,1,100) Address,
    SUBSTR(POS.City,1,25)||' '||SUBSTR(POS.State,1,20)||' '||SUBSTR(POS.Province,1,20)"City/State/Prov"
    FROM apps.hr_employees hr,apps.mtl_system_items mtl,
    apps.org_organization_definitions ORG,
    apps.cin_rejects CR,apps.po_headers_all POH,
    apps.po_vendors PO,apps.po_vendor_contacts POC,apps.po_vendor_sites_all POS
    --WHERE TRUNC(CR.date_of_disposition) BETWEEN from_date AND to_date
    WHERE To_char(CR.date_of_disposition,'j') BETWEEN to_char(from_date,'j') AND to_char(to_date,'j')
    AND CR.organization_id =p_org_id ORG.organization_id
    AND ORG.organization_code =p_org
    AND POH.segment1 =CR.po_number
    AND HR.employee_id =MTL.buyer_id
    and CR.organization_id =MTL.organization_id
    AND CR.INVENTORY_ITEM_ID =MTL.INVENTORY_ITEM_ID
    AND PO.vendor_id =POH.vendor_id
    AND POH.vendor_contact_id =POC.vendor_contact_id
    AND POH.vendor_site_id =POS.vendor_site_id
    AND POS.invoice_currency_code =CR.currency_code
    AND CR.disposition IN(3,4,6);
    BEGIN
    from_date:=FND_CONC_DATE.STRING_TO_DATE(p_from_date);
    to_date:=FND_CONC_DATE.STRING_TO_DATE(p_to_date);
    FOR rejected_rec IN rejected_cur
    LOOP
    IF rejected_rec.vendor_rma IS NULL THEN
    v_description:=rejected_rec.shipping_memo||' '||rejected_rec.full_name;
    ELSIF rejected_rec.shipping_memo IS NULL THEN
    v_description:=v_rma_no||rejected_rec.vendor_rma||' '||rejected_rec.full_name;
    ELSIF rejected_rec.vendor_rma IS NULL AND rejected_rec.shipping_memo IS NULL THEN
    v_description:=rejected_rec.full_name;
    ELSIF rejected_rec.vendor_rma IS NOT NULL AND rejected_rec.shipping_memo IS NOT NULL
    AND rejected_rec.full_name IS NOT NULL THEN
    v_description:=v_rma_no||rejected_rec.vendor_rma||' '||rejected_rec.shipping_memo||'
    '||rejected_rec.full_name;
    END IF;
    SELECT AP_INVOICES_INTERFACE_S.NEXTVAL
    INTO ap_sequence
    FROM DUAL;
    INSERT INTO AP_INVOICES_INTERFACE
    INVOICE_ID
    ,VENDOR_ID
    ,INVOICE_CURRENCY_CODE
    ,DESCRIPTION
    ,INVOICE_NUM
    ,VENDOR_NAME
    ,VENDOR_SITE_ID
    ,VENDOR_SITE_CODE
    ,INVOICE_DATE
    ,SOURCE
    ,INVOICE_AMOUNT
    ,INVOICE_TYPE_LOOKUP_CODE
    VALUES
    ap_sequence
    ,rejected_rec.vendor_id
    ,rejected_rec.currency_code
    ,v_description
    ,reject_debit||rejected_rec.reject_number
    ,rejected_rec.vendor_name
    ,rejected_rec.vendor_site_id
    ,rejected_rec.vendor_site_code
    ,rejected_rec.disposition_date
    ,'REJECTS'
    ,rejected_rec.Invoice_Amt
    ,'CREDIT'
    IF rejected_rec.GST_AMT <0 THEN
    INSERT INTO AP_INVOICE_LINES_INTERFACE
    INVOICE_ID
    ,LINE_TYPE_LOOKUP_CODE
    ,DIST_CODE_CONCATENATED
    ,ITEM_DESCRIPTION
    ,AMOUNT
    VALUES
    ap_sequence
    ,'TAX'
    ,v_code
    ,v_description
    ,rejected_rec.GST_AMT
    END IF;
    INSERT INTO AP_INVOICE_LINES_INTERFACE
    INVOICE_ID
    ,LINE_TYPE_LOOKUP_CODE
    ,DIST_CODE_CONCATENATED
    ,ITEM_DESCRIPTION
    ,AMOUNT
    VALUES
    ap_sequence
    ,'ITEM'
    ,rejected_rec.Distribution_Code
    ,v_description
    ,rejected_rec.AMT
    COMMIT;
    END LOOP;
    END;
    Please reply me ASAP.
    Thanks,
    Zeeshan

    Hi All,
    I have created a package with a procedure. This procedure is used for inserting records into the custom tables created by me. When I am running the script in back end, it is running in reasonable time and giving back the desired output.
    But, as per requirement, I have to run this package-procedure via a concurrent program. When I am submitting the request, it is taking hours to complete. Also I am using BULK COLLECT and FORALL(Since the number of records are more than 3 lacs) and firing COMMIT after every FORALL. But when I am quering the table, after an hour or so, no rows are returned.
    Please help and reply asap.
    Thanks in Advance....!!

  • Its very urgent:how to insert data into database tables

    Hi All,
    I am very new to oaf.
    I have one requirement data insert into database tables.
    here createPG having data that data insert into one custom table.
    but i dont know how to insert data into database tables.
    i wrote the code in am,co as follows.
    in am i wrote the code:
    public void NewoperationManagerLogic()
    ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
    OADBTransaction oadbt=getOADBTransaction();
    if(!vo1.isPreparedForExecution())
    vo1.executeQuery();
    Row row=vo1.createRow();
    vo1.insertRow(row);
    in createPG processrequest co:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.NewoperationManagerLogic();
    process form request:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.getParameter("Submit")!=null)
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.getOADBTransaction().commit();
    please help with an example(sample code).
    its very urgent.
    thanks in advance
    Seshu
    Edited by: its urgent on Dec 25, 2011 9:31 PM

    Hi ,
    1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
    2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
    3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
    You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
    Thanks
    Pratap

  • Insert data into nested tables

    Hi,
    Can someone please advice how can I insert data into nested tables using APEX.
    I have a table "employee" and a column addresses of type address_table_type object which has address1, address2, address3 columns. I want to create form in APEX that will collect address1, address2, address3. I wonder how to do this? should the item be based in database item? if yes then how can I point to the column of address_table_type
    Thanks
    --Aali                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Can you post your tabB type, sample data, and your exact insert statement?
    Is it overwriting or not commiting the inserts?
    Have you traced your session to see what is happening?

  • Insert data into fact table from source database tables

    here i try to insert data into fact table from source database tables here is the query 
    ALTER procedure [dbo].[facttable]
    as
    insert into [pp dw].dbo.Dimfact(Prod_ID,Production_ID,Material_ID,Equip_ID,WC_ID,Recipe_ID,Quantity,costprice)
    select Products.[Product ID],[Production ID],Materials.[Material ID],[Equipment ID],[Work Centre ID],[Recipy ID],Quantity,[cost price]
    from
    [PRODUCTION PLANNING 2].dbo.[Products],
    [PRODUCTION PLANNING 2].dbo.[Production Detail],
    [PRODUCTION PLANNING 2].dbo.[Material category],
    [PRODUCTION PLANNING 2].dbo.[Materials],
    [PRODUCTION PLANNING 2].dbo.[Equipment],
    [PRODUCTION PLANNING 2].dbo.[Working Centre] ,
    [PRODUCTION PLANNING 2].dbo.[Recipies]
    where
    Products.[Product ID] in (13, 14, 15, 16, 17) and
    [Production Detail].[Production ID] in (1, 2, 3) and
    [Materials].[Material ID] in (1, 2, 3, 4, 5) and
    [Equipment].[Equipment ID] in (1, 2, 3, 4) and
    [Working Centre].[Work Centre ID] in (1, 2, 3) and
    [Recipies].[Recipy ID] in (1, 2, 3) and
    [Material category].[Category ID] in (8, 9, 10, 11, 12, 13)
    and when i execute query it shows me error 
    The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Dimfact_Dimproduct". The conflict occurred in database "pp dw", table "dbo.Dimproduct", column 'Prod_ID'.
    ERD IS
    HOW TO SOLVE THIS PROBLEM?

    I cant see any join conditions in your query posted. Whats the purpose of the query above. It will just bring you a cartesian product (cross join) of tables involved subjected to filters. Are you sure this is the correct query?
    The error you're getting may be because you've not yet populated DimProduct or may be because of logic you used in popultaing DimProduct causing it to miss some records which is what query is referring to in above case.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Inserting data into multiple tables in jdbc

    I am doing on file to jdbc. Now I got a requirement to insert data into multiple tables on the receiver side. How can I do this ?

    Hi,
    you are going to insert data into 4 tables in a sequence one after another , I see three options.
    1) Stored procedure and 2) creating 4 statement data structure (one for each table)
    The third option is writing a SQL with join for the 4 tables and use action command = SQL_DML. Example as follows....
    Write SQL code and place it in access tag. Pass values for the columns using key tag...
    <stmt>
        <Customers action="SQL_DML">
          <access> UPDATE Customers SET CompanyName=u2019$NAME$u2019, Address=u2019$ADDRESS$' WHERE CustomerID='$KEYFIELD$u2019
          </access>
          <key>
            <NAME>name</NAME>
            <ADDRESS>add </ADDRESS>
            <KEYFIELD>1</KEYFIELD>
          </key>
        </Customers>
      </stmt>
    Refer this http://help.sap.com/saphelp_nwpi71/helpdata/en/44/7b7855fde93673e10000000a114a6b/content.htm
    Hope this helps ....

Maybe you are looking for