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.
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 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.
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 -
Report to see Trial balance based on Group account
Hi Fi Gurus,
I am trying to see verify my GL balances based on group account no ( Group COA GL). is there a standard report that can help me here?
Thanks in advance.
DasaradhHi,
"Group Account Number" is available in the dynamic selection in report S_ALR_87012277 in ECC 5.0 and ECC 6.0 also.
When you click on "Dynamic Selection" button, in left hand side double click on "Group Acocunt Number" and then you can enter the values in right hand side for this field. (i.e. after activating the "Group Account Number" in dynamic seleections.)
Regards,
Gaurav -
Urgent: Oracle Reports : Blank Page Should print after each Group of record
Hi all,
I have a different kind of requirement, in my report I have 1 block and I want to generate a blank page after every group of records. This is because the printer is printing both side of the paper and we are giving multiple group at same time.
Cannot touch the printer setup since it is a common one. Anybody can help me in this for a fast and simple way ? "Maximum records per page" property for the repeating frame give the next group to a fresh page but there will not be a blank page in between.
Please help ..
Thanks,
Ani.Thank you for your attention.
Empty frame with page break is not helping me since it will not hide the rest of the items which are outside the repeating frame. Like Report caption, Group Name, Page footer etc...
If I am using the empty frame, is there any way to hide all other items ?
Thanks,
Anish -
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
Maybe you are looking for
-
How do i 'undo' changes in logic instruments?
Can anyone help with this please? im using Ultrabeat and cant work out how to 'UNDO' changes - step back to where i was before i changed a setting etc. I'm new to Logic and could really do with a hand with this one. I dont want to have to save before
-
ITunes acts weird when syncronizing.
All of the songs in my iTunes library are on my fifth generation iPod. When I sync to iTunes it seems to remove about 100-105 song then re-syncs them to my iPod, the songs are always still on my iPod they aren't missing after this odd occurrence. It
-
I downloaded CC. FIrst it said PS was installed. PS will not open. Now, it asks if I want to start the trial software. WHY???
-
ALT-DD Tag supported by WLS 7.0?
Hi, When I try to deploy an EAR into WLS 7.0 SP1, I get the following error each time that WLS reaches an <ALT-DD> tag inside the application.xml file: "Alternative descriptor bla-bla.xml can not be found" However, this alternative descriptor file is
-
How can I set automatically downloaded songs from iTunes on an existing playlist?
Hi! I have downloaded songs from itunes in my old macbook which appears automatically in the playlist, but when buy a new macbook and downloaded some songs, a new playlist ws created automatically and all recent song i"ve downloaded goes to that play