Supplier Merge Fail "Stuck"  ERR REP-1401: 'c_update_dup_vendorformula'

My users attempted to merge suppliers and received the error copied below and now all other users (include me (admin)) have the attempted suppliers "stuck" in the supplier merge screen when we open it.
Payables: Version : 11.5.0 - Development
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
APXINUPD module: Supplier Merge Program
Current system time is 07-AUG-2012 15:19:06
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_LAST_UPDATED_BY="2077"
P_SET_OF_BOOKS_ID="1"
P_FA_INSTALLED_FLAG="N"
P_PO_INSTALLED_FLAG="Y"
P_PA_INSTALLED_FLAG="N"
P_INV_INSTALLED_FLAG="N"
P_PN_INSTALLED_FLAG="N"
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.WE8ISO8859P1
LOG :
Report: d:\Applfmsp\fmspappl\ap\11.5.0\reports\US\APXINUPD.rdf
Logged onto server:
Username:
LOG :
Logged onto server:
Username: APPS
MSG MSG-00001: After SRWINIT
MSG MSG-00002: After Get_Company_Name
MSG MSG-00003: After Get_NLS_Strings
MSG MSG-00004: After Get_Base_Curr_Data
MSG MSG-00007: After Custom_Init
MSG MSG-01000: Checking for duplicate tax sites...
MSG MSG-01001: Selecting duplicate vendor sites...
MSG MSG-01002: Modifying recurring payments...
MSG MSG-01004: Selecting duplicate vendors (INV)...
MSG MSG-00100: Updating Invoice id :275274
MSG MSG-00200: Updating ap_invoices.......
MSG MSG-00300: Updating ap_checks......
MSG MSG-00100: Updating Invoice id :276655
MSG MSG-00200: Updating ap_invoices.......
MSG MSG-00300: Updating ap_checks......
MSG MSG-00100: Updating Invoice id :277026
MSG MSG-00200: Updating ap_invoices.......
MSG MSG-00300: Updating ap_checks......
MSG MSG-00100: Updating Invoice id :277027
MSG MSG-00200: Updating ap_invoices.......
MSG MSG-00300: Updating ap_checks......
MSG MSG-01003: Updating Vendor...
ERR REP-1401: 'c_update_dup_vendorformula': Fatal PL/SQL error occurred.
ORA-01422: exact fetch returns more than requested number of rows
MSG MSG-00020: After SRWEXIT
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 3
Cause: The program terminated, returning status code 3.
Action: Check your installation manual for the meaning of this code on this operating system.
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 2163883.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Finished executing request completion options.
Concurrent request completed
Current system time is 07-AUG-2012 15:19:21
---------------------------------------------------------------------------

Hi;
Similar issue mention for R12. Please see: R12: Supplier Merge Error ORA-00001: unique constraint (AP.AP_HISTORY_INVOICES_U2) violated [ID 843379.1]
If its similar issue like yours you need to rise Sr
Regard
Helios

Similar Messages

  • ERR REP-0771: After Form trigger failed.

    Hi,
    Concurrent request fails with the error
    ERR REP-0771: After Form trigger failed.
    This happen when this job runs when job is scheduled.
    But doesn't occur when i manually run this job.

    Please review the following note, it may be helpful.
    Note: 1080783.6 - REP-0771 AfterPForm Trigger Failed
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1080783.6

  • REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found

    Hi guys,
    I am getting error 'REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found ' when run the report
    and i m also use formula column in my report.
    can any body help me why it's coming.
    following code is used in formula column plz check and verify:
    function CF_3Formula return Char is
    T1 VARCHAR2(100);
    begin
    SELECT
         VAT_REG_NO INTO T1
    FROM
         JA_IN_HR_ORGANIZATION_UNITS JIHOU,
         HR_LOCATIONS HL--,
         --MTL_TXN_REQUEST_HEADERS MTLH
    WHERE
    JIHOU.ORGANIZATION_ID=HL.INVENTORY_ORGANIZATION_ID AND
    JIHOU.LOCATION_ID=HL.LOCATION_ID AND
    --Jihou.ORGANIZATION_ID = Mtlh.Organization_Id AND
    -- Hl.INVENTORY_ORGANIZATION_ID =Mtlh.Organization_Id AND
    -- MTLH.ATTRIBUTE10=SUBSTR(HL.LOCATION_CODE,1,3) AND
    SUBSTR(HL.LOCATION_CODE,1,3)= :TO_ORG1 ;
    RETURN (T1);
    end;
    plz help me out.

    Hi;
    What is EBS version? Is it custom report or not?
    See below which is mention similar errors
    Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
    APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
    Regard
    Helios

  • Iam getting the error REP-1401: '': Fatal PL/SQL error occurred. when i

    When i run the report to generate xml file in report builder the following error messages are displayed.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1401: '': Fatal PL/SQL error occurred.
    pls help me.Its urgent
    Regards,
    Kranthi

    Hi;
    What is EBS version? Is it custom report or not?
    See below which is mention similar errors
    Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
    APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
    Regard
    Helios

  • REP -1401 Fatal PL/SQL error occurred.

    Hi All,
    In my rdf report i have a formula column with the following code in it..
    function CF_PO_NumberFormula return Char is
    cursor cur_pending_po
    is
    select distinct pll.po_header_id
                   from
                   PO_LINE_LOCATIONS_ALL pll,
                   po_lines_all pla
                   where 1=1
                   and pll.po_line_id=pla.po_line_id
                   and pll.org_id=pla.org_id
                   and pll.org_id=5050
              and pla.item_id=:inventory_item_id
                   and (pll.quantity-pll.quantity_received)>0
                   AND EXISTS(SELECT 1 FROM PO_HEADERS_ALL PHA
              WHERE PLL.PO_HEADER_ID=PHA.PO_HEADER_ID
              AND PHA.APPROVED_FLAG='Y'
              AND PHA.CLOSED_CODE IS NULL)
                   order by pll.po_header_id;
    po_num     varchar2(4000);
    begin
    po_num:=null;
    for rec_cur_pending_po in cur_pending_po
    loop
    select segment1||','||po_num into po_num
    from
    po_headers_all
    where 1=1
    and po_header_id=rec_cur_pending_po.po_header_id;
    end loop;
    return rtrim(po_num,',');
    exception
         when others then
         po_num :=null ;
    return po_num;
    end;
    when i am running the report, it is getting errored out..following is the log file message...
    Arguments
    P_ORGANIZATION_ID='5100'
    P_FROM_DATE='2009/08/31 13:30:00'
    P_TO_DATE='2009/09/02 13:30:00'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /app/oapps/11.5.5/opm7ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to: /app/oapps/11.5.5/opm7ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_AMERICA.UTF8
    REP-1401: 'cf_po_numberformula': Fatal PL/SQL error occurred.
    Report Builder: Release 6.0.8.27.0 - Production on Thu Sep 10 11:38:18 2009
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 25343374.
    Review your concurrent request log and/or report output file for more detailed information.
    Can Anyone help me on this..

    I would suggest the best place to start is with some diagnostics - first of all in the exception handler. Try
    SRW.MESSAGE(999,'PO number formula failed - '||sqlerrm);
    This will give you more information as to the exact error which occurred.
    Also, I hope you have tested the query separately before putting it in the report! - may be an obvious one, but it is possible that you may have a data size problem on the po_num variable. Do you know how many rows the cursor will return?
    This should give you somewhere to start.
    Edited by: mike_p on Sep 11, 2009 2:09 PM
    Edited by: mike_p on Sep 11, 2009 2:10 PM

  • TT 7.0.5  : Err : REP: TT16133: Peer signals change in its configuration

    Hello there,
    We've encountered a replication problem ( TT16133 ) and would like to get more details about its cause, severity, and suggestion to mitigate it .
    Configuration : TimesTen Release 7.0.5.0.0 (64 bit Linux/x86_64)
    By looking at the context around the time these errors were reported, it appears we were doing a ttMigrate -c on several datastores, including the one which threw the error.
    Primary datastore has the following line in its tterrors.log :
    05:02:17.47 Err : REP: 4592: <datastore>:transmitter.c(5079): TT16133: Peer signals change in its configuration
    Replicated datastore has the following lines in its tterrors.log :
    05:02:06.66 Err : REP: 20483: <datastore>:receiver.c(1661): TT16154: Failed to check for replication schema changes
    05:02:06.66 Err : REP: 20483: <datastore>:receiver.c(1661): TT6003: TT6003: Lock request denied because of time-out
    Details: Tran 3.690152 (pid 20483) wants S lock on rowid 0x000000000083f8d0, table TTREP.REPLICATIONS. But tran 32.18086 (pid 6579) has it in U (request was U). Holder SQL (call ttRepSchemaInfo(1);) -- file "table.c", lineno 25438, procedure "sbTblNextActiveTuple()"
    05:02:06.66 Warn: REP: 20483: <datastore>:receiver.c(1694): TT16155: Temporary failure to access replication configuration
    The replication daemons on both sides were successfully up and running for few hours already, as well as their replication schemas being successfully uploaded onto them, at that time.
    Thank you,
    Ionut

    It is very likely that the ttMigrate -c is the culprit. That operation will place some locks on system tables and it looks like they are held for a not insignificant time. While those locks were held, the repagent tried to access the same tables to check if any schema changes had occurred and was not able to do so. The error is transient and should not cause any problems and can be safely ignored. it is possible that this could be a bug since:
    1. It maybe the ttMigrate is holding locks for too long and could releae them sooner (we'd have to investigate to see that is the case).
    2. A failure to check the schema change status on one peer should probably not result in an indication that the schema has changed on other peers. Again, we'd have to look into this.
    If you are concerned about this then you should open an SR so that further investigation can be done.
    Regards,
    Chris

  • ERR REP-6101Failed to strat Java Virtual Machine

    Hallo
    I have a problem with XML customizing of reports. When I want to run full defined XML report by RWRUN60 I become this error:
    ERROR:Unable to obtain JNI enviroment!
    ERROR: XML definition failed to parse!
    ERR REP-6101 Failed to start Java Virtual Machine. Please check the Java Runtime Enviroment Setup.
    Does enyone knows how to solute this problem. Thanks.
    DM

    Pls try this
    Problem Description
    REP-6101 Failed to Start Java Virtual Machine error is returned when running a report from the command line using the CUSTOMIZE= runtime parameter.
    NOTE: The error does not occur if the CUSTOMIZE parameter is not included in the command line.
    Solution Description
    Set the following Environment Variables:
    REPORTS60_CLASSPATH to include the rt.jar, myreports60.jar, and xmlparser.jar files and set REPORTS60_JNI_LIB.
    For example setting the environment variables using the C shell:
    setenv REPORTS6O_CLASSPATH $ORACLE_HOME/network/jre11/lib/rt.jar:
    $ORACLE_HOME/reports60/java/myreports60.jar:$ORACLE_HOME/reports60/
    java/xmlparser.jar
    setenv REPORTS60_JNI_LIB $ORACLE_HOME/network/jre11/lib/sparc/
    native_threads/libjava.so
    Explanation
    The REPORTS60_CLASS path needs to be set to include the necessary jar files and REPORTS60_JNI_LIB specifies the Java Virtual Machine native library.
    References
    For additional information please refer to section 5.29 of the Developer 6i Release Notes.
    Thanks
    The Oracle Reports Team

  • Rep-1401: formula name : Fatal Pl/SQL error occured

    Hi,
    I am using report builder 6.0 and recently came across a error while running the report. Rep-1401:<formula name> : Fatal Pl/SQL error occured.
    I created a formula column in the report. In that i have three local variable.
    f_val number := 0;
    s_val number := 0;
    t_val number := 0;
    t_val := f_val/s_val ; --> this gives the above fatal error.
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error
    t_val := f_val/(s_val + 1); ---> no error
    if i change the value of s_val
    s_val := 1;
    t_val := f_val/(s_val - 1) ; ----> this gives the above fatal error.
    Can anyone help me to solve this problem or is it report builder bug.
    Please help me, as i desperately need help.
    Thanks

    Thanks for ur reply.
    I used nvl too, but the same error occurred.
    For the information in my question I by mistake typed
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error.
    but when the value of f_val = zero and s_val is zero why it gives fatal error when i divide, i used nvl on both the variable while dividing but still got the same error.
    but if s_val is greater than zero then no error occurs.
    please help me, I feel it is a bug.

  • Rep-1401 : Fatal PL/SQL error occured

    Hi,
    I am using report builder 6.0 and recently came across a error while running the report. Rep-1401:<formula name> : Fatal Pl/SQL error occured.
    I created a formula column in the report. In that i have three local variable.
    f_val number := 0;
    s_val number := 0;
    t_val number := 0;
    t_val := f_val/s_val ; --> this gives the above fatal error.
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error
    t_val := f_val/(s_val + 1); ---> no error
    if i change the value of s_val
    s_val := 1;
    t_val := f_val/(s_val - 1) ; ----> this gives the above fatal error.
    Can anyone help me to solve this problem or is it report builder bug.
    Please help me, as i desperately need help.
    Thanks

    The best way to handle this is to just add an exception handler that handles a zero divide.
    EX:
    function...blah
    var3:=var/var2...
    EXCEPTION
    when zero_divide then
    var3:= 0;Zero Divide is a built-in exception to handle cases just like this - so if you run into it, you can set it to whatever you want

  • REP-1401:'cf_1formula': Fatal PL/SQL error occured, ORA-01403: no data fou

    hi,
    my report is giving error REP-1401:'cf_1formula': Fatal PL/SQL error occured,
    ORA-01403: no data found
    There are two table emp1 and emp2 created from employees table from HR schema
    I have deleted some records from table emp2 where department id is 110
    main query is
    select employee_id, first_name, department_id from emp1
    now i created a foumula column
    function CF_1Formula return Number is
    dept number;
    begin
    select department_id into dept from emp2 where employee_id = :employee_id;
    return(dept);
    end;
    the above error is given when report is run. i tried
    exception
    when_no_data_found then
    dept:=000
    but problem is not solved
    i want to disply any number in this foumula column if the record is not found

    M. Khurram Khurshid wrote:
    exception
    when_no_data_found then
    dept:=000try this code in formula
    function CF_1Formula return Number is
    dept number;
    begin
    select department_id into dept from emp2 where employee_id = :employee_id;
    if dept is not null then
    return(dept);
    else
    return 0;
    end if;
    end; Hope this will help you...
    If someone response is helpful or correct please, mark is accordingly.

  • REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal.

    Hi,
    I am running the report Journals - General (132 char)- file name GLRGNJ.rdf from
    Oracle Report Builder 6.0.8.11.3.
    I have commented all the (srw.user_exit) in the Before Report trigger but i still
    get the message:
    REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal,
    successful completion.
    Can anyone suggest a solution please?
    Thanks,
    Faris

    Dear sir, i am created one formula column in Reports6i and the following error has come. Could u please find out a solution. Thanks in advance.
    my function is below
    function CF_Branch_NameFormula return Char is
    lc_branch_name varchar2(100);
    begin
    SELECT rtrim(substr(FVT.DESCRIPTION
    ,instr(FVT.DESCRIPTION,'-',1)+1
    ,100)) INTO lc_branch_name
    FROM FND_FLEX_VALUES FFV, FND_FLEX_VALUES_TL FVT
    WHERE FFV.flex_value_Set_id = 1007956
    AND FFV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    AND FFV.FLEX_VALUE = FVT.FLEX_VALUE_MEANING
    AND FVT.DESCRIPTION <> 'xxx'
    and rownum<=1
    AND SUBSTR(FVT.FLEX_VALUE_MEANING,3,2) = :P_BRANCH;
    return (lc_branch_name);
    end;

  • REP-1401: 'cf_10formula': Fatal PL/SQL error occurred. ORA-06502: PL/SQL: numeric or value error

    Hi Team,
    I am running one conc programme.
    After running I am getting below  error. I checked the issue on metalink  and other, seems that it is an size related issue. I have increased the size of formula columns and placeholdder too.
    But still getting issue.
    My requirement is to get comma seperated values using SQL query itself. Neither i wanted to create layout of the report , since it is a XML publisher report and nor  I am including it on RTF template.
    I want the CF_10 formula column to be populated with comma seperated values.
    MSG-00187: From Date 01-Sep-2014
    REP-1401: 'cf_10formula': Fatal PL/SQL error occurred.
    ORA-06502: PL/SQL: numeric or value error
    And Here is my code for CF_10
    function CF_10Formula return Number is
    begin
       SELECT NVL(TO_CHAR(sum(Amount),'99,99,99,999'),0) into :CP_5 --NVL(ROUND(sum(Amount)),0) into :CP_5
    --  xxhw_Coll_cat(category)     "Intercat  Catg"
    FROM hhxw_Region_col_v
    WHERE Category IN ('Intercompany - CATV')
    AND trunc(gl_date) BETWEEN TO_DATE(:P_FROM_DATE, 'DD/MM/RRRR') AND TO_DATE(:P_TO_DATE, 'DD/MM/RRRR');
    RETURN ROUND(:CP_5);
    end;
    Anyone please suggest me.
    Regards,
    Sachin

    Hi,
    1)Why are you selecting the value into a report item? Select into a local variable and return that
    RETURN :CP_5 --> This one!!
    2)And you should avoid applying functions to DB columns in where clauses wherever possible, so oracle can use indexes on them if applicable:
    AND gl_date >= To_date(:P_FROM_DATE, 'DD/MM/RRRR')
    AND gl_date < To_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
    I think you are taking 2 column in the Layout CF_10 and CP_5 right? if so, then use below Query.
    FUNCTION cf_10formula
      RETURN NUMBER
    IS
      v_amount NUMBER:null;
    IS
    BEGIN
      BEGIN
        SELECT nvl(round(SUM(amount)), 0)
        INTO   v_amount --> Retruns the value for CF_10 column
        FROM   hhxw_region_col_v
        WHERE  category IN ( 'Intercompany - CATV' )
        AND    gl_date >= to_date(:P_FROM_DATE, 'DD/MM/RRRR')
        AND    gl_date < to_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
        :CP_5 := nvl(trunc(v_amount),0); --> Retruns the value for CP_5 column
      EXCEPTION
      WHEN OTHERS THEN
        v_amount := 0;
        srw.message(1003,'Error in Getting  :' ||p_from_date);
      END;
    END;
    And
    If you've got a number function returning into a number field then all you should need to do to make the comma appear is to change the number format mask in field.
    From 40000 to 40,000

  • REP-1401: 'no_daysformula':Fatal PL/SQL error occured. ora-06503: PL/SQL : Functio returned without value. REP-0619: You cannot run without a layout.

    Hi everyone.
    Can anyone tell me what is wrong in this code below?
    Code:
    function NO_DAYSFormula return Number is
    begin
      IF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
      AND :P_TO_DT<:MATURITY_DATE
      AND :ACCT_OPN_DT>:P_FR_DT
      THEN RETURN (:P_TO_DT-:ACCT_OPN_DT+1);
      ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
      AND :P_TO_DT<:MATURITY_DATE
      AND :ACCT_OPN_DT<:P_FR_DT
      THEN RETURN (:P_FR_DT-:P_TO_DT+1);
      ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
       AND :P_TO_DT>:MATURITY_DATE
       AND :ACCT_OPN_DT<:P_FR_DT
      THEN RETURN (:P_FR_DT-:MATURITY_DATE+1);
      END IF;
    END;
    It gets compiled successfully but when i run the report, i get 2 errors.
    Error 1:
    REP-1401: 'no_daysformula':Fatal PL/SQL error occurred.
    ora-06503: PL/SQL : Function returned without value.
    Error 2:
    REP-0619: You cannot run without a layout.
    Should i use only 1 return statement?
    Can i use as many return statements as i want?
    What is the exact mistake? Please let me know.
    Thank You.

    Let me clear you the first thing...
    If you get any fatal errors while running the report (e.g., function returned without value,no value etc.,) the report will show
    REP-0619: You cannot run without a layout.
    So you just correct the function 'no_daysformula' .
    First of all you run the report without that formula column.
    If it works fine then , Check the return value of your formula column (Your formula column properties --> Return value --> value (It will be DATE as i think so).
    As function will always return a single value, Check your formula 'no_daysformula' returns the same.
    declare a return variable say for example..
    DECLARE
    V_DATE DATE;
    BEGIN
    --YOUR CODE---
    RETURN V_DATE := (RETURN VALUE)
    END;
    Last but not least ... use Else condition to return (NULL or any value ) in your code and check..
    If any Problem persists let me know
    Regards,
    Soofi.

  • Barcode Report is not working in Linux REP-1401: 'cf_1formula': Fatal PL/SQ

    In windows its barcodesample is working fine.(all the barcode constants)
    In linux
    1.I have set the CLASSPATH in reports.sh
    2.and I also added the classPath value in <engineId...> tag in the reportservername.confg file.
    3.And I restart the report server as well as application server also. still I am getting the following error messages.
    REP-1401: 'cf_1formula': Fatal PL/SQL error occurred.
    ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
    In windows I followed the same steps its working fine.But Linux its not working any idea.!!! Its really urgent....
    Thanks,
    Natarajan.U
    Mail:[email protected]

    Hello,
    The note 278044.1 available on metalink may help you :
    Note.278044.1 How to Debug REP-1401 when executing Reports with Barcode java code ?:
    Regards

  • REP-1401 error occurs when calculating percentage

    Hi all,
    I have a formula column with formula like this:
    function percent1Formula return Number is
    v_percent number;
    begin
    v_percent := (:qty1 - :qty2) / :qty2 * 100;
    return(v_percent);
    end;
    It gives me REP-1401 Fatal PL/SQL/ error.
    Does anyone know how to write percentage formula in report builder?
    Thanks in advance,
    Vanessa

    Hi all,
    I have a formula column with formula like this:
    function percent1Formula return Number is
    v_percent number;
    begin
    v_percent := (:qty1 - :qty2) / :qty2 * 100;
    return(v_percent);
    end;
    It gives me REP-1401 Fatal PL/SQL/ error.
    Does anyone know how to write percentage formula in report builder?
    Thanks in advance,
    Vanessa Hi Vanessa,
    what happens if :qty2 is zero?
    it raise zero_divide exception.
    so u need to write exception handler for that case
    ur code will look like
    function percent1Formula return Number is
    v_percent number;
    begin
    v_percent := (:qty1 - :qty2) / :qty2 * 100;
    return(v_percent);
    exception
    when zero_divide then
    <do what u want to do in this case>
    return(....);
    when others
    <do what u want to do in this case>
    return(....);
    end;
    hope it is clear.
    kiran.

Maybe you are looking for

  • How to gain different permissions than the user's current logon provides?

    I have a computer on a local network which contains a shared folder, and I've granted reading permissions for all users. How can I grant a certain Java application, or gain from a certain application, which a user running on a different computer, per

  • Enlarging and collapsing navigation panel

    Hi All, We are showing the KM folder structure in Portal content area, we want to know whether we can implement the feature of Enlarging and collapsing navigation panel to the Portal content area also the way SAP Implemented for navigation panel with

  • Plant related materials needs to be appeared in SC

    Hi Experts, i need your suggestions for the below mentioned issue. i  have 10 materials which is maintained for P1,P2,P3 plants and i have 6 materials maintained for P4 plant out of 10 materials. when my user  is trying to shop a material related to

  • ENGLISH AND ARABIC TEXT IN SAPSCRIPT

    Dear ABAP Gurus, I have been working on one SAPSCRIPT wherein customer wants the text to appear both in English as well as in ARABIC. I have created the script in English and added the ARABIC part too in the layout.  But I do not get the ARABIC chara

  • Downloading Itunes to new computer and then synching Iphone

    I got a new computer and I downloaded the newest version of Itunes and when I connect my Iphone to synch, it will only synch to the computer the items I bought from Itunes and will not synch the items I downloaded and didn't purchase through Itunes.