Procedure erroring out

Hi All,
I have created a procedure
create or replace procedure emp_sal_hike
(emp_name in varchar2,
emp_basic out number,
emp_nat out varchar2,
emp_religion out varchar2,
emp_job out varchar2)
is
begin
select emp.m_emp_religion,job.m_job_title,nat.m_nationality_name,emp.m_emp_basic into emp_religion,emp_job,emp_nat,emp_basic
from m_employee emp,m_job job,m_nationality nat
where job.m_job_code=emp.m_emp_job_code and emp.m_emp_nationality=nat.m_nationality_code and emp.m_emp_name=emp_name
order by 1;
end;
and i am calling it with below procedure
declare
emp_basic1 number(30);
emp_nat1 varchar2(20);
emp_religion1 varchar2(20);
emp_job varchar2(20);
cursor emp_cur is select distinct(m_emp_name) from m_employee where m_emp_name like '%' order by m_emp_name;
begin
for emp_rec in emp_cur
loop
emp_sal_hike(emp_rec.m_emp_name,emp_basic1,emp_nat1,emp_religion1,emp_job);
dbms_output.put_line('NAME:'||emp_rec.m_emp_name|| ' NATIONALITY: '||emp_nat1|| ' RELIGION: '||emp_religion1||
' JOB: '||emp_job|| ' OLD SAL: '||emp_basic1);
end loop;
end;
it is erroing out saying ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "EMP_SAL_HIKE", line 9
ORA-06512: at line 10
some rows are returned after pressing the error ok
please help
Regards

Hi Kaustubh,
now i am getting below error
create or replace procedure emp_sal_hike
(emp_code in varchar2,-->looks like problem is here..the data type of column is varchar2(20) so i gave varchar
emp_name out varchar2,
emp_basic out number,
emp_nat out varchar2,
emp_religion out varchar2,
emp_job out varchar2)
is
begin
select emp.m_emp_name,emp.m_emp_religion,job.m_job_title,nat.m_nationality_name,emp.m_emp_basic into emp_name,
emp_religion,emp_job,emp_nat,emp_basic
from m_employee emp,m_job job,m_nationality nat where job.m_job_code=emp.m_emp_job_code and
emp.m_emp_nationality=nat.m_nationality_code
and emp.m_emp_code=emp_code;
end;
declare
emp_name1 varchar2(20);
emp_basic1 number(35);
emp_nat1 varchar2(20);
emp_religion1 varchar2(20);
emp_job1 varchar2(20);
cursor emp_cur is select m_emp_code from m_employee where m_emp_code like'%';
begin
for emp_rec in emp_cur
loop
emp_sal_hike(emp_rec.m_emp_code,emp_name1,emp_basic1,emp_nat1,emp_religion1,emp_job1);
dbms_output.put_line('NAME:'||emp_name1|| ' NATIONALITY: '||emp_nat1|| ' RELIGION: '||emp_religion1||
' JOB: '||emp_job1|| ' OLD SAL: '||emp_basic1);
end loop;
end;
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "EMP_SAL_HIKE", line 10
ORA-06512: at line 11
Regards
Edited by: hungry_dba on Jun 14, 2011 4:57 PM

Similar Messages

  • Calling the Java Method in PL/SQL Java Stored procedure errors out

    Hi,
    I could not find a suitable thread to post my PL/SQL question so iam posting it here.........
    I have written a java class by name XYZ which has a method ABC for which there are 9 arguements being passed and its a VOID method.
    This java class has been loaded into ORACLE using DBMS_JAVA.LOADJAVA pkg, Now this class is being called in the oracle as a JAVA Stored procedure...... When ever im trying to call the procedure it throws the following error
    ORA-29531: no method
    *Cause:    An attempt was made to execute a non-existent method in a
    Java class.
    *Action:   Adjust the call or create the specified method.
    The code snippet as follows
    JAVA CODE:
    Class xyz
    public static void Abc (String hostName,
    int port,
    String serviceURL,
    String soapAction,
    int timeOut,
    String wsUser,
    String wsPasWd,
    String keyStore,
    String keyStorePasWd)
    //method implementation
    JAVA STORED PROCEDURE:
    create OR REPLACE procedure ABC_JAVA_SP_CALL
    (p_hostname in varchar2, p_port in number, p_serviceurl in varchar2, p_soapaction in varchar2, p_timeout in number, p_wsuser in varchar2, p_wspasswd in varchar2, p_ks_path in varchar2, p_ks_passwd in varchar2)
    as
    language java
    name 'xyz.Abc(java.lang.String, int, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String)';
    When i try to call
    declare
    p_hostname varchar2(100);
    p_port number;
    p_serviceurl varchar2(100);
    p_soapaction varchar2(100);
    p_timeout number;
    p_wsuser varchar2(100);
    p_wspasswd varchar2(100);
    p_ks_path varchar2(100);
    p_ks_passwd varchar2(100);
    begin
    //SP which returns the values for the required parameters.
    comppkg.getvcsinfo(
    p_hostname,
    p_port ,
    p_serviceurl,
    p_soapaction,
    p_timeout,
    p_wsuser,
    p_wspasswd,
    p_ks_path,
    p_ks_passwd
    Layer7_icengc_ws_tes(p_hostname,
    p_port ,
    p_serviceurl,
    p_soapaction,
    p_timeout,
    p_wsuser,
    p_wspasswd,
    p_ks_path,
    p_ks_passwd);
    end;
    This thing ends up with
    29531. 00000 - "no method %s in class %s"
    *Cause:    An attempt was made to execute a non-existent method in a
    Java class.
    *Action:   Adjust the call or create the specified method.
    Im not understanding what wrong am i doing
    pls help
    Edited by: madhusudan on Feb 12, 2013 8:07 PM

    Hello,
    there is the forum {forum:id=65} for questions about using Java within Oracle.
    Regards
    Marcus
    Edited by: Marwim on 13.02.2013 07:56
    I could not find a suitable thread to post my PL/SQL question so iam posting it here.........You got the hint to the correct forum alread in another thread {message:id=10837976}
    And if you think this is not related to Java but PL/SQL, then you should ask in {forum:id=75}

  • Procedure to Error Out Outbound IDocs

    Hello,
             I have a Requirement in which I am using ORDERS05 IDoc Type and extended it to ZORDER05 to populate Custom Fields and sending the Purchase Order Outbound IDoc to the Vendor from SAP System. Now, my requirement is that if any of the Custom Fields are not maintained in SAP and not populated in the IDoc, I need to Error Out the IDoc with Error Status 26. I am currently working on the SAP ECC 5.0. I have implemented similar Error Handling Mechanism earlier by using Enhancement Framework as I was working in ECC 6.0 environment where I've added the Code by Creating an Enhancement Implementation in the Function Module IDOC_CREATE_ON_DATABASE. But since ECC 5.0 does not have the Enhancement Framework feature,  please let me know how to achieve this.
    Thank You,
    Venkata Phani Prasad K

    Hi
    why don't you try using the standard method for validation of data?
    By implementing the customer-function EXIT_SAPLEINM_002 or BAdI MM_EDI_ORDERS_OUT  you can make checks of completeness of the idoc segments (in your case, additional custom data) and, if they were not complete, report an error message raising the exception DATA_NOT_RELEVANT_FOR_SENDING
    ie
    if <Idoc Custom Field> is initial.
    MESSAGE ID 'S1'
                   TYPE 'E'
                   NUMBER '333'
                   WITH Additional data are incomplete' 
                   RAISING data_not_relevant_for_sending.
    endif.
    Thus you have the evidence of the error in the processing log of the output message while the IDOC is not created.
    The solution works very well and is not invasive.
    Regards.
    Andrea

  • Auto Reconciliation Errored out in Cash Management for Open Interface

    1. When Running the Auto Reconciliation, it errored out:
    ORACLE error 1400 in FDPSTP
    Cause: FDPSTP failed due to ORA-01400: cannot insert NULL into
    ("CE"."CE_STATEMENT_RECONCILS_ALL"."REFERENCE_ID")
    ORA-06512: at "APPS.CE_AUTO_BANK_REC", line 404
    ORA-06512: at line 1
    2. When running manual reconciliation, it errored out:
    AVAILABLE_EVENT.update_row procedure raised unhandled exception
    ORA-01400: cannot insert NULL
    FRM-40735: ON-UPDATE trigger r

    You should really raise a TAR (SR) with Oracle support about this. Definitely not a forum question.

  • XML Report Publisher program is erroring out

    Hi All,
    I've customized the AR Customer Statements.
    I've created a data definition as "ARXSGP" and uploded the sample_output.xml of Statement Generation Program to it. Also I've created a Data template as "ARXSGPO" and attached the data definition "ARXSGP" to it and uploaded the customized rtf file "XXHCC_CLE_F_ARCUSBALSL.rtf" and set the default output type to PDF.
    As I donot wish to call the XML Report Publisher program manually every time when I Print the Statements through Print Documents-->Statements.
    So I've done the below customization in ARXSGP.rdf file ie; Print Statements Report which is an Oracle Report.
    I've added the below code in After Report trigger.
    =======================================
    FUNCTION AfterReport
    RETURN BOOLEAN
    IS
    BEGIN
    Below code added for Customer Statement Case Study
    DECLARE
    l_req_id NUMBER := 0;
    L_XML_LAYOUT BOOLEAN := TRUE;
    BEGIN
    L_XML_LAYOUT := FND_REQUEST.ADD_LAYOUT (TEMPLATE_APPL_NAME => 'AR', TEMPLATE_CODE => 'ARXSGP', TEMPLATE_LANGUAGE => 'en', TEMPLATE_TERRITORY => 'US', OUTPUT_FORMAT => 'PDF');
    IF L_XML_LAYOUT THEN
    srw.message(20001, 'Template is picked ');
    srw.message(20002,'Concurrent request Id : '||:p_conc_request_id);
    l_req_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
    'XDOREPPB',
    NULL,
    NULL,
    FALSE,
    :p_conc_request_id,
    222, -- Receivables
    'ARXSGPO', -- Statement Generate
    'en-US', -- English
    'N',
    'RTF',
    'PDF');
    IF l_req_id > 0 THEN
    COMMIT;
    ELSE
    srw.message(20004, 'Failed to submit request');
    END IF;
    ELSE -- Not L_XML_LAYOUT
    srw.message(20005, 'Template is not picked ');
    END IF;
    END;
    --------------------Code Ends----------------------------
    SRW.USER_EXIT('FND SRWEXIT');
    RETURN (TRUE);
    END;
    ==============================================
    After Printing the Statements through Print Documents-->Statements
    Statement Generation Program is being called and later XML Report Publisher program is also being invoked.
    But the XML Report Publisher Program is erroring out with below error.
    XML Publisher: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XDOREPPB module: XML Report Publisher
    Current system time is 03-SEP-2012 17:42:18
    Oracle XML Publisher 5.6.3
    java.lang.NumberFormatException: For input string: "ARXSGPO"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:447)
         at java.lang.Integer.parseInt(Integer.java:497)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:215)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    0
    ------------- 1) PUBLISH -------------
    Disabling requested Output Post Processing. Nothing to process. The output of the request is zero byte.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 03-SEP-2012 17:42:22
    Please help out with a solution.
    Thanks,
    Tech D

    for r12 add one row for parameter "Dummy for Data Security" from desc of XDOREPPB
    follow works for me
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    v_request_id   number;
      3  begin
      4 
      5   begin fnd_global.apps_initialize(0, 20419, 0); end;
      6   v_request_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
      7                                              'XDOREPPB',
      8                                              NULL,
      9                                              NULL,
    10                                              FALSE,
    11                                              'N', -- Dummy for Data Security
    12                                              9888637, -- Request
    13                                              0, -- Template Application
    14                                              'XXAND10_1', -- Template
    15                                              'en-US', -- Template Locale
    16                                              'N', -- Debug Flag
    17                                              'RTF', -- Template Type
    18                                              'RTF' -- Output Format
    19                                              );
    20 
    21    dbms_output.put_line(v_request_id);
    22    if v_request_id > 0 then
    23      dbms_output.put_line('successfully submitted.');
    24      commit;
    25    else
    26      dbms_output.put_line('not submitted.');
    27      rollback;
    28    end if;
    29 
    30  end;
    31  /
    9888651
    successfully submitted.
    PL/SQL procedure successfully completed
    SQL> 'Y' for "Dummy for Data Security" also works for me
    SQL> declare
      2    v_request_id   number;
      3  begin
      4 
      5   begin fnd_global.apps_initialize(0, 20419, 0); end;
      6   v_request_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
      7                                              'XDOREPPB',
      8                                              NULL,
      9                                              NULL,
    10                                              FALSE,
    11                                              'Y', -- Dummy for Data Security
    12                                              9888637, -- Request
    13                                              0, -- Template Application
    14                                              'XXAND10_1', -- Template
    15                                              'en-US', -- Template Locale
    16                                              'N', -- Debug Flag
    17                                              'RTF', -- Template Type
    18                                              'RTF' -- Output Format
    19                                              );
    20 
    21    dbms_output.put_line(v_request_id);
    22    if v_request_id > 0 then
    23      dbms_output.put_line('successfully submitted.');
    24      commit;
    25    else
    26      dbms_output.put_line('not submitted.');
    27      rollback;
    28    end if;
    29 
    30  end;
    31  /
    9888652
    successfully submitted.
    PL/SQL procedure successfully completed
    SQL>

  • Oracle Stored Procedure with out parameter

    Good morning,
    Is it possible to use an Oracle stored procedure with out parameters in MII ?
    If yes, what is the manipulation to see the values of parameters Out?
    Thank you

    Michael,
    This is the  MII query template  :
    DECLARE
    STRCOMPTERENDU NVARCHAR2(200);
    BEGIN
    STRCOMPTERENDU := NULL;
    XMII.SP_VALIDATEPROCESSORDERSLIST2 ( STRCOMPTERENDU => [Param.1]  );
    COMMIT;
    END;
    and the stocked procedure code
    CREATE OR REPLACE PROCEDURE XMII.SP_ValidateProcessOrdersList2(strCompteRendu OUT nVarchar2) IS
    tmpVar NUMBER;
    debugmode INT;
    strClauseSql varchar(2048);
    strListPOactif varchar(1024);
    dtmTimeStamp DATE;
       NAME:       SP_ValidateProcessOrdersList
       PURPOSE:   
       REVISIONS:
       Ver        Date        Author           Description
       1.0        18/06/2008          1. Created this procedure.
       NOTES:
       Automatically available Auto Replace Keywords:
          Object Name:     SP_ValidateProcessOrdersList
          Sysdate:         18/06/2008
          Date and Time:   18/06/2008, 18:45:32, and 18/06/2008 18:45:32
          Username:         (set in TOAD Options, Procedure Editor)
          Table Name:       (set in the "New PL/SQL Object" dialog)
    BEGIN
       tmpVar := 0;
       debugmode := 0;
       -- lecture date systeme pour time stamp
       select sysdate  into dtmTimeStamp from dual;
       if debugmode = 1 then
        DBMS_OUTPUT.put_line('SP_ValidateProcessOrdersList');
       end if;
       -- insertion du bloc dans le log
       insert into LOG_ORDER
        (DATE_ORDER,BLOCK_ORDER,ID_LOG_ORDER)
       values
       (dtmTimeStamp,'SP_ValidateProcessOrdersList',ID_LOG_ORDER.nextval);
       Commit;
        if debugmode = 1 then
        DBMS_OUTPUT.put_line('insertion LOG OK');
       end if;
    strCompteRendu := '0123456-896;0123456-897';
    commit; 
       EXCEPTION
         WHEN NO_DATA_FOUND THEN
           NULL;
         WHEN OTHERS THEN
         ROLLBACK;
         -- insertion du bloc dans le log
       insert into LOG_ORDER
        (DATE_ORDER,BLOCK_ORDER,ID_LOG_ORDER)
       values
       (dtmTimeStamp,' ',ID_LOG_ORDER.nextval);
       COMMIT;
           -- Consider logging the error and then re-raise
           RAISE;
    END SP_ValidateProcessOrdersList2;
    Thanks for your help
    Alexandre

  • Segment Shrinking script erroring out due to Function based indexes, lobs,.

    DB version:10gR2
    Following is a script i made for freeing up(SHRINK ing and resetting HWM) the space in Tables and its indexes. Due to the existence of LOB Segments and Tables with Function based indexes, this script was erroring out. So i was wondering if there is a way to find out the segments which are eligible/not eligible for Shrinking so that i could make necessary changes to the below script.
    create or replace procedure freeup_space
    is
    type v_segment_type is table of varchar2(30) index by binary_integer;
    v_segment v_segment_type;
    begin
    select segment_name bulk collect into v_segment
                   from user_segments
                   where segment_type in ('TABLE')
                     and segment_name not like 'BIN%';
    for i in v_segment.first..v_segment.last loop
    execute immediate 'alter table ' || v_segment(i) ||' enable row movement';
    dbms_output.put_line('Table '||v_segment(i)||'''s row movement enabled');
    execute immediate 'alter table ' || v_segment(i) ||' shrink space cascade';
    execute immediate 'alter table ' || v_segment(i) ||' deallocate unused';
    end loop;
    end;
    /

    You can use USER_LOBS views to look for LOB columns in the segments and ALL_INDEXES.INDEX_TYPE tells if the index is function based index or not.
    Message was edited by:
    Pierre Forstmann

  • Please help to call oracle procedure with out paramter from shell script

    Hi
    I want to call a process with out parameter from shell script. I am calling process in shell script in below way
    function Process_loads {
    ( echo 'set serveroutput on size 1000000 arraysize 1'
    echo "set pagesize 0 term on verify off feedback off echo off"
    echo "BEGIN"
    echo " dbms_output.put_line('Before Calling The package'); "
    echo " x ( '$1', '$2', '$2', '$4', '$5', '$error_code'); "
    echo " dbms_output.put_line('After Calling The package'); "
    echo "EXCEPTION "
    echo " WHEN OTHERS THEN "
    echo " dbms_output.put_line('BIN_LOAD_ERROR' || SQLERRM); "
    echo " ROLLBACK;"
    echo "END;"
    echo "/" ) | sqlplus -s $USER/$PASSWORD@$SID
    Here $error_code is out paramter. All varaibles passed in process are declared with export command.
    When executing .sh it gives below error
    "sh ERROR at line 3: ORA-06550: line 3, column 99: PLS-00363: expression '' cannot be used as an assignment target ORA-06550: line 3, column 3: PL/SQL: Statement ignored".
    Please help to get rid from this error or please suggest how to call a oracle procedure with out paramter from unix shell script.
    Thanks in advance

    You can try this:
    From sql*plus
    SQL> ed
      1  create or replace procedure my_proc(p_id in int, p_result out int)
      2  as
      3  begin
      4  select 10 * p_id
      5  into p_result
      6  from dual;
      7* end my_proc;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2  v_r int;
      3  begin
      4  my_proc(10,v_r);
      5  dbms_output.put_line(v_r);
      6  end;
      7  /
    100
    PL/SQL procedure successfully completed.
    from bash:
    testproc.sh:
    #!/bin/bash
    (echo 'set serveroutput on';
    echo 'declare';
    echo 'v_r int;';
    echo 'begin';
    echo 'my_proc(10,v_r);';
    echo 'dbms_output.put_line(v_r);'
    echo 'end;';
    echo '/';) | sqlplus -s u1/u1
    Console:
    oracle@mob-ubuntu:~$ chmod u+x testproc.sh
    oracle@mob-ubuntu:~$ ./testproc.sh
    100
    PL/SQL procedure successfully completed.With kind regards
    Krystian Zieja

  • AMS 4.0 errors out while creating RTF StatusCheckStep error: Package creati

    Hi All,
    OEM: 11g
    Oracle Apps:12.1.3
    O/S: AIX 6.1
    While creating rtf through AMS 4.0, we are getting the error message:
    Error while evaluating expression:[Error evaluating expression: ${FUNC_STATUS_CHECKER(${data.V_BUGNO})} : [StatusCheckStep error: Package creation request failed
    (Status:Completed Error - Initialization Failed).]]
    Could anyone please share the resolution to the above issue faced before!
    Thanks for your time!
    Regards,

    Hi,
    perhaps my help is still useful.
    On the end of the Customization Manager procedure you will find a status checker. The purpose of status checker is to review the individual steps and highlight the job/job step under trouble.
    In your case, one of the sub jobs, here "Package creation request failed" is erroring out. It can be that the AMP plug in is not completely configured, or requires a patch.
    You should run as first the diagnostic for Customization Manager, to see if the expected configuration is in place. You may also drill down to the individual step logs (within job details) to check if there are any further details.
    Regarding rft: usually you use rtf in combination with BI Publisher. If this is the case, please make sure that you have entered the right $Header$ string
    into the properties for your rtf. This is required to inform adpatch to which data source the rtf belongs to.
    Please let me know if this response is helpful for you.
    Kr, Volker

  • Call to CSD_PROCESS_PVT.UPDATE_PRODUCT_TXN errors out

    Hello,
    We have a requirement where we need to automate the RMA process from iSupport. I can get the Repair Order for the RMA done and create the logistics line. But when I try to update the logistics line for the SHIP order using CSD_PROCESS_PVT.UPDATE_PRODUCT_TXN, I get the following error:
    Return Status : E
    lx_msg_data:= The inventory item id (184937) on product txn line is serialized. So Serial Number is required to interface the charge line.
    lx_msg_index_out:= 1
    My program is as:
    DECLARE
    x_product_txn_rec     CSD_PROCESS_PVT.PRODUCT_TXN_REC;
    --l_repair_line_id            NUMBER := 18260;
    --l_repair_number             VARCHAR2(10);
    lx_return_status VARCHAR2(1);
    lx_msg_index_out NUMBER;
    lx_msg_count          NUMBER;
    lx_msg_data          VARCHAR2(3000);
    v_msg VARCHAR2(250);
    BEGIN
    x_product_txn_rec.product_transaction_id := 23752;
    x_product_txn_rec.repair_line_id := 18270;
    --x_product_txn_rec.estimate_detail_id      := 111633;
    --x_product_txn_rec.action_type             := 'SHIP';
    --x_product_txn_rec.action_code             := 'EXCHANGE';  
    x_product_txn_rec.incident_id := 24562;
    --x_product_txn_rec.transaction_type_id       
    --x_product_txn_rec.business_process_id       
    --x_product_txn_rec.txn_billing_type_id       
    --x_product_txn_rec.original_source_id        
    x_product_txn_rec.source_id := 7;
    x_product_txn_rec.line_type_id := 1002;
    x_product_txn_rec.order_number := '805826';
    --x_product_txn_rec.status                    
    x_product_txn_rec.currency_code := 'USD';
    --x_product_txn_rec.line_category_code    := 'RETURN';    
    --x_product_txn_rec.unit_of_measure_code    := 'EA'; 
    x_product_txn_rec.inventory_item_id := 184937;
    --x_product_txn_rec.revision                  
    x_product_txn_rec.quantity := 1;
    x_product_txn_rec.price_list_id := 6007;
    --x_product_txn_rec.order_header_id         := 58312;  
    --x_product_txn_rec.order_line_id           := 65008;  
    x_product_txn_rec.organization_id := 81;
    x_product_txn_rec.invoice_to_org_id := 1133;
    x_product_txn_rec.ship_to_org_id := 1837;
    x_product_txn_rec.add_to_order_flag := 'Y';
    --x_product_txn_rec.new_order_flag            
    x_product_txn_rec.interface_to_om_flag := 'Y';
    x_product_txn_rec.book_sales_order_flag := 'Y';
    --x_product_txn_rec.release_sales_order_flag  
    --x_product_txn_rec.ship_sales_order_flag     
    x_product_txn_rec.prod_txn_status := 'BOOKED';
    x_product_txn_rec.prod_txn_code := 'PRE';
    --x_product_txn_rec.process_txn_flag          
    --x_product_txn_rec.return_reason             
    --x_product_txn_rec.return_by_date            
    x_product_txn_rec.last_update_date := SYSDATE;
    x_product_txn_rec.creation_date := SYSDATE;
    x_product_txn_rec.last_updated_by := 1091;
    x_product_txn_rec.created_by := 1091;
    --x_product_txn_rec.last_update_login         
    x_product_txn_rec.po_number := 'suntest123';
    -- Following columns are added as part of 11.5.10 release enhancments
    -- Non source columns will be used only when repair type in
    --(Replacement, Exchange and Advance Exchange)
    x_product_txn_rec.non_source_serial_number := 'avr001';
    x_product_txn_rec.non_source_instance_Number := '4272996';
    --x_product_txn_rec.non_source_instance_id     := ;
    --x_product_txn_rec.source_serial_number       := '';
    -- Since instance_number is defined as Number in Charges Record assigning NULL -- value instead of G_MISS_CHAR when initialized. saupadhy Sep-12-2003
    --x_product_txn_rec.source_instance_number    
    --x_product_txn_rec.source_instance_id
    x_product_txn_rec.charge_line_type := NULL;
    CSD_PROCESS_PVT.UPDATE_PRODUCT_TXN
    p_api_version => 1.0,
    p_commit => FND_API.G_FALSE,
    p_init_msg_list => FND_API.G_TRUE,
    p_validation_level => FND_API.G_VALID_LEVEL_FULL,
    x_product_txn_rec => x_product_txn_rec,
    x_return_status => lx_return_status,
    x_msg_count => lx_msg_count,
    x_msg_data => lx_msg_data
    DBMS_OUTPUT.PUT_LINE('Return Status : ' || lx_return_status);
    IF (lx_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
    IF (FND_MSG_PUB.Count_Msg > 1) THEN
    FOR j IN 1..FND_MSG_PUB.Count_Msg LOOP
    FND_MSG_PUB.Get(p_msg_index => j,
    p_encoded => 'F',
    p_data => lx_msg_data,
    p_msg_index_out => lx_msg_index_out);
    DBMS_OUTPUT.PUT_LINE('lx_msg_data:= ' || lx_msg_data);
    DBMS_OUTPUT.PUT_LINE('lx_msg_index_out:= ' || lx_msg_index_out);
    IF lx_msg_data IS NOT NULL
    THEN
    v_msg := lx_msg_data;
    END IF;
    END LOOP;
    ELSE
    --Only one error
    FND_MSG_PUB.Get(p_msg_index => 1,
    p_encoded => 'F',
    p_data => lx_msg_data,
    p_msg_index_out => lx_msg_index_out);
    DBMS_OUTPUT.PUT_LINE('lx_msg_data:= ' || lx_msg_data);
    DBMS_OUTPUT.PUT_LINE('lx_msg_index_out:= ' || lx_msg_index_out);
    v_msg := lx_msg_data;
    END IF;
    END IF;
    END;
    Thanks.

    Ok, so we modified the PACKAGE ISG_OE_ORDER_PUB_PROCESS_ORDER (edit the procedure and details)
    and edit the error out lines and put some debugging into the mapping function.
    Turns out the WSDL XSD validation is very strict, like the ORDER of the ELEMENTS must be exact or the SOA server craps out with mercurial messages.
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>FND_SOA_SERVICE_EXECUTION_ERR:oracle.apps.fnd.soa.util.SOAException: ServiceExecutionError: Error while executing the service Exception returned from JCA Service Runtime. Exception returned from JCA Service Runtime. null
         :Please see service monitor logs for full error trace</faultstring>
    Bottom line, get the ORDER of the ELEMENTS EXACTLY as the service is expecting or it doesn't map them into the PLSQL procedure. It's very brittle XML parser, maybe the coders uses an index to sequence the element list instead of name value lookup. It has to be ALL CAPS case sensitive too.
    We're using SOAPUI and 3rd party EAI WSDL Connection adapter so this is not Oracle middleware SOA Suite or 11 BPEL engine stuff, maybe it's easier if you utilize those native tools. I doubt it, but maybe.
    ken
    PS: make sure you use the
    <proc:InputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    ... set all the semi-important not used by you crappy elements to nil ...
    <proc:FIRST_ACK_CODE xsi:nil="true" />
    <proc:FIRST_ACK_DATE xsi:nil="true" />
    <proc:LAST_ACK_CODE xsi:nil="true" />

  • Transport having Transformations & DTPS errored out with RDDEXECL code 12

    Hi Friends,
    I am importing a Transport  request containing Transfromations, DTPs from Dev to QC system  and it is erroring out with Code 12 and error is as follows
    Program terminated (job: RDDEXECL, no.: 19103500) See job log
    When I looked at Job log i can see the folowing details
    Job started
    Step 001 started (program RDDEXECL, variant , user ID DDIC)
    All DB buffers of application server sht014a5 were synchronized
    ABAP/4 processor: OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Job cancelled
    I looked at ST22 and I found the following details
    Error analysis                                                                   
        An exception occurred that is explained in detail below.                     
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not    
         caught in                                                                   
        procedure "IF_RSBK_TPL_OPTIONAL~SET_LOGSYS" "(METHOD)", nor was it propagated
         by a RAISING clause.                                                        
        Since the caller of the procedure could not have anticipated that the        
        exception would occur, the current program is terminated.                    
        The reason for the exception is:                                             
        You attempted to use a 'NULL' object reference (points to 'nothing')         
        access a component.                                                          
        An object reference must point to an object (an instance of a class)         
        before it can be used to access components.                                  
        Either the reference was never set or it was set to 'NULL' using the         
        CLEAR statement.                                                             
    I am working on SAP NW 2004 S BI 7.0 with support package level at SAPKW70018
    Please let me know how to resolve this error.
    Thanks
    mv_d

    Hi MV,
    Please check below Notes:
    Number: 943957
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=943957
    Number: 992032
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=992032
    Note: As you are re-importing the Transport Request, there may be a chance of the deletion of some of DTP's or Transformations in DEV system.
    Please check whether all the DTP's and Transformations are present in the DEV system (and active also) by comparing with transport request.
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Apr 30, 2009 11:54 AM

  • Payables Open Interface Import getting errors out

    Hello All,
    I am trying to run "Payables Open Interface Import" program to upload the invoice but the program is getting error out, in the log file at the end i am getting the below error:
    (Insert ap inv dists 1a) Inside the insert function
    (Insert ap inv dists 1) Insert into ap_invoice_distributions
    (Insert ap inv dists 1) Insert into ap_invoice_distributions
    ORA-00001: unique constraint (AP.AP_INVOICE_DISTRIBUTIONS_U1) violated
    Insert_ap_inv_dists<-Create_lines<-Import_invoices<- Before report trigger
    (Create Lines 22) Insert into ap_invoice_distributions
    create_non_item_lines<-Import_invoices<- Before report trigger
    Any one faced this kind of issue?
    any suggestions to resolve this.
    Thanks & Regards
    Aboothahir

    Pl post details of OS, database and EBS versions.
    Pl see these MOS Docs
    Payables Open Interface Error ORA-00001: unique constraint (AP.AP_INVOICE_DISTRIBUTIONS_U1) violated          (Doc ID 357784.1)
    APXIIMPT Payables Open Interface Import Fails ORA-00001          (Doc ID 353052.1)
    Unique Constraint Violated Importing Invoices With Multi Line Distribution Set          (Doc ID 386323.1)
    HTH
    Srini

  • Runtime constant (Filename) errors out in BPM

    Hi,
    I have a BPMCollectTime scenario to collect the Source files. The filename (Message Mapping/Transformation) from the files is captured in TRANSFORM STEP(before sending them out from BPM). The file is sent to SEND step one at a time.
    Question : Filename of the source file is captured through user defined function.
    Following is the code.
    ================
    String  v_result_time;          //test Variable
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key =  DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    if (key == null) { v_result_time= "Create Key Failed";}
    else
    {v_result_time= "Create Key worked";
    String valueOld = conf.get(key);
    v_result_time = valueOld;
    return v_result_time;
    The Mapping gives a runtime error in the BPM. This is a sporadic error. 
    I have selected the Adapter specific attribute(File name).
    The BPM errors out sometimes? I am not sure if I am missing any setting. If I delete the work item and run the same scenario it works.
    Question 1 : What is the cause of the above error?
    Question 2 : Does BPM support Adapter specific attribute such as filename?
    Kindly Advice.
    Thanks,
    Gowri

    Hi Everyone,
    Thanks for all the help.
    DTN will not change the response filename to source filename. This option cannot be used. The correlation id is defined as response file name. Response filename is fixed for invoice file.
    Here is the example.
    For invoice file name HDTN20070430163110.TXT, response file received is nav1_2b5.rsp file. For HDTN20070430163314.TXT , response file is nav1_2b5.rsp
    So my correlation id is dummy fixed value. I have known the fact that it is not possible to use context object filename.
    Bhavesh -  I have defined transform step for accessing filename using dynamic configuration. Following is the code used in mapping.
    ================
    String v_result_time; //test Variable
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    if (key == null) { v_result_time= "Create Key Failed";}
    else
    {v_result_time= "Create Key worked";
    String valueOld = conf.get(key);
    v_result_time = valueOld;
    return v_result_time;
    ====================================
    BPM errors out sometime with following error
    Component mapping has returned error.
    com/sap/xi/tf/_MM_DTNData_2_DTNFilename_java.lang.NullpointerException.
    Error: Exception CX_MERGE_SPLIT occurred (program: CL_MERGE_SPLIT_SERVICE========CP, include: CL_
    If I delete this workitem and repeat the same scenario, it works. I have still not understood, why the scenario works sometime.
    Kindly Advice.
    Thanks,
    Gowri

  • Comma delimited in Sql query decode function errors out

    Hi All,
    DB: 11.2.0.3.0
    I am using the below query to generate the comma delimited output in a spool file but it errors out with the message below:
    SQL> set lines 100 pages 50
    SQL> col "USER_CONCURRENT_QUEUE_NAME" format a40;
    SQL> set head off
    SQL> spool /home/xyz/cmrequests.csv
    SQL> SELECT
    2 a.USER_CONCURRENT_QUEUE_NAME || ','
    3 || a.MAX_PROCESSES || ','
    4 || sum(decode(b.PHASE_CODE,'P',decode(b.STATUS_CODE,'Q',1,0),0)) Pending_Standby ||','
    5 ||sum(decode(b.PHASE_CODE,'P',decode(b.STATUS_CODE,'I',1,0),0)) Pending_Normal ||','
    6 ||sum(decode(b.PHASE_CODE,'R',decode(b.STATUS_CODE,'R',1,0),0)) Running_Normal
    7 from FND_CONCURRENT_QUEUES_VL a, FND_CONCURRENT_WORKER_REQUESTS b
    where a.concurrent_queue_id = b.concurrent_queue_id AND b.Requested_Start_Date <= SYSDATE
    8 9 GROUP BY a.USER_CONCURRENT_QUEUE_NAME,a.MAX_PROCESSES;
    || sum(decode(b.PHASE_CODE,'P',decode(b.STATUS_CODE,'Q',1,0),0)) Pending_Standby ||','
    ERROR at line 4:
    ORA-00923: FROM keyword not found where expected
    SQL> spool off;
    SQL>
    Expected output in the spool /home/xyz/cmrequests.csv
    Standard Manager,10,0,1,0
    Thanks for your time!
    Regards,

    Get to work immediately on marking your previous questions ANSWERED if they have been!
    >
    I am using the below query to generate the comma delimited output in a spool file but it errors out with the message below:
    SQL> set lines 100 pages 50
    SQL> col "USER_CONCURRENT_QUEUE_NAME" format a40;
    SQL> set head off
    SQL> spool /home/xyz/cmrequests.csv
    SQL> SELECT
    2 a.USER_CONCURRENT_QUEUE_NAME || ','
    3 || a.MAX_PROCESSES || ','
    4 || sum(decode(b.PHASE_CODE,'P',decode(b.STATUS_CODE,'Q',1,0),0)) Pending_Standby ||','
    5 ||sum(decode(b.PHASE_CODE,'P',decode(b.STATUS_CODE,'I',1,0),0)) Pending_Normal ||','
    6 ||sum(decode(b.PHASE_CODE,'R',decode(b.STATUS_CODE,'R',1,0),0)) Running_Normal
    7 from FND_CONCURRENT_QUEUES_VL a, FND_CONCURRENT_WORKER_REQUESTS b
    where a.concurrent_queue_id = b.concurrent_queue_id AND b.Requested_Start_Date <= SYSDATE
    8 9 GROUP BY a.USER_CONCURRENT_QUEUE_NAME,a.MAX_PROCESSES;
    || sum(decode(b.PHASE_CODE,'P',decode(b.STATUS_CODE,'Q',1,0),0)) Pending_Standby ||','
    >
    Well if you want to spool query results to a file the first thing you need to do is write a query that actually works.
    Why do you think a query like this is valid?
    SELECT 'this, is, my, giant, string, of, columns, with, commas, in, between, each, word'
    GROUP BY this, is, my, giant, stringYou only have one column in the result set but you are trying to group by three columns and none of them are even in the result set.
    What's up with that?
    You can only group by columns that are actually IN the result set.

  • Unable to Capture more than 5 mins, error out of mem msg when rendering

    Somebody help me. I have been using my powermac fcp and a mini dv cam for 4yrs no problems. Now when i am trying to capture clips over 5 mins (1 gig) fcp freezes. So Im capturing through Imovie (which is working fine). Dragging clips into fcp to edit. Now when it comes to rendering anything over 5 mins Im getting an error out of memory msg.
    Can anyone help me?

    You don't say what version of FCP you are using but my guess is you've upgraded QT7 and are running FCP4.5
    If that's the case, do a search here for the solution(s). They're ugly.
    good luck,
    x

Maybe you are looking for

  • IPC 7.0

    Hi gurus Is there any document for installing IPC 7.0 in an SRM7.0 environment? We have followed SAP Note 880749, we are on the latest SP. But I guess something is still missing. Do we need for example to set up RFC connections for the IPC? When chec

  • If You Can Solve This One, Then You Seriously Win

    Here's the deal. I have a 3G 15gig iPod that I refuse to let die. It has a new battery that I recently installed. It will not charge through firewire to the wall or to my macbook pro, nor will it charge through usb (which goes without saying on 3G's)

  • Itunes trouble

    we just bought an ipad 2 for Christmas and we hooked it up to laptop and it worked great, we love it. But now I cant open itunes on my laptop i get this message"the file itunes.it cannot be read because it was created by a newer version of itunes"  a

  • UCM11g: Workflow approve validation

    Hi everybody, I need to validate a custom metadate during the approving. If I click on the Approve link I would like to start "validation code". How? My Ideas: 1. run Filter....... Which Filter? 2. run Javascript ....... Which javascript? Where can I

  • Adjusting volume

    How can I adjust the volume for the incoming calls? I can barely here the other person on the other end