Rep-1401 Error
Hi ,
How can I solve below mentioned problem?
In report it is showing the Error like "Rep-1401 'Desc_thickformula' Fatal PL/SQL error occured
ora-06502 PL/SQL numeric or value error". Before this report is working fine.
No modification done in the report.Now it is showing the error.
When choosing one of the parameter value :Ptype =ALL then only this report having problem.
When selecting :ptype any individual value it is working.
I don't know how this error occurred. Any solution for this please send? it would be very helpful for me?
Before this report is working fine in all the cases of parameter selection.
No modification done in the report.
When choosing one of the parameter value :Ptype =ALL then only this report having problem.
When selecting :ptype any individual value it is working.
when selecting two individual value in the parameter it i not working.
What might be the the problem when value :Ptype =ALL?
Similar Messages
-
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,
VanessaHi 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. -
REP-1401 error when excuting report
Hi,
I'm running a Report builder report that uses User Parameters and an Oracle stored procedure.
After providing the user parameters the report starts to run for a minute and then returns the message. REP-14-1: 'qr_1refcurds': Fatal PL/SQL error occurred.
Any suggestions on correcting this. The help was no help.
Thanks, JimHi,
As mentioned in the Reports online Help (http://www.oracle.com/technology/products/reports/index.html), this error was caused due to an abnormal condition. Per the Action suggested, may be you would want to first contact your system administrator to determine if the message was caused by something other than Oracle Reports. If you determine that the message was not the result of user error or a system problem, then you can contact Oracle Support Services. -
REP-1401, FATAL PL/SQL ERROR ....
HI,
I am trying to open a text file in oracle reports in one of the fomula column and it gives me the REP-1401 error. The syntax is as below. Is there any idea why its behaving so ? "UPC_Folder" and "UPCFile" are the two user parameters, that I am passing correctly. I mean valid folder and file name. But still I am getting error. Please help
function CF_1Formula return Char is
Upc_File Text_Io.File_Type;
UpcFiles Varchar2(500);
Begin
UPCFILES := CHR(39)||:UPC_Folder||'\'||:UpcFile||CHR(39);
Upc_File := TEXT_IO.FOPEN(UPCFILES,'R');
return('Done');
End;Hi Feroz,
A typical problem is that you are opening the file multiple times without closing it. If your formula is executed multiple times, then the second FOPEN without a FCLOSE will cause this error. This would happen if your formula is inside a query group. If you add some logic to only open the file once, or else if you close it each time it is called (not very efficient, but it works), then the error should go away.
regards,
Stewart -
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.
ThanksThanks 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.
ThanksThe 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 -
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 foundM. 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,
FarisDear 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: 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 -
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,
SachinHi,
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 -
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. -
Rep 1401"desc_thik_widformula" fatal pl/sql error
Hi,
This problem in a currently using report.
the error is:- ' rep 1401"desc_thik_widformula" fatal pl/sql error'
This error occurs when only selecting one of the parameters - name:- :Sub_inventory , Value :- 'Tube Lines'
Last 31st July 2010 it worked fine. Now Having Problem .
When I put any other value to this parameter the report is working fine.
Function def: given Below
function Desc_Thik_widFormula return Char is
x varchar(20);
t varchar(20);
begin
select description into x from xxmmi_item_thickness_v where flex_value = :thick;
return x ;
end;
Please Suggest possible reasons for the problem here?
Thanks in advance.Hi Naseer,
This error occurs when only selecting one of the parameters - name:- :Sub_inventory , Value :- 'Tube Lines'Try executing the below SQL Select statement using the above values from SQL Plus.
select description from xxmmi_item_thickness_v where flex_value = :thick;Check out the value for description, most probably it should be of length more then 20 characters.
Also do check the size for the "Desc_Thik_wid" formula column.
Set the size of the formula column or x variable or both as required.
It's good practice to define variables as follows in PL/SQL:
variable_name table_name.column_name%type; In your case
x xxmmi_item_thickness_v.description%type; Hope this helps.
Best Regards -
See this error in report REP-1401: cf_1formula: Fatal PL/SQL errir occurred
hi mater
sir i use oracel reprot 6i
i try to use formula for calculation see
function avggFormula return Number is begin
:cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
return(:cp_1);
end;
this formula complie rightly no error
but when i run my report
that give me this error
REP-1401: 'cf_1formula': Fatal PL/SQL errir occurred.
ORA-01476: divisor is equal to zero
please give me idea how i solve my this error
thank;
aamirHi Aamir,
The problem is that divisor by 0 (zero) is not possible.
So you need to make sure that in your calculation there's no division by zero.
In your case :bugamt is equal to zero then you will get this error.
So just make sure that :bugamt is not equal to zero.
You can do this as follows:
function avggFormula return Number is begin
IF :bugamt != 0 THEN
:cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
END IF;
return(:cp_1);
end;
Regards
Arif -
REP-1401: 'cf_1formula': Fatal PL/SQL error occurred.
Hi all,
I am using the barcodes example which is on otn.
I am getting the result on the development side which is my local set-up. (windows-2000) and i am using Report Builder 9.0.4.0.21.
I am able to see the barcode.
If i try the same thing on my deployment side which on my AS(Application server) which on UNIX platform .
I am getting the below error....
REP-1401: 'CF_1FORMULA0031': Fatal PL/SQL error occurred.
ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
I had gone thru metalinks and i found few docks saying change of width of file_name
I am enclosing the details
the below is the change i did in rep_<server>.conf
<engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="60000" classPath="$ORACLE_HOME/reports/jlib/oraclebarcode.jar">
and i had made an entry in reports.sh as mentioned in one of the docs in metalinks.
and i had changed the width of
myfilename varchar2(20);
to
myfilename varchar2(256);
and CF_1 width to same
The code in
function CF_1FORMULA0031 return Char is
myfilename varchar2(256);
result varchar2(20);
barcodeData VarChar2(50) := :order_ID;
begin
myFileName := srw.create_temporary_filename;
barcodemaker.setBarWidthInch(globals.bcobj, 0.005);
barcodemaker.setBaseCodeData(globals.bcobj,barcodeData);
barcodemaker.setBarCodeType(globals.bcobj,globals.barcode_to_use);
myfilename := barcodeData;
barcodemaker.setFullPath(globals.bcobj, myFileName);
barcodemaker.renderBarCode(globals.bcobj);
return(myfilename);
end;
and i had opened the trace on and my trace says the below....
[2004/4/9 8:10:50:171] Debug 50103 (EngineManager:spawnEngine): Start engine command line = $ORACLE_HOME/bin/rwengine.sh -server -cp $ORACLE_HOME/reports/jlib/oraclebarcode.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/jlib/zrclient.jar -Xbootclasspath/p:$ORACLE_HOME/vbroker4/lib/vbjboot.jar -Duser.language=en -Duser.region=US -Xmx256M oracle.reports.engine.RWEngine name=rwEng-0 server=rep ORACLE_HOME=/ora10g engineimplclass=oracle.reports.engine.EngineImpl traceopts=trace_all tracefile=$ORACLE_HOME/reports/logs/rep/rwEng-0.trc tracemode=trace_replace cacheDir=$ORACLE_HOME/reports/cache
which means the server is picking the jar files....
can any one tell me what can be the issue......
Advise me at the earliest................
cheers,
ALIHi Aamir,
The problem is that divisor by 0 (zero) is not possible.
So you need to make sure that in your calculation there's no division by zero.
In your case :bugamt is equal to zero then you will get this error.
So just make sure that :bugamt is not equal to zero.
You can do this as follows:
function avggFormula return Number is begin
IF :bugamt != 0 THEN
:cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
END IF;
return(:cp_1);
end;
Regards
Arif -
REP-1401: 'cf_changetotalformula': Fatal PL/SQL error occurred.
The program is finding no data in some place and is erroring out.
when i run the report i get the following error
REP-3000: Internal error starting Oracle Toolkit.
MSG-00010: EC installation status I
MSG-00003: Calling the archiving routine with parameters PO, STANDARD, 6677
REP-1401: 'cf_changetotalformula': Fatal PL/SQL error occurred.
ORA-01403: no data found
The following is the program
function CF_ChangeTotalFormula return Number is
v_maxrev number:=0;
v_result_final number :=0;
v_changes_to_curr varchar2(2000);
v_changes_to_prev varchar2(2000);
v_OriginalPOAmount varchar2(2000);
v_changes_from varchar2(2000);
v_changes_to varchar2(2000);
v_seq number ;
v_rev_num number ;
v_para varchar2(100);
begin
select icx_po_history_details_s.nextval into v_seq from dual;
select max(revision_num) into v_rev_num from apps.po_lines_archive where po_header_id =:poh_po_header_id;
for i in 1 .. v_rev_num loop
if v_rev_num >1 then
v_para := null;
else
v_para := 'ORIGINAL';
end if;
begin
pos_revision_differences.compare_headers(:poh_po_header_id,null,i,v_para,v_seq);
exception
when others then
return 0;
end;
end loop;
Select sum(pol.unit_price*pol.quantity) OriginalPOAmount
into v_OriginalPOAmount
from apps.po_lines_archive pol
where pol.revision_num = 0
and po_header_id = :poh_po_header_id
group by pol.po_header_id;
select max(revision_num)
into v_maxrev
from apps.po_lines_archive
where po_header_id = :poh_po_header_id;
if v_maxrev > 1 then
select distinct a.changes_to
into v_changes_to_curr
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = v_maxrev
and a.changes_from <> v_OriginalPOAmount;
if v_maxrev-1 <> 1 then
select distinct a.changes_to
into v_changes_to_prev
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = v_maxrev-1
and a.changes_from <> v_OriginalPOAmount;
else
select distinct a.changes_to
into v_changes_to_prev
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = 1;
end if;
v_result_final := v_changes_to_curr - v_changes_to_prev;
else
select distinct a.changes_from,a.changes_to
into v_changes_from,v_changes_to
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = 1;
v_result_final := v_changes_to - v_changes_from ;
end if;
return v_result_final;
/* exception
when others then
return 0; */
end;
Can anyone shed a light on this.
thanks
kalpanaThe program is finding no data in some place and is erroring out.
when i run the report i get the following error
REP-3000: Internal error starting Oracle Toolkit.
MSG-00010: EC installation status I
MSG-00003: Calling the archiving routine with parameters PO, STANDARD, 6677
REP-1401: 'cf_changetotalformula': Fatal PL/SQL error occurred.
ORA-01403: no data found
The following is the program
function CF_ChangeTotalFormula return Number is
v_maxrev number:=0;
v_result_final number :=0;
v_changes_to_curr varchar2(2000);
v_changes_to_prev varchar2(2000);
v_OriginalPOAmount varchar2(2000);
v_changes_from varchar2(2000);
v_changes_to varchar2(2000);
v_seq number ;
v_rev_num number ;
v_para varchar2(100);
begin
select icx_po_history_details_s.nextval into v_seq from dual;
select max(revision_num) into v_rev_num from apps.po_lines_archive where po_header_id =:poh_po_header_id;
for i in 1 .. v_rev_num loop
if v_rev_num >1 then
v_para := null;
else
v_para := 'ORIGINAL';
end if;
begin
pos_revision_differences.compare_headers(:poh_po_header_id,null,i,v_para,v_seq);
exception
when others then
return 0;
end;
end loop;
Select sum(pol.unit_price*pol.quantity) OriginalPOAmount
into v_OriginalPOAmount
from apps.po_lines_archive pol
where pol.revision_num = 0
and po_header_id = :poh_po_header_id
group by pol.po_header_id;
select max(revision_num)
into v_maxrev
from apps.po_lines_archive
where po_header_id = :poh_po_header_id;
if v_maxrev > 1 then
select distinct a.changes_to
into v_changes_to_curr
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = v_maxrev
and a.changes_from <> v_OriginalPOAmount;
if v_maxrev-1 <> 1 then
select distinct a.changes_to
into v_changes_to_prev
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = v_maxrev-1
and a.changes_from <> v_OriginalPOAmount;
else
select distinct a.changes_to
into v_changes_to_prev
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = 1;
end if;
v_result_final := v_changes_to_curr - v_changes_to_prev;
else
select distinct a.changes_from,a.changes_to
into v_changes_from,v_changes_to
from icx_po_revisions_temp_v a
where a.header_id = :poh_po_header_id
and a.field_altered = 'Amount'
and a.revision_num = 1;
v_result_final := v_changes_to - v_changes_from ;
end if;
return v_result_final;
/* exception
when others then
return 0; */
end;
Can anyone shed a light on this.
thanks
kalpana
Maybe you are looking for
-
Force PDF to open in browser to preserve relative links?
We have thousands of PDF files that are set up to include relative links within the document to other PDF files. The issue we're having is that when people have set up their browser to open the PDF as a separate application, the relative links revert
-
Translation of an InDesign document
The newsletter I put out for work requires publishing in both English and Portuguese. I do not speak Portuguese and we use a translator. Prior to my arrival in this position, the newsletter was designed in Microsoft Publisher and was sent to the tran
-
I am trying to backup my apps and I've already authorized my computer, but it's giving me the error that I need to authorize my computer even though I already have.
-
Hi Can you please let me know how to make font bold in ALV using function module? I mean REUSE_ALV_GRID_DISPLAY? BEst REgards Chinmoy
-
Horrible experience and the movie kept stalling through iTunes on appletv. Gave up (after paying for it) and ended up renting it through cable provider. Anyone know how to get $ back from apple?!