GRPO Stored Procedure Block for Cost Discrepancy

Dear Experts,
I am in the process of writing a stored procedure to block a GRPO from posting if one of the items' prices has a 30% discrepancy on item cost.
I couldn't use AvgPrice as the value in the table considers the transaction being processed. What I am trying to do is compare the price with the previous GRPO's price done for this item.
Any other suggestions would be great.
Now this works fine until I add a second item on the document or even the same item twice. It will only apply block to item on first row.
SP will only block first row in example below:
#1 Item A 50.00
#2 Item B 100.00
#3 Item A 10.00
I was wondering how the block can look at the individual lines, alternatively has anyone done something similar that can help me.
Query:
--Block Goods Receipt PO with 30% Price Discrepancy
declare @item nvarchar(255)
select @item = NULL
IF @TRANSACTION_TYPE = 'A' AND @OBJECT_TYPE = '20'
BEGIN
Select @item = A.ItemCode
From
               (SELECT 'itemcode' =
                    CASE --greater than
                         When (((T1.Price -
                                   --fetch prev price
                                   (SELECT max(b.price)
                                   from opdn a inner join pdn1 b on a.DocEntry = b.docentry
                                   where b.ItemCode = T1.itemcode AND
                                   a.DocNum =
                                   (SELECT MAX(a1.Docnum) from OPDN a1 inner join PDN1 b1 on a1.DocEntry = b1.DocEntry
                                   WHERE b1.ItemCode = b.ItemCode
                                   AND a1.docnum <
                                             (SELECT MAX(a2.Docnum) from OPDN a2 inner join PDN1 b2 on a2.DocEntry = b2.DocEntry
                                             WHERE b2.ItemCode = b1.ItemCode)
                                   --##fetch prev price     
                                   --fetch prev price
                                   (SELECT max(b.price)
                                   from opdn a inner join pdn1 b on a.DocEntry = b.docentry
                                   where b.ItemCode = T1.Itemcode AND
                                   a.DocNum =
                                        (SELECT MAX(a1.Docnum) from OPDN a1 inner join PDN1 b1 on a1.DocEntry = b1.DocEntry
                                        WHERE b1.ItemCode = b.ItemCode
                                        AND a1.DocNum < (
                                        (SELECT MAX(a2.Docnum) from OPDN a2 inner join PDN1 b2 on a2.DocEntry = b2.DocEntry
                                             WHERE b2.ItemCode = b1.ItemCode)
                                   --##fetch prev price     
                                   ) * 100) >= 30
                              Then T1.ItemCode
                              --smaller than
                              When (((T1.Price -
                                   --fetch prev price
                                   (SELECT max(b.price)
                                   from opdn a inner join pdn1 b on a.DocEntry = b.docentry
                                   where b.ItemCode = T1.itemcode AND
                                   a.DocNum =
                                   (SELECT MAX(a1.Docnum) from OPDN a1 inner join PDN1 b1 on a1.DocEntry = b1.DocEntry
                                   WHERE b1.ItemCode = b.ItemCode
                                   AND a1.docnum <
                                             (SELECT MAX(a2.Docnum) from OPDN a2 inner join PDN1 b2 on a2.DocEntry = b2.DocEntry
                                             WHERE b2.ItemCode = b1.ItemCode)
                                   --##fetch prev price     
                                   --fetch prev price
                                   (SELECT max(b.price)
                                   from opdn a inner join pdn1 b on a.DocEntry = b.docentry
                                   where b.ItemCode = T1.Itemcode AND
                                   a.DocNum =
                                        (SELECT MAX(a1.Docnum) from OPDN a1 inner join PDN1 b1 on a1.DocEntry = b1.DocEntry
                                        WHERE b1.ItemCode = b.ItemCode
                                        AND a1.DocNum < (
                                        (SELECT MAX(a2.Docnum) from OPDN a2 inner join PDN1 b2 on a2.DocEntry = b2.DocEntry
                                             WHERE b2.ItemCode = b1.ItemCode)
                                   --##fetch prev price     
                                   ) * 100) <= -30
                              Then T1.ItemCode
                              end
                    FROM [DBO].[OPDN] T0 INNER JOIN [DBO].[PDN1] T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 on T1.ItemCode = T2.Itemcode     
                    --AND NOT T0.UserSign = 1 --Manager
                    AND T1.DOCENTRY = @LIST_OF_COLS_VAL_TAB_DEL) A
IF EXISTS
(Select @item where @item is not NULL)
     BEGIN
          SELECT @ERROR = 2, @ERROR_MESSAGE = 'Price Discrepancy too large. Please check item:' + ' ' + @item
     END
END
Thanks,
Adriaan

That's a really tough form to create.
Here's a couple of dynamic forms you can try out:
By Francois Degrelle:   "DYNAMIC_FORM.fmb".
And my old dynamic matrix Form is here:   QA: Quick Access  An Oracle Forms dynamic utility form

Similar Messages

  • GL Account is blocked for Cost Centre

    Hi All,
    I try to post amount to G/L account, But SAP throwing this error. GL Account 672800 is blocked for Cost Centre 3330.
    I tried to post to another account 678200 which has the same functionality as 672800 but i done get any error . 
    Any Advice pls.
    Cheers
    VM.

    Hi,
    What i feel U r using some validation for this pls check the same because we can't restrict any GL for posting to particular cost center.
    Regards,
    Meenakshi

  • Error with stored procedure block datasource

    Hi all,
    I tried to base a datablock on a stored procedure in order to get better runtime performance. I work with Forms Builder 6i with patch 17 , and our database is oracle 8.1.7.1.4
    But when compiling I got errors.
    Here are what I did :
    create or replace type TSourceObject as object(name varchar2(30), propname varchar2(200));
    create or replace type TSourceTable is table of TSourceObject;
    create or replace procedure p_query_ntwk_chnl_mirror(p_tab IN OUT NOCOPY TSourceTable, p_action varchar2, p_lien number)
    is
    begin
    if p_action = 'VISU' then
    select TSourceObject(B.bdw_name, P.prop_bdw_name)
    bulk collect into p_tab
    from T_NETWORK_CHANNEL N, t_bdw_mw B, t_prop_bdw_mw P
    where B.comp_bdw = P.comp_bdw and P.comp_prop_bdw = N.comp_prop_bdw
    and EXISTS (SELECT 1
    FROM t_channel_element C
    WHERE N.comp_network_channel = C.comp_network_channel and comp_lien = p_lien);
    else
    select TSourceObject(B.bdw_name, P.prop_bdw_name)
    bulk collect into p_tab
    from T_NETWORK_CHANNEL N, t_bdw_mw B, t_prop_bdw_mw P
    where B.comp_bdw = P.comp_bdw and P.comp_prop_bdw = N.comp_prop_bdw;
    end if;
    end;
    Then I created the datablock with the wizard , I entered correctly the value of the arguments for the table type name, the argument p_action and the argument p_lien.
    And when compiling there was this alert error :
    Compiling QUERY-PROCEDURE trigger on NETWORK_CHANNEL_MIRROR data block...
    Compilation error on QUERY-PROCEDURE trigger on NETWORK_CHANNEL_MIRROR data block:
    PL/SQL ERROR 960 at line 5, column 9
    RPCs cannot use variables with schema level user-defined types in this release
    PL/SQL ERROR 0 at line 5, column 9
    Item ignored
    PL/SQL ERROR 320 at line 7, column 26
    the declaration of the type of this expression is incomplete or malformed
    PL/SQL ERROR 0 at line 7, column 1
    Statement ignored
    PL/SQL ERROR 320 at line 8, column 28
    the declaration of the type of this expression is incomplete or malformed
    PL/SQL ERROR 0 at line 8, column 1
    Statement ignored
    Compilation errors have occurred.
    So what should I do ?
    Thank you very much indeed.

    I create the package , and when creating the body then there was an error.
    Here is the package :
    create or replace package pkg_query_ntwrk_chnl_mirror
    is
    type TSourceObject is record(name varchar2(30), propname varchar2(200));
    type TSourceTable is table of TSourceObject index by binary_integer;
    procedure p_query_ntwk_chnl_mirror(p_tab IN OUT NOCOPY pkg_query_ntwrk_chnl_mirror.TSourceTable, p_action varchar2, p_lien number);
    end;
    create or replace package body pkg_query_ntwrk_chnl_mirror
    is
    procedure p_query_ntwk_chnl_mirror(p_tab IN OUT NOCOPY pkg_query_ntwrk_chnl_mirror.TSourceTable, p_action varchar2, p_lien number)
    is
    begin
    if p_action = 'VISU' then
         select B.bdw_name, P.prop_bdw_name
         bulk collect into p_tab
         from T_NETWORK_CHANNEL N, t_bdw_mw B, t_prop_bdw_mw P
         where B.comp_bdw = P.comp_bdw and P.comp_prop_bdw = N.comp_prop_bdw
         and EXISTS (SELECT 1
         FROM t_channel_element C
         WHERE N.comp_network_channel = C.comp_network_channel and comp_lien = p_lien);
    else
         select B.bdw_name, P.prop_bdw_name
         bulk collect into p_tab
         from T_NETWORK_CHANNEL N, t_bdw_mw B, t_prop_bdw_mw P
         where B.comp_bdw = P.comp_bdw and P.comp_prop_bdw = N.comp_prop_bdw;
    end if;
    end;
    end;
    And here is the error :
    7/2 PL/SQL: SQL Statement ignored
    8/20 PLS-00597: expression 'P_TAB' in the INTO list is of wrong type
    15/2 PL/SQL: SQL Statement ignored
    16/20 PLS-00597: expression 'P_TAB' in the INTO list is of wrong type
    And what is the problem here ? I think it is right!

  • Printing Stored Procedure, etc for SQL Developer

    Hi
    I've run into some issues trying to print stored procedure or package code from SQL Developer.
    1) The text printout comes out in enlarged font (size 20+)
    2) The printout does not completely print all code - only 1 page regardless if it fits to one page or not.
    I am running on Windows 2000 Service Pack 4. Printing to a HP Laser Jet 5M.
    Is anyone else have the same problems when printing?
    Thanks in advance.

    We do have an issue with printing. It is contained in our Release Notes -
    "Print prints only one page that is a truncation of the current tab."
    I would suggest saving to a file and printing from there for now -
    -- Sharon

  • IN, OUT using a stored procedure block

    need to write a query to exec stored procedure in plsql
    product id --> i/p
    product info & customer info --> o/p
    tables --> products, customers.
    columns in products table --> Product_id, pname, sdate, prize, customer_id.
    columns in customers table -->customer_id, product_id, cname, address.
    plz guide me thanks.......

    Mohan1312 wrote:
    need to write a query to exec stored procedure in plsql
    product id --> i/p
    product info & customer info --> o/p
    tables --> products, customers.
    columns in products table --> Product_id, pname, sdate, prize, customer_id.
    columns in customers table -->customer_id, product_id, cname, address.
    plz guide me thanks.......what do the "-->" signify?
    Do you speak SQL? We speak SQL. in future please post more SQL so we can understand you.
    How to ask question
    SQL and PL/SQL FAQ

  • JDev 9.0.3 can't generate stored procedure wrapper for ARRAY java type

    Hi,
    I have a java stored procedure which looks like this:
    public static void CurveFit(ARRAY in_x_y, ARRAY[] in_out_param) {
    I had no problem to generate a PL/SQL wrapper using JDev 3.2 mapping the ARRAY parameters to user-defined Oracle types. Here is the code JDev 3.2 generated:
    PROCEDURE curvefit(in_x_y IN fit_data, in_out_param IN OUT fit_params) AS
    LANGUAGE JAVA
    NAME 'CurveFitWrapper.CurveFit(oracle.sql.ARRAY, oracle.sql.ARRAY[])';
    Now I use JDev 9.0.3, but it refuses to add my function to the deployment profile. "Why not?" gives the following explanation: "Parameter #1 is of type oracle.sql.ARRAY which doesn't map to any PL/SQL data type". That's wrong! If I create the wrapper myself it works just fine.
    How to get around this situation? I don't want to go back to JDev 3.2...
    Regards,
    Plamen

    I have tried a disconnect/reconnect from within Jdev without success. First, I have to choose "disconnect" twice from the file->source control menu. (The first time I click it does nothing). Then during reconnect I choose my SCM connection, then I choose my workarea and get a pop up that says, "Failed to set my_workarea as the active workarea". I click "OK". Choose my workarea again and get another popup that is blank. Then I click "OK". Now I see a list of SCM connections. I keep getting the blank popup until I hit cancel. Now the overlay icons appear and it seems that I am in fact connected. But I still get the checkin/checkout exceptions. So I have to restart Jdev to get back to normal.
    I also tried executing the sql in the exception from SQL*Plus and it works perfectly.

  • Stored procedure parameter for in condition

    Hi,
    Is it possible to use a parameter for the following where Parameter should have a list of ids separated by commas and contained with in parenthesis..
    Select * from table
    where id in Parameter
    If so, what should be the type for the Parameter variable ? because in parameter expects a number but our value should be 1,2,3 contained with in parenthesis
    Select * from table
    where id in (1,2,3)
    Thanks,
    RM

    Consider inserting your list of IDs into a table.
    Then you can do: WHERE id IN (select id from your table)

  • Stored Procedure call from JDBC sender for Oracle Database

    Hi,
    I have a requirement to call stored procedure using JDBC sender adapter for retriving data from an Oracle database.
    I need to execute first stored procedure call from Querry SQL statement and then trigger second stored procedure call for confirming the succesful retrival of those records from the update SQL statement.
    Querries:
    1. Can we trigger stored procedure from Update statement of JDBC sender.
    2. Can we call stored procedure from Querry statement, since I have read on other sdn threads that stored procedure calls on Oracle database are not allowed. If not possible to have "Execute stored procedure" would the function call (select * from table(function name)) work same as stored procedure.
    3. In a JDBC sender the Querry statement and Update statement are executed in same session call and same database connection. What happens if the querry statement was not succesful, would the update be still triggered.
    Please note PI does not have direct access to main table and hence the need to have separate stored procedure calls.
    The PI version is PI 7.11 sp4.
    Appreciate your inputs.
    Thanks.
    Siddhesh S.Tawate

    >1. Can we trigger stored procedure from Update statement of JDBC sender.
    I think not possible using update statement.
    > Can we call stored procedure from Querry statement, since I have read on other sdn threads that stored procedure calls on Oracle database are not allowed. If not possible to have "Execute stored procedure" would the function call (select * from table(function name)) work same as stored procedure.
    Yes using select query you can call stored procedure.
    >. In a JDBC sender the Querry statement and Update statement are executed in same session call and same database connection. What happens if the querry statement was not succesful, would the update be still triggered.
    No select and update handles in the same session using the same thread so if one transaction fails update should not proceed.

  • Stored Procedures (what is it really used for?)

    So from a tutorial, I successfully created a stored procedure, stored it, and made code to use it. I think.
    If I run my code, it seems to work fine, regardless of whether or not I have entered that stored procedure into the database.
    Is my code suppose to work regardless? Is storing a procedure just meant to make my code, which repeats quite often, more efficient? Or are stored procedures created for different reasons? Are they there to let me run my java code from an sql query? I'm at my wits end trying to understand the significance of a stored procedure. I've posted my code, if it helps.
    public static void callSortTwo(Connection conn, CallList cl) {
            try {
                Timestamp ts = new Timestamp(System.currentTimeMillis() );
                System.out.println("Executed at: " + ts);
                String insert_query = "INSERT INTO SWEATY_BALLSAK.CALLS (" +
                        "beat," +
                        "call_descr," +
                        "priority," +
                        "date," +
                        "time," +
                        "call_num," +
                        "location," +
                        "status," +
                        "entry_id) " +
                        "VALUES(?,?,?,?,?,?,?,?,?)";
                PreparedStatement pstmt = conn.prepareStatement(insert_query);
                for (int counter = 0; counter < cl.getSize(); counter++) {
                    String current_event[] = cl.getElementArray(counter);
                    pstmt.setString(1,current_event[0]);
                    pstmt.setString(2,current_event[1]);
                    pstmt.setString(3,current_event[2]);
                    pstmt.setString(4,current_event[3]);
                    pstmt.setString(5,current_event[4]);
                    pstmt.setString(6,current_event[5]);
                    pstmt.setString(7,current_event[6]);
                    pstmt.setString(8,current_event[7]);
                    pstmt.setTimestamp(9, ts);
                    pstmt.executeUpdate();
            catch(SQLException sqle_callSort) {
                System.out.println("SQL Exception" + sqle_callSort.getMessage() );
            }

    Stored procedures use PL/SQL, not SQL, find and read something about it, it is very wide topic.
    Stored procedures are often used for efficiency reasons. Simple example: if stored procedure contains several embeded SQL statements, database has to parse and precompile these SQLs only once, during procedure's compilation. Second, database always optimizes each SQL query before execution - but in the stored procedure it is done only once, during compilation. When you execute SQL from your program, RDBMS must parse and optimize this SQL each time, so using stored procedure you could save some (little) time on parsing and optimizing.
    But when you want to do some kind of 'batch procesing' - execute one query to take some data from the table, analyze this data, prepare next SQLs based on retrieved data and so on, it's always better to do it in the stored procedure instead of the program, because you avoid transferring data through the network from database to program and back - you call simply stored procedure and all the processing is done in the database.
    Oracle from ver. 9, beside PL/SQL has something called "Java stored procedures', so .... yes, you could write stored procedures in Java too :)

  • Help in JAVA stored procedure

    Hi,
    We need to interface a JAVA application from a pl/sql block. We are using JAVA stored procedure to do the same. This
    stored java class ( that we call from a PL/SQL procedure) has the
    statement ( " textFont = new Font("Arial", 0, 11)" ) where a Font is
    initialized. This is throwing an error message as given below. Please
    let us know if there is any issue with respect to usage of java.awt
    classes in java stored procedures (Oracle JVM of Oracle9i Enterprise
    Edition Release 9.2.0.2.0).
    We tracked down the exception to the following stack trace:
    java.lang.NullPointerException
    at java.lang.Class.forName0(Class.java)
    at java.lang.Class.forName(Class.java)
    at
    java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
    ment.java)
    at java.awt.Font.initializeFont(Font.java)
    at java.awt.Font.<init>(Font.java)
    at com.idautomation.pdf417.PDF417.<init>(com/idautomation/pdf417/PDF417)
    at GenBarCode.createBarCode(GenBarCode.java:24)
    at CallGenBarCode.callGenerateBarCode(CallGenBarCode.java:14)
    g_error_text= ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.NullPointerException in CallGenBarCode_callGBC
    DECLARE
    ERROR at line 1:
    ORA-20001: ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.NullPointerException in CallGenBarCode_callGBC err 15
    ORA-06512: at line 12
    Any pointers in this regard will be of great help.
    thanks,
    Ayyappa

    Hi,
    OracleJVM, as a server-side VM, does not support any UI classes such as awt and swing. The basic GUI components found in the JDK's Abstract Windowing Toolkit (AWT) cannot be used in Stored procedures.
    For more information refer to http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96659/01_intro.htm#16826
    Hope this helps.
    Sujatha.
    http://otn.oracle.com/sample_code/content.html

  • Procedure Block In Forms

    Hi,
    How to create a Block which refers a Procedure. and wat is the use of this block? pls any give a good example.
    Regards,
    Kalyan.

    hi Abdetu,
    i didnt ask how to call a procedure from a block. Instead of Table Block, i want to a stored procedure block. means if u see the properties of block, there will be
    Database Data Block : Yes
    Query Data Source Type: Table
    Query Data Source Name: Emp_Table
    Like that will be there....This is for ordinary Database Block....
    but more option is there we create a Procedure Block Instead of Table.
    Click In
    Query Data Source Type : Table,
    Procedure,
    Transactional Triggers,
    From Clause Query.
    So That i asked....
    I hope now you understood...
    Regards,
    Kalyan

  • When to use stored procedures

    We have a Java application for which the performance is very slow. For example, one particular screen takes 16 seconds to display. When we watch the Oracle database, we find that the application is issuing 23 separate queries to populate the screen (one query per display row). This screen could grow to need more rows in which case the application has been written to issue separate queries against the database for each. What is appropriate way for the application to obtain this data? We have written a stored procedure that takes .4 seconds to provide this data. When is a stored procedure appropriate? Are there any documents regarding best practices on this issue?

    Just out of interest, why avoid stored procedures at
    all costs? Are you joking, or is there a valid
    reason? Stored procedures are in general faster than
    using Statements.One reason would be because it limits the database portability, since not all databases support them.
    This is generally only a concern when writing product software for smaller companiers. Larger companies will use databases that support stored procs and are much less likely to want to migrate. And are much more likely to have DBAs who will insist on it as well.

  • ERROR-Logging of Stored Procedure (Stop / Going on after error + logging)

    Hi @all,
    I am using a Stored Procedure which is very simple:
    =>The stored procedure is selecting many tousands of records from table1 + table2.
    => Some values (records) will be summarized (aggregated/group by).
    =>After this selection and summarizing, this records will be deleted from table3 (if they exist in table3).
    =>Then the selected records will be inserted in table3.
    Now I want to do the following:
    Is there a way to log the errors of the stored procedure?
    For example, the stored procedure is copying many thousands of records.
    If there is a problem on copying/ inserting a record to table3, then I want a error-log in a loggin_table.
    Is there a way to write the error-logs from a stored procedure to a special table in database?
    I want to do this in 2 ways:
    1) On error the error is logged and the stored procedure is stopped.
    2) On error the error is logged and the stored procedure is going on to insert/summarize the next record.
    I don't know how I can get these errors of a stored procedure. Maybe it isn't possible? Or is it better to use a function?
    Hope anyone can give me a hint?
    Thanks a lot.
    Best regards,
    Tim

    Hi
    option one:
    as i know you can have another table without primer key (log table).
    then before you insert into table, select the record count using primary key. if it is duplicate then put those record into the table.
    option two:
    write the log into file.
    declare
    f utl_file.file_type;
    s varchar2(200);
    begin
    f := utl_file.fopen('SAMPLEDATA','sample1.txt','R');
    loop
    utl_file.get_line(f,s);
    dbms_output.put_line(s);
    end loop;
    exception
    when NO_DATA_FOUND then
    utl_file.fclose(f);
    end;
    refer : http://www.psoug.org/reference/OLD/utl_file.html
    regards
    upul.
    Edited by: Upul Indika on Apr 9, 2009 12:45 PM

  • Problem with JDBC stored procedure

    Hi...
    We are implementing an interface from SAP r/3 4.7 to Oracle DB 9.0. On sender side we have used IDOC Adapter and on Receiver side we have used JDBC Adapter.
    Here we are using stored procedures in JDBC Adapter. I have 2 stored procedures(one for header and one for items) and SISCSO.SISCSO01 IDOC.
    Here we are getting following error in RWB for JDBC Receiver adapter....
    <b>Error</b>
    " Receiver Adapter v2112 for Party '', Service 'BS_ORADEV':
    Configured at 2006-08-16 10:12:14 GMT+05:30
    History:
    - 2006-08-16 11:02:04 GMT+05:30: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'PR_SPARES_VOR_PO_HDR_UPLOAD' (structure 'statement'): java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'PR_SPARES_VOR_PO_HDR_UPLOAD' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored ".
    <b>My mapping file is like this.....</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:TVS_MST_SPARES_ORDER xmlns:ns0="urn:tvsmotor:salesorder"><statement><PR_SPARES_VOR_PO_HDR_UPLOAD action="execute"><table>PR_SPARES_VOR_PO_HDR_UPLOAD</table><IN_DEALER_ID isInput="true" type="String">efde</IN_DEALER_ID><IN_SPARE_PO_NO isInput="TRUE" type="STRING">sdfsdf</IN_SPARE_PO_NO><IN_PO_DATE isInput="TRUE" type="STRING">12.12.2555</IN_PO_DATE><IN_ORDER_TYPE isInput="TRUE" type="STRING">23</IN_ORDER_TYPE><IN_REMARKS isInput="TRUE" type="STRING">Remark</IN_REMARKS><IN_SAP_SALE_ORD_NO isInput="TRUE" type="STRING">146546</IN_SAP_SALE_ORD_NO><IN_SAP_SALE_ORD_DT isInput="TRUE" type="STRING">12.12.2555</IN_SAP_SALE_ORD_DT><IN_TOT_VAL isInput="TRUE" type="STRING">2323</IN_TOT_VAL></PR_SPARES_VOR_PO_HDR_UPLOAD><PR_SPARES_VOR_PO_DTL_UPLOAD action="execute"><IN_DEALER_ID isInput="TRUE" type="STRING">efde</IN_DEALER_ID><IN_SPARE_PO_NO isInput="TRUE" type="STRING">sdfsdf</IN_SPARE_PO_NO><IN_PO_DATE isInput="TRUE" type="STRING">12.12.2555</IN_PO_DATE><IN_PART_NO isInput="TRUE" type="STRING">cfgdfw4w</IN_PART_NO><IN_ORDER_QTY isInput="TRUE" type="STRING">2</IN_ORDER_QTY><IN_PENDING_QTY isInput="TRUE" type="STRING">20</IN_PENDING_QTY><IN_RATE isInput="TRUE" type="STRING">2432</IN_RATE><IN_TAX isInput="TRUE" type="STRING">18</IN_TAX></PR_SPARES_VOR_PO_DTL_UPLOAD></statement></ns0:TVS_MST_SPARES_ORDER>
    Please help me out with this error... tell me if more information is required.
    Thanks,
    Audumbar.

    hi mario,
    tell me one thing.... does case metter for stored procedure name? and even for the parameters used in stored procedure?
    i have changed the case of stored procedure name... (its small in Oracle) but have not changed the case of parameters....
    after changing the case also i m getting the following error....
    " Receiver Adapter v2112 for Party '', Service 'BS_ORADEV':
    Configured at 2006-08-16 10:12:14 GMT+05:30
    History:
    - 2006-08-16 14:18:19 GMT+05:30: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. <b>'pr_spares_vor_po_hdr_upload'</b> (structure 'statement'): java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier <b>'PR_SPARES_VOR_PO_HDR_UPLOAD'</b> must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored "
    Reply me as soon as possible.
    Thanx,
    Regards,
    Audumbar
    Message was edited by: Audumbar Pikle

  • Creating/calling stored procedure in ADF

    Hi,
    I'm new to Jdev and trying to create and call a database procedure in ADF. I simply want to call a database procedure which will populate an attribute. I've seen examples of stored procedures in for ADF by can't seem to put it all together. I know that you can create a method which calls a stored procedure, but exactly where is this method placed and how do I execute it at runtime..ie how is the method called?
    Thanks

    If what your PL/SQL code is a function (not a procedure) you can call it as part of the SQL for an ADF BC View object.
    Something like : Select ename,myFunc(sal) from emp;

Maybe you are looking for

  • Remote Speakers No Longer Visible with iTunes 6.0.3

    I haven't tried to connect my Airport Express stations since moving to a new location last September. All was working fine then (Windows XP, Belkin Pre-N Wireless Router, pre-iTunes 6.0, older AX firmware). I decided to connect my AXs today after upd

  • Automatic replication of vendor masters from SAP R/3 to EBP

    Hi For this issue I found the below program and steps to do the automatic replication of vendor master from SAP R/3 to EBP PROGRAM BBP_VENDOR_SYNC The program BBP_VENDOR_SYNC automatically synchronizes the backend vendors with the SRM system. To run

  • Uh oh huge problem please help me!

    Ok so long story short, i made a 2nd account, i was on it setting it up etc, i was looking at the recent what i did today, and for some reason i wanted to clear that up because i don't know i just wanted it to be clear i guess because i'm a perfectio

  • How to change one character string to char

    hi all i got string but only one character i got 1,2,3,E since i got 'E' here.......... i need to convert to it to character.... but how to change it.... i only know String to integer using Integer.parseInt() method.... but i don't know about char...

  • Why can't I share from faces?

    I can use the share  buttons all day long from anywhere but the "Faces" folder in the Library, but as soon as I navigate to a photo or two in the Faces, the Share items gray out in the toolbar and the menu. Any hints or thought on how to fix this, or