Oracle report running total Resseting balance
Dear All,
I am developing report on Oracle R12 fixed Assets, I have to calculate the running total for each asset.
In brief
Asset 1
cost Deprciation Adjusted Cost
50 - 2 48
48 -5 45
45 - 4 41
I achieved that by using
if :p_val is null then
:result := nvl(:cost,0)-nvl(:depriciation,0);
:P_val :='5';
return :result;
else
:result := nvl(:result,0)-nvl(:depriciation,0) ;
return :result;
end if;
working fine
But problem is when the next asset start on same report
Asset 2
cost Deprciation Adjusted Cost
100 5 36
it substracts the last total (running total of previous asset with depriciation which was 41 in this example).
Oracle Champs pl advice me how to solve this.
I really dont got any idea how to solve this.
thanks
Dear,
Thanks for your reply , in your reply what you said I tried this but in pl/sql I am not actually achieving the result. The balance is not resetting at next group if you give one accurate line it would be really helpfull.
thanks
Similar Messages
-
Oracle report running total Resetting balance on next group
Dear All,
I am developing report on Oracle R12 fixed Assets, I have to calculate the running total for each asset.
In brief
Asset 1
cost Deprciation Adjusted Cost
50 - 2 48
48 -5 45
45 - 4 41
I achieved that by using
if :p_val is null then
:result := nvl(:cost,0)-nvl(:depriciation,0);
:P_val :='5';
return :result;
else
:result := nvl(:result,0)-nvl(:depriciation,0) ;
return :result;
end if;
working fine
But problem is when the next asset start on same report
Asset 2
cost Deprciation Adjusted Cost
100 5 36
it substracts the last total (running total of previous asset with depriciation which was 41 in this example).
Oracle Champs pl advice me how to solve this.
I really dont got any idea how to solve this.
thanksDear,
Thanks for your reply , in your reply what you said I tried this but in pl/sql I am not actually achieving the result. The balance is not resetting at next group if you give one accurate line it would be really helpfull.
thanks -
Post Author: Set_Shot_Dave
CA Forum: General
Hello All,
Let me set up my problem first.
I have a running total from a subreport and a running total from my main report.
I shared my running total from both reports ( it didn't work when I did or didn't).
when I do my calculation I get a boolean true as my answer.
By the way my running total from my main report is controled by a formula.
In subreport I did the following;
Called the formula share1
shared numbervar Cong1;
cong1 = sub-report-running total
in main report i did the follwing
called the formula share2
shared numbervar Cong2;
Cong2 = main-report-running total
Still in main report
I create a a field called Calcuation
shared numbervar Cong1
shared numbervar Cong2
numbervar calculation
calculation = Cong1 / Cong2
I get a boolean TruePost Author: Set_Shot_Dave
CA Forum: General
I brought in the shared variable into the report on its own.
No calculation just a formula field as followed
@calculation
shared numbervar share1;
numbervar calculation;
calculation:= share1
I get 0.00
The fields are in the report footer of the main report and report footer of the sub-report is there a problem with this
the -
Crystal report running total balance
Hi guys, please help me.
im creating a report using crystal report that display running balance from subreport.
i do have subreport and add it to main report but i need it real time changing.
for example
TRANSACTION TYPE QTY_IN QTY_OUT RUNNING BALANCE
RECEIVED 1 0 1
RECEIVED 2 0 3
SHIP OUT 0 1 2
SHIP OUT 0 1 1
RECEIVED 1 0 2
diagram shows the needed output of the report. please help. thankshi sir abhilash, i know you know how to fix this, maybe i need to provide some more information about the report: here what i did:
created formula @QTY_IN where code is:
if {ITRN.TRANTYPE} = 'DP' then
{ITRN.QTY}
else
if{ITRN.TRANTYPE}='AJ' then
(if {ITRN.QTY} >=0 then {ITRN.QTY}) else
0
create formula @QTY_OUT
if{ITRN.TRANTYPE}='AJ' then
(if {ITRN.QTY} >=0 then 0 else
{ITRN.QTY}) else
if{ITRN.TRANTYPE}='WD' then
{ITRN.QTY}
else 0
create running total fields for @QTY_IN And @QTY_OUT
total_qty_in and total_qty_out
sum the fields and resets every change of group.
create a formula(running) based on your suggetion
create running_total_reset code is
WhilePrintingRecords;
numbervar rt := 0;
paste it to group header.
the output is
in out running
shipment 0 -4 146116
shipment 0 -1 146117
shipment 0 -4 146116
but it should be
in out running
shipment 0 -4 (-146118) 146114
shipment 0 -1 (-146114) 146113
shipment 0 -4 (-146113) 146109
so on so forth.
we can do this sir. thanks ^__^.
really appreciate your help. -
Hello everybody,
I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinfo +total receipts-total payments). reports runs correctly via report builder. balances are ok. but the problem is when i run this report via oracle form opening balance return only ope from table bankinfo and skips total receipts-total payments.....
i dont think so why this happend at all. some body help me...
thanks
Abdul SalamHi ,
This community is to discuss Oracle Application Server specific issues, you can post this query in for better response:
Oracle Reports (MOSC)
Regards,
Prakash. -
Customer Statement Report - running total
Greetings,
Example : Customer XYZ has 3 invoices, and on the 06/02/08 cheque World Bank Acc 100200 $800 paid for
Inv 2000
02/01/08 Inv #1000 $1000
05/02/08 Inv #2000 $800
04/03/08 Inv #3000 $600
The statement should show as below:
Date Details Dr Cr Balance
02/01/08 Inv #1000 1000 1000
05/02/08 Inv #2000 800 1800
06/02/08 World Bank 100200 800 1000
04/03/08 Inv #3000 600 1600
Anyone worked on some form of balance / running total like that before in the PLD ?
Thank you
Edited by: Davinder Singh on Jan 13, 2009 10:17 AMPlease check this thread:
Re: Running Total in QLD
Thanks,
Gordon -
Oracle Reports : Run time error when there is a call to DBMS_LOB package
I am facing a strange issue, please do share if you have some inputs. When I try running the compiled RDF report(Generating XML to be specific), Oracle Reports Builder crashes when I make use of the following formula function. Strangely, this works fine in the backend. Moreover I tried debugging and by trial and error method found out that, when there is a call to the DMBS_LOB package it errors (works fine when this is commented). Please do let me know whats the root cause of this issue. Thanks in advance
function CF_ClientSignatureFormula return VARCHAR2 is
file_name BFILE;
dir_name VARCHAR2(100);
dest_file_name VARCHAR2(100);
dest_path VARCHAR2(400);
begin
SELECT client_signature
INTO file_name
FROM xxfpr.fpr_rcp_bank_details frb,
Xxfpr. fpr_rcp_gtn_rpt_map frm
WHERE frb.record_id = frm.bank_record_id
AND frm.gtn_request_id = :p_gtn_request_id;
SYS.DBMS_LOB.filegetname(file_name,dir_name,dest_file_name);
SELECT directory_path INTO dest_path FROM all_directories where directory_name = dir_name;
dest_path := dest_path || '/' || dest_file_name;
return dest_path;
EXCEPTION
WHEN OTHERS THEN
RETURN NULL;
end;
Thanks,
NirmalGeoAnd what version of Reports are you using?
BFILES are accessible from the database, not the client (Reports). So, put your code in the database. -
List of Oracle Reports run through Oracle Portal.
Hi,
It's possible that I am posting my message to a wrong Forum. If that's so, please let me know (and the correct forum too).
I have several Oracle Reports that are run through Oracle Portal (when user clicks a link for a report). I want to get a list of all such Oracle Reports in one go as I need to modify all of them. At the moment, to get the actual report name that I need to modify I am following the steps below.
When I am at 'Oracle Reports Security' page (in the Portal) where there is a section 'Reports Definition File Access',
1. I click list icon without entering any value in the box. It shows me a list of all report definitions.
2. After selecting a report definition, and clicking Edit, it shows me 'Manage Component' page. There are several links available. One of them is 'Edit'.
3. I click 'Edit' and it shows me the actual 'Oracle Reports File Name'. This is the file I need to work on.
But instead of following the above steps for each of the several reports I need to modify, is there any way, say by running a SQL query, to find out the actual Oracle Reports file names?
The 'Manage Component' page shows 'Run Link' and links for 'PL/SQL source'. I tried to search for the schema name and package name in the database (by connecting as SYS user). However, I found neither the Schema not the Package.
Hope my question is clear. In brief, I want to get a list of Oracle Reports file names that are run through Oracle Portal.
Any questions, please let me know.
Thanks and regards,
Manoj.Jim,
Did you ever try to add Reports portlet as an item, so that user can click on each item to customize/schedule the report? You can have 50 of them, if that is what you really need.
Any reason why you want to create custom user interface, instead of using this vehicle that Portal provided by default?
You mentioned "The report Portlet ... does not allow customization." Actually, it does. You can do it by clicking on the Customize link of the Reports portlet.
Hope this helps,
-Jeff -
Connectivity of Websphere with Oracle reports running on Oracle 9i AS
How can we connect to Oracle Reports services and in turn generate reports; by accessing it from an application running in websphere, which is running on different machine in the same network. Our environment is such that we are forced to use these two application servers.
we're currently looking at building the reports j2ee thin client for ibm websphere - however do not have a scheduled date for this. you can see if the j2ee thin client meets your requirements by looking at the doc for it for the bea client:
http://otn.oracle.com/products/reports/htdocs/getstart/examples/Tools/thinclient/bea/Readme.html
is something like this for websphere what you are looking for?
thanks
paul narth
oracle reports & portal product management -
Oracle Reports running very slow
The same Oracle reports, which used to take 15 seconds to complete, now takes about 4 minutes to complete. Any ideas? Thank you.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JS:
Thank you for your reply. Could you be more specific about network problem? We've changed our web application server and reports server settings recently. What could cause network problems? <HR></BLOCKQUOTE>
Well, I would suggest that you got to be very clear with the query. Most of the report peformace is based on the query.
1. Make sure that query is fine and note down the time it takes.
2. If first step is clear and if you are happy with the output that is process time, then you can think about tuning the report.
( You may want skip this step)
3. If that does not work you can investigate
what kind of array it uses and network speed and other thinks. I am not really familior with these set up.
Good luck with it..
Regards ...
Krishna ...
null -
i want to generated a database report which will run on Web. is it sufficient to install Oracle Client 8.1.7 or do i need to install any other components seperately?
thanxyou need the report server to run reports on the web.
check out "New Features in Oracle9iAS Reports Services and Oracle iDS Reports Developer 6i"
on http://otn.oracle.com/sample_code/products/reports -
Crystal report running total explodes after adding a low-level characterist
I've profit center hierarchy, suppressed to show only level 5 of the hierarchy in crystal report and the report has Group1:Division, Group2:Company Code and Group3:Profit Center hierarchy and I have summary at each group level.
and now when I click on a profit center, I want to drill-down to show all customers for that profit center, sales document and few other characteristics.... that I want to add to the details.
After adding these characteristics to the details, the Summary at group division is not right for the AR Balance and I've other key figures and Iam sure they are also not correct. Any help with fixing this issue will be appreciated. Thanks.I've profit center hierarchy, suppressed to show only level 5 of the hierarchy in crystal report and the report has Group1:Division, Group2:Company Code and Group3:Profit Center hierarchy and I have summary at each group level.
and now when I click on a profit center, I want to drill-down to show all customers for that profit center, sales document and few other characteristics.... that I want to add to the details.
After adding these characteristics to the details, the Summary at group division is not right for the AR Balance and I've other key figures and Iam sure they are also not correct. Any help with fixing this issue will be appreciated. Thanks. -
Oracle 9i query in Oracle 8 (Running Total)
Please tell me the alternate SQL for Oracle 8 against this query which is written in Oracle 9i:
SELECT empid,empname,empgpay,sum(empgpay) over (order by empid) AS runningtotal
FROM employee;There is not a sql structure in Oracle8i to do that directly in SQL Statement. You have to create a program unit to carry out it.
Joel P�rez -
I want to put a running total as alphabets.
For Example
1. Question Title
A) Option 1
B) Option 2
C) Option 3
2. Question Title
A) Option 1
B) Option 2
C) Option 3
I got the running numbers for Question Title but i am not getting the A,B,... for Answers.
Have anyone done similar with Crystal Reports Running Total or any other different way?Hi Dharmesh,
Try this:
1) Group by Title
2) Create this formula and place it on the Group Header:
WhilePrintingRecords;
numbervar i := 64;
3) Create another formula and place this on the Details Section:
WhilePrintingRecords;
numbervar i;
i := i + 1;
if i <= 90 then
chrw(i);
-Abhilash -
Each page of Oracle Report Generates separate pdf file.
I have a problem that i want that oracle report runs for one time and generates sepatate pdf files for each oracle report page.eg. if there are 8 page of report then 8 pdf files should generate (one pdf file for each page) but the condition is that the print job is set to NO and page range should not be given each time.
What version of Reports are you using?
If it's 10g then have a look at Report Bursting as this should enable you to send the report to multiple files based on a repeating group.
Mark
Maybe you are looking for
-
FW: Processing Logged messages in batch mode ?
If you rename your partitions' log files before running the app and do the renaming according to each partitions' purpose or partition number, then after running the app, just go to the approprate log file. You can do the renaming using system agents
-
UCM 9.1 7975 Sets can't restrict user preferences
We have CallManger 9.1 installed and just noticed that we can't restrict the settings on the 7975 sets to only User Preferences - all 7 options are showing Is there a patch with the 9.1 for the 7975 sets?
-
Can I develop any ipod apps with a G5, Imac 10.4.11?
Do I need to get an Intel based Mac with 10.6.6?
-
Hi, I am displaying one one status message if vendor num is not enterd. After that I want to stop the execution of remaining program. I am using EXIT...after that message. but its not working.. I tried with STOP also..but its also not working. MESSAG
-
Item availability in background for make to order scenario
hi to all i have a requierment for our project ,out client process is make-to order . once Sales creates the sales order this order will go for process order converted into production order.onec the goods produced against this sales order by doing MI