How to use a procedure as source in mapping?

My procedure has a nested table out parameter. I link the nested table parameter to Varray Iterator operator as source. But validation failed. Error message as follows.
VLD-1111: This mapping cannot be generated because it contains a combination or sequence of operators that are invalid.
An invalid combination of operators prevents the generation of code in a single implementation language (PL/SQL code, or SQL*Loader code, or ABAP code). For example, you may have included a SQL*Loader only operator such as the Data Generator in a mapping with a PL/SQL implementation type. If you designed the mapping to generate PL/SQL code, an invalid combination or sequence of operators prevents the generation of PL/SQL code in any of the operating modes(set based, row based, row based target only). If the mapping contains an operator that generates only PL/SQL output, all downstream dataflow operators must also be implementable by PL/SQL. You can use SQL operators in such a mapping only after loading the PL/SQL output to a target.

I found it caused by conflicting between Transformation operator and Varray Iterator operator. Detailed message is
PL/SQL row based operating mode: Operator MyProcedure supports PL/SQL generation but operator VarrayIterator supports SQL generation only. Conversion from PL/SQL generation to SQL generation is not supported.

Similar Messages

  • How to use Stored Procedure Call in Sender JDBC adapter

    Hi All,
             Could someone send me a blog on how to use Stored Procedure call in Sender JDBC adapter?
    Xier

    Hi Xler
    refer these links
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Also, you can check Sriram's blog for executing Stored Procedures,
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    /people/jegathees.waran/blog/2007/03/02/oracle-table-functions-and-jdbc-sender-adapter
    This blog might be helpfull on stored procedures for JDBC
    JDBC Stored Procedures
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    Please go through these threads and see if it helps...
    Re: How to execute Stored Procedure?
    Re: Problem with JDBC stored procedure
    Thnaks !!

  • How to use Stored Procedures in form 6i Blocks

    Dear Friends,
    I would like to know how to use Stored Procedures while creating blocks in Data Block Wizard in forms 6i application.
    Please send me sample code of stored procedure.
    Regards,
    Khader.

    The Data Block Wizard is not for creating stored procedures. It will allow you to use a stored procedure in your form. See the help documentation for how to use the wizard.
    Here's an example of a simple procedure. If you search the database forum or the web, you will find many examples.
    CREATE OR REPLACE PROCEDURE procedure_name (value OUT NUMBER ) AS
    BEGIN
    SELECT COUNT(*) INTO value
    FROM your_table;
    END;
    Message was edited by:
    Mark Roberts

  • HOW TO USE STORED PROCEDURES IN JASPERREPORTS(URJENT)

    Hi,
    i'm using jasperreports in struts based project. How to use stored procedures in jasperreports. pls send the solution urjent
    Thanks in advance
    ramesh

    Hi,
    Refer the below link:
    JDBC:
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 --> for jdbc receiver: file -JDBC
    Stored Procedures-
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    http://www.ics.com/support/docs/dx/1.5/tut6.html
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    http://www.ics.com/support/docs/dx/1.5/tut6.html
    http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html
    http://www.sqlteam.com/article/stored-procedures-an-overview
    HI in the message mapping structure u need to specify the different action and also u need to specify the procedure name.
    refer the below link which has all the associated action
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
    Chirag

  • How to use stored procedures in DIAdem and Can the stored procedures be used to return values?

    Can anyone please tell me how to use stored procedures in diadem and to return values from it. Its really important, can you please answer it at the earliest.
    Thanks In advance
    spiya

    Hi Spria,
    I'm very sorry for the mix-up, I thought Allen was going to answer you back with the particulars that we found out. Check out the attached Word document and the below tidbits:
    The built-in DIAdem ODBC functions {SQL_...()} can only call stored functions, which return a scaler result {found then in SQL_Result(1,1)}. The syntax for this with an ORACLE db is
    "select function(parameters) from package"
    ...where package defaults to "dual" if you don't use your own package.
    There might be exceptions to that though, and the syntax will be different for other databases. Note that stored ORACLE procedures can NOT be called from the ODBC functions, instead you must use either ADO function calls in the DIA
    dem VBScript or the OO4O COM wrapper that ORACLE provides (this is described in further detail in the below Word document).
    Hope this helps,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Calling_ORACLE_Stored_Procedures_from_DIAdem.doc ‏28 KB

  • How to use Stored Procedures in JDBC sender side and receiver side

    Hello,
    Can anyone explain how to use stored procedures in configuring the scenario using JDBC adapter at bothe sides sender nad receiver..
    Thanks,
    Soorya

    Hi,
    Refer the below link:
    JDBC:
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 --> for jdbc receiver: file -JDBC
    Stored Procedures-
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    http://www.ics.com/support/docs/dx/1.5/tut6.html
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    http://www.ics.com/support/docs/dx/1.5/tut6.html
    http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html
    http://www.sqlteam.com/article/stored-procedures-an-overview
    HI in the message mapping structure u need to specify the different action and also u need to specify the procedure name.
    refer the below link which has all the associated action
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
    Chirag

  • How to use 'oprofc' procedure?

    How to use 'oprofc procedure'?
    I don't find this program in JDEVELOPER2.0 directory.
    is it necessary to launch 'oprofc' to use some oracle-specific
    features (form exemple: CLOB)
    null

    David,
    Please also see my reply to your other query about SQLJ and
    CLOBs. It is my understanding that this script is only necessary
    for command line SQLJ operations, and I don't believe it is still
    used with 8.1.
    Because JDeveloper handles the SQLJ translation for you, we do
    not provide the command line utilities. They should be available
    with either your server installation or the Oracle Client
    distribution if you would like to use them.
    -L
    David DUPONT (guest) wrote:
    : How to use 'oprofc procedure'?
    : I don't find this program in JDEVELOPER2.0 directory.
    : is it necessary to launch 'oprofc' to use some oracle-specific
    : features (form exemple: CLOB)
    null

  • How to use the procedure column in reports

    Hi all
    How to call the procedure in reports as source.. If possible how to use columns of procedure in the layout column of report????

    Hi,
    Your query is not clear.
    1. In subject are you asking total column.
    A. Edit pivot view and go to Rows and click Total BY option here you can find option like (none,before,after) the you can select after it will display total all culms.
    2. I want use the columnC in columnD ? -- Am not understand.
    A. What my understand is you want to see the report only C and D values only.
    If it is correct we can apply filter in report level click column filed and apply not equal to A then it will show only C and D only.
    If it is wrong pleas post me correct one with example. Will try to help out this.
    I am not sure this is what your looking so far.
    Award points it is useful.
    Thanks,
    Satya

  • How to Use the Procedures in a Sql Query

    Hi Friends,
    Can anyone help me out whether can we use the procedure in the sql query..
    if yes help me out with an example
    my requirement is
    i have one sql query .. in which i need to use the procedure which returns multiple values... how can i overcome it,can anyone help me out for this..
    for your reference i am pasting the sql query
    SELECT paf.person_id
    FROM per_all_assignments_f paf START WITH paf.person_id = p_person_id
    AND paf.primary_flag = 'Y'
    AND paf.assignment_type IN('E', 'C')
    AND l_effective_date BETWEEN paf.effective_start_date
    AND paf.effective_end_date
    CONNECT BY PRIOR paf.supervisor_id = paf.person_id
    AND paf.primary_flag = 'Y'
    AND paf.assignment_type IN('E', 'C')
    AND l_effective_date BETWEEN paf.effective_start_date
    AND paf.effective_end_date
    and paf.person_id not in (>>>I HAVE TO USE THE PROCEDURE HERE<<<<);
    Thanks in advance

    We never saw your procedure, but maybe you could wrap it in a function
    SQL> create or replace procedure get_members(in_something IN number, out_members OUT sys_refcursor)
    is
    begin
      open out_members for
        'select level member_id from dual connect by level <= :num' using in_something;
    end get_members;
    Procedure created.
    SQL> create or replace type numbers as table of number;
    Type created.
    SQL> create or replace function members(in_something IN number)
    return numbers
    as
      member_cur sys_refcursor;
      members numbers;
    begin
      get_members(in_something, member_cur);
      fetch member_cur bulk collect into members;
      close member_cur;
      return members;
    end;
    Function created.
    SQL> select * from  table(members(4));
    COLUMN_VALUE
               1
               2
               3
               4
    4 rows selected.Variant on same using piplined function
    SQL> create or replace function members_piped(in_something IN number)
    return numbers pipelined
    as
      member_cur sys_refcursor;
      rec number;
    begin
      get_members(in_something, member_cur);
      loop
         fetch member_cur into rec;
         exit when member_cur%notfound;
         pipe row(rec);
      end loop;
      close member_cur;
      return;
    end;
    Function created.
    SQL> select * from  table(members_piped(4));
    COLUMN_VALUE
               1
               2
               3
               4
    4 rows selected.
    SQL> drop function members_piped;
    Function dropped.
    SQL> drop function members;
    Function dropped.
    SQL> drop type numbers;
    Type dropped.
    SQL> drop procedure get_members;
    Procedure droppedEdit:
    Sorry Blu, had not seen you already posted similar thing
    Edited by: Peter on Jan 27, 2011 5:38 AM

  • How to use Stored Procedure in RPD

    In the physical layer we have a option for procedure when we select a tables general tab.I created the procedure
    but i am not able to retrieve values in the Dashboard.
    Could anyone help me with this as how to use procedure.

    Oracle stored procedure don't return recordssets. You have to put the result of the stored procedure in a global temp table and reference the rpd to that table. the execution of the stored procedure can be triggerd form the "execute before query" part in the connection pool.
    regards
    John
    http://obiee101.blogspot.com/

  • How to use SQL Procedure in SDK

    Hi Experts
    I have a form with grid. It is not attached with UDO to save data. I am using SQL Query (oRecordset.DoQuery() )to update and add records of this grid to the table. if there is ten rows then I have to insert records one be one . If five records are updated and after that there is some problem and rest of records does not update in the table. I want to use RollBack command of SQL so that all updated record must removed. Can i use SQL Procedure for that . If I can then how can I transfer all grid data to Sql procedure.  Plz give your suggestion.
    Thanks
    Regards
    Gorge

    Hi,
    I guess u can use oCompany.StartTransaction  and end transaction after that u can commit or rollback.
    Vasu Natari.

  • How to use ODI procedures into a ODI variable

    Hi,
    I have the below condition
    select c1 from table where c1>#ODIVAR1 and use the output of this query in a variable to define the package flow
    If output=0 package flow goes as XXX
    else
    flow goes as YYY.
    So please suggest how to use a ODI variable to capture the procedures putput and use it in package flow in this case.
    Thanks,
    Naveen.

    Step1 . Refresh the variable in the package, which have this query select c1 from table where c1>#ODIVAR1
    Step2. Evaluate above variable (operator = , value 0 )
    Step 3. If true Package flow xxx , else false yyy
    Please close the thread once you get the required flow.

  • How to use functions/procedures like wwv_flow_sw_api

    Hello,
    I want to use functions/procedures like wwv_flow_sw_api.check_priv(:P4_SCHEMA) in a process, but I get the error "identifier wwv_flow_sw_api.check_priv(:P4_SCHEMA); must be declared".
    How can I access these functions?
    Thank you,
    Kirsten

    Hi Jari,
    my problem is, that I need to replicate the exact feature of Query Builder page in my
    application (see thread Re: How to create Query Builder page in application
    So I imported the page 1002 and tried to make it working.
    Do you know any solution?
    Than you,
    Kirsten

  • How to use dbo procedure to execute for different schema?

    I am using SQL Server 2008 R2, I have a schema [dbo],
    and in that schema, I have created a stored procedure dbo.GetAccount:
    CREATE PROCEDURE dbo.GetAccount
    AS
    BEGIN
    select * from tblAccountNet
    END
    GO
    Then, I have created a schema [ABC] with
    user named UserABC.
    Now, I would like to login with UserABC and
    execute dbo.GetAccount for
    schema [ABC] to
    get all user of it and don't want to change code of dbo.GetAccount.
    So, how can I do?
    Thanks for your help.

    Thank you everyone.
    But, I don't want to change procedure dbo.GetAccount because in face, I have more 100 procedures. I think of two solutions:
    1. Create another stored procedure in
    [dbo] schema, and use it to read all other procedure to list all table used in procedure and assign them with schema
    [ABC]
    2. Create
    a stored procedure to change schema of all table in every procedure
    But I really don't know how to do it. Please help me.
    Thanks so much.

  • How to use this procedure.

    hellow everyone.
    i created the following procedure in sql> but now i want to use in form,plz how to use the following procedure in form?
    SQL> DECLARE
    2 v_Calc NUMBER := 0;
    3 BEGIN
    4 WHILE v_Calc <= 10 LOOP
    5 v_Calc := v_Calc + 1;
    6 DBMS_OUTPUT.PUT_LINE('The value of v_Calc is ' || v_Calc);
    7 END LOOP;
    8 END;
    9 /
    Mehwish

    Mehwish,
    Check the parameter p_hiredate. Now it is treated as IN parameter. And in the procedure, its an OUT parameter. So change the procedure declaration line from
    create or replace procedure emp_query(p_deptno in number, p_empno in out number, p_ename in out varchar2, p_job out varchar2, p_hiredate date, p_sal out number) isto
    create or replace procedure emp_query(p_deptno in number, p_empno in out number, p_ename in out varchar2, p_job out varchar2, p_hiredate out date, p_sal out number) isAnd to call the procedure try,
    DECLARE
       Num_p_empno number;
       Str_p_ename varchar2;
       Str_p_job varchar2;
       Dt_p_hiredate date;
       Num_p_sal number;
    BEGIN
       Num_p_empno := <value_for_parameter>;
       Str_p_ename := <value_for_parameter>;
       emp_query(<p_deptno_value>, Num_p_empno, Str_p_ename, Str_p_job, Dt_p_hiredate, Num_p_sal);
    END;Regards,
    Manu.
    Edited by: Manu. on Jul 27, 2010 1:54 PM

Maybe you are looking for

  • Transferring music from iphone to pc

    Purchased/Downloaded music from itunes to iphone - how can I sync / upload music to PC to back up?

  • New function Planning Group and Affiliate in Business partner/Account tab

    Hi all! I'm using SAP 8.8 PL10 , Localization Australia. I have new function in Business partner/Account tab is Planning Group and Affiliate. Can you explain ? i don't see any help file about this.

  • TA48312 i cant download itunes for wondows 7

    having trouble dowloading itunes on my windows 7 laptop had it on before i had a virus attack now wont work any ideas would be good

  • Can't Transfer Video(3gp), Mp3....

    I'm Using Windows Vista the new version of Windows. However the PC Suite Software got problem on trying to transfer the file. It Either the PC Suite Software problem or this windows vista version not support for PC Suite Software. Right now i using l

  • ResturnKeyLabel not working on iOS

    I am having using TextArea and TextInputs is a project where I have specified the returnKeys, but they don't work on the device. It is an iPod Touch with iOS 5. The code for same is: <s:TextInput id="mobileTxtInp"