Running Total / Balance
I am new in PL/SQL want help to create running total as per requirement. please see example
Create table inv(
inv_Date date,
inv_co_code number,
inv_fnd_code number,
inv_uprice number,
inv_nofu number)
insert into inv
values (to_date('28/06/2010','dd/mm/yyyy'), 3, 22,504.45, 27984.8882)
insert into inv
values (to_date('27/07/2010','dd/mm/yyyy'), 3, 22,504.68, 206.2768)
insert into inv
values (to_date('27/08/2010','dd/mm/yyyy'), 3, 22,504.68, 236.8442)
insert into inv
values (to_date('26/09/2010','dd/mm/yyyy'), 3, 22,504.68, 235.4543)
insert into inv
values (to_date('23/10/2010','dd/mm/yyyy'), 3, 22,504.1, 266.1079)
insert into inv
values (to_date('27/10/2010','dd/mm/yyyy'), 3, 22,500, 278.3025)
insert into inv
values (to_date('27/11/2010','dd/mm/yyyy'), 3, 22,500.01,264.618)
insert into inv
values (to_date('29/11/2010','dd/mm/yyyy'), 3, 22,500.37,39970.4219)
insert into inv
values (to_date('27/12/2010','dd/mm/yyyy'), 3, 22,500,242.2639)
insert into inv
values (to_date('27/12/2010','dd/mm/yyyy'), 3, 22, 500,328.5569)
insert into inv
values (to_date('27/01/2011','dd/mm/yyyy'), 3, 22, 500,416.6914)
Create table red(
red_Date date,
red_co_code number,
red_fnd_code number,
red_uprice number,
red_nofu number)
insert into red
values (to_date('09/06/2011','dd/mm/yyyy'), 3, 22,502.1700, 56948.2057)
insert into red
values (to_date('01/06/2011','dd/mm/yyyy'), 3, 22,502.1700, 12494.7081)I need result like this
INV_DATE INV_CO_CODE INV_FND_CODE INV_UPRICE INV_NOFU running Balance Balance
28/06/2010 3 22 504.45 27984.8882 28963.3175 0
27/07/2010 3 22 504.68 206.2768 28757.0407 0
27/08/2010 3 22 504.68 236.8442 28520.1965 0
26/09/2010 3 22 504.68 235.4543 28284.7422 0
23/10/2010 3 22 504.1 266.1079 28018.6343 0
27/10/2010 3 22 500 278.3025 27740.3318 0
27/11/2010 3 22 500.01 264.618 27475.7138 0
29/11/2010 3 22 500.37 39970.4219 12494.7081 0
27/12/2010 3 22 500 242.2639 242.2639
27/12/2010 3 22 500 328.5569 328.5569
27/01/2011 3 22 500 416.6914 416.6914Please help.
Ty this. may be useful for you.
select inv_date,inv_co_code,inv_fnd_code,inv_uprice,inv_nofu,red_units,runningTotal,
greatest( runningTotal-red_units, 0) balance
from (
select inv_date,inv_co_code,inv_fnd_code,inv_uprice,inv_nofu,
(select sum(red_nofu) from red) red_units,
sum(inv_nofu) over (order by inv_date,inv_co_code,inv_fnd_code) runningTotal
from inv
INV_DATE INV_CO_CODE INV_FND_CODE INV_UPRICE INV_NOFU RED_UNITS RUNNINGTOTAL BALANCE
28/06/2010 3 22 504.45 27984.8882 69442.9138 27984.8882 0
27/07/2010 3 22 504.68 206.2768 69442.9138 28191.165 0
27/08/2010 3 22 504.68 236.8442 69442.9138 28428.0092 0
26/09/2010 3 22 504.68 235.4543 69442.9138 28663.4635 0
23/10/2010 3 22 504.1 266.1079 69442.9138 28929.5714 0
27/10/2010 3 22 500 278.3025 69442.9138 29207.8739 0
27/11/2010 3 22 500.01 264.618 69442.9138 29472.4919 0
29/11/2010 3 22 500.37 39970.4219 69442.9138 69442.9138 0
27/12/2010 3 22 500 242.2639 69442.9138 70013.7346 570.8208
27/12/2010 3 22 500 328.5569 69442.9138 70013.7346 570.8208
27/01/2011 3 22 500 416.6914 69442.9138 70430.426 987.5122
11 rows selectedEdited by: Ahmed on Jun 22, 2011 4:03 AM
Similar Messages
-
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. -
Running Total for "cleared balance"
I want to produce query that will produce two running totals. The 1st once is straight forward and is 'Ledger Balance' - that is the balance after a particular transaction has taken place on that day. The Cleared Balance is the running total balance accounting for the value date of a transaction. For example a transaction for today, say $50 may be value dated tomorrow and hence is included in the Ledger Balance but would not appear in the Cleared balance until tomorrow.
Lets try and use some simple data:
TransactionsTable
Tran_ID TranDate ValueDate Amount
1 01/02/2004 01/02/2004 50
2 01/02/2004 01/02/2004 25
3 01/02/2004 05/02/2004 30
4 01/02/2004 01/02/2004 55
5 02/02/2004 04/02/2004 11
6 02/02/2004 02/02/2004 23
7 02/02/2004 02/02/2004 33
8 02/02/2004 02/02/2004 47
9 04/02/2004 04/02/2004 10
10 07/02/2004 07/02/2004 5
StatementHistory
AC_No Start_Date End_Date Opening_Ledger Opening_Cleared
55 02/02/2004 02/02/2004 160 130
55 04/03/2004 04/02/2004 274 233
Assuming that the account opened on the 01/02/04 with a zero balance.
So for a daily statement on the 01/02/04, I'd expect to see the following Details
TranDate ValueDate Amount Ledger Balance Cleared Balance
01/02/2004 01/02/2004 50 50 50
01/02/2004 01/02/2004 25 75 75
01/02/2004 05/02/2004 30 105 75
01/02/2004 01/02/2004 55 160 130
So for a daily statement on the 02/02/04, I'd expect to see the following Details
TranDate ValueDate Amount Ledger Balance Cleared Balance
02/02/2004 04/02/2004 11 171 130
02/02/2004 02/02/2004 23 194 153
02/02/2004 02/02/2004 33 227 186
02/02/2004 02/02/2004 47 274 233
And skipping to the 04/02/04, I'd expect to see.
04/02/2004 04/02/2004 10 284 254
I can get the ledger balance using:
sum(amount_to_account) OVER (PARTITION BY ac_no , trans_ID
ORDER BY TranDate, trans_ID
RANGE UNBOUNDED PRECEDING)
+ sh.Opening_Ledger
But I'm unsure how to get the Cleared balance as this need to access transaction inforation from a number of days previous (possibly up to 5 days allowing for maximum period for clearing a transaction).
Does anyone have an idea how to achive this?Hi,
Try this:
WITH A AS
select 1 col1, 'A' col2, 2 col3 from dual union all
select 1 col1, 'A' col2, 2 col3 from dual union all
select 1 col1, 'A' col2, 2 col3 from dual union all
select 1 col1, 'B' col2, 3 col3 from dual union all
select 1 col1, 'B' col2, 3 col3 from dual union all
select 1 col1, 'C' col2, 5 col3 from dual union all
select 1 col1, 'D' col2, 2 col3 from dual union all
select 1 col1, 'D' col2, 2 col3 from dual
,B AS
SELECT
A.*
,ROW_NUMBER() OVER (PARTITION BY COL1, COL2 ORDER BY 1) RN
FROM
A
SELECT
B.*
,SUM(CASE WHEN RN = 1 THEN COL3 ELSE 0 END) OVER ( ORDER BY COL1, COL2 ,RN ) cumulative_tot
FROM
B
COL1 COL2 COL3 RN CUMULATIVE_TOT
1 A 2 1 2
1 A 2 2 2
1 A 2 3 2
1 B 3 1 5
1 B 3 2 5
1 C 5 1 10
1 D 2 1 12
1 D 2 2 12
8 rows selected Regards,
Peter -
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 -
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 -
Cumulative Balance Running Total
Hello community,
i am doing a business partner Account balance report, i have already successfully fetch my data in to crystal reports as well as the running total for the cumulative balance, my problem is i have a duplicated rows in debit side, now how will i say to crystal reports (in Formula expression) that the 1st line if duplicated will the only one to be evaluated. for more detail please see image below
http://i264.photobucket.com/albums/ii184/abing430/CRDuplicatedRows.png
http://i264.photobucket.com/albums/ii184/abing430/CRDuplicatedRows-1.png
please help.
best regards,
Fidelhello sharonamt,
thanks for the response.
//Head
Shared NumberVar OB := {Command.Open Balance}
//Line
shared numbervar OB;
OB := OB + {BP_AccountBalance;1.Credit} - {BP_AccountBalance;1.Debit}
//Footer
Shared numbervar OB
i have this ff. formula the header is put in the page header, the line is put ing Group Footer section and the footer is put in report footer section. my group is grouped by Ref field w/c is unique in this report.
the duplicated rows is eliminated since i put my line formula in the group footer. but using the ff. formula's the report is ok, the results is fine on the first page only, because in the second page it will get the OB balance which is in the page header of the report., i dont needt to reset my running total.
thanks.
please help
best regards.
EDIT:
i have manage to figure out my problem... i just use this formula and it works.
whileprintingrecords;
if pagenumber = 1 then Shared NumberVar OB := {OpeningBalance.Open Balance}
else
0
since im having problem with reseting of the openingbalance, i had trap the page numvber and never reset the running total. this formula works for me as of now.
Fidel
Edited by: Avelino Fidel on Jan 24, 2011 2:46 PM -
Customer running ledger balance
i book invoices for customers in the table;
create table tinv
(ccode varchar(3),
ctxnno number,
cdate date,
cei varchar2(1),
camt number,
cmemo varchar2(200));
insert into tinv values ('101',1,to_date('15/01/2009','dd/mm/yyyy'),'E',150,null);
insert into tinv values ('101',2,to_date('25/01/2009','dd/mm/yyyy'),'E',50,null);
insert into tinv values ('101',3,to_date('02/02/2009','dd/mm/yyyy'),'E',100,null);
insert into tinv values ('101',4,to_date('10/02/2009','dd/mm/yyyy'),'E',250,null);
insert into tinv values ('101',5,to_date('18/03/2009','dd/mm/yyyy'),'E',150,null);
insert into tinv values ('101',6,to_date('05/04/2009','dd/mm/yyyy'),'E',200,null);
insert into tinv values ('101',7,to_date('25/04/2009','dd/mm/yyyy'),'E',300,null);
insert into tinv values ('101',8,to_date('15/05/2009','dd/mm/yyyy'),'E',100,null);
i receive payment from customers in the table;
create table tpay
(pccode varchar(3),
ptxnno number,
pdate date,
pei varchar2(1),
pamt number,
pmemo varchar2(200));
insert into tpay values ('101',1,to_date('01/01/2009','dd/mm/yyyy'),'I',200,null);
insert into tpay values ('101',2,to_date('30/01/2009','dd/mm/yyyy'),'I',100,null);
insert into tpay values ('101',3,to_date('05/02/2009','dd/mm/yyyy'),'E',50,null);
insert into tpay values ('101',4,to_date('25/02/2009','dd/mm/yyyy'),'I',150,null);
insert into tpay values ('101',5,to_date('15/04/2009','dd/mm/yyyy'),'I',150,null);
ccode = pccode, is the common field that links both the tables.
i want the output result to come as like this;
Date Tno Memo Debit Credit Balance Amount
30/01/2009 Opening Balance 200 200 0
30/01/2009 2 100 -100
2/2/2009 3 100 0
5/2/2009 3 50 50for the in-between report period
var M_FRM_DATE varchar2(10);
var M_UPTO_DATE varchar2(10);
exec :M_FRM_DATE :=TO_DATE ('30/01/2009','dd/mm/yyyy');
exec :M_UPTO_DATE:= TO_DATE ('05/02/2009','dd/mm/yyyy');
the query should go back records prior to 'm_frm_date' in both the tables by
summing up the total "Debits and Credits" for customer '101' and displays the result on
the first row of the report as;
30/01/2009 Opening Balance 200 200 0
and then, the actual records falling between 'm_frm_date' & 'm_upto_date'
should be shown with a running cumulative balance as the last "Balance Amount" column
any help is greatly appreciated.
TY.
Edited by: user649208 on Jan 24, 2010 12:20 AMLedger are best handled at report level.
Else it can get difficult in the format it is expected at front end.
There might be a better way of doing this.But on a week end this is what i came up with.
thanks for posting create and insert
WITH DATA AS (
SELECT ccode,cdate,cei,camt,ctxnno FROM tinv
UNION
SELECT pccode,pdate,pei,pamt,ptxnno FROM tpay
SELECT cdate,txno,SUM(op_cre) credit,SUM(op_deb) debit
FROM (
SELECT CASE WHEN cdate < to_date('30 jan 2009','dd mon yyyy') THEN
to_date('30 jan 2009','dd mon yyyy')
ELSE cdate
END cdate,
CASE WHEN cdate < to_date('30 jan 2009','dd mon yyyy') THEN
NULL
ELSE ctxnno
END txno,
CASE WHEN cdate < to_date('30 jan 2009','dd mon yyyy') AND cei='I' THEN
camt
WHEN cdate >= to_date('30 jan 2009','dd mon yyyy') AND cei='I' THEN
camt
END op_cre,
CASE WHEN cdate < to_date('30 jan 2009','dd mon yyyy') AND cei='E' THEN
camt
WHEN cdate >= to_date('30 jan 2009','dd mon yyyy') AND cei='E' THEN
camt
END op_deb,
decode(cei,'I',camt,-camt) bal
FROM DATA)
GROUP BY cdate,txno
ORDER BY cdate,txno NULLS FIRSTCheers!!!
Bhushan -
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 -
Running totals in crystal designer
Hi all!
I want to create a report with running total, that accumulate Balance value for each page.
Total accumulate should be reseted on each new page.
I have a query for report: SELECT CardCode, CardName, Balance FROM OCRD.
And i want a running total for field "Balance" (this total should be reseted on each new page).
In Crystal Designer I create new Running Total Field (in the PageFooter section).
In the Editing Running Total window I fill the following sections:
1) Summary section. Field to summarize: "Command.balance". Type of summary: "sum".
2) Evaluate section. On change of field: "command.cardcode"
3) Reset section. I want to choose PageNumber in the field "on change of field". But there is no any special field in the section "Available tables and fields"
How to reset the running total on each new page?
Thanks in advanceHi all!
The problem can be solved with report formulas. Probably this information will be useful to somebody.
So, we have the following task: need to calculate subtotals on each page.
Let's look at the solution.
On the first step, create Formula fields:
1) InitPageSum field has formula:
WhilePrintingRecords; NumberVar PageSum := 0;
2) CalcPageSum field has formula:
WhilePrintingRecords;
numberVar PageSum := PageSum + {Command.LineTotal}; // I use command to get field-values from //database
numberVar PageSum
3) PageBalance field has the following formula:
WhilePrintingRecords; numberVar PageSum
On the second step we place formula-fields in report sections.
1) Variables initialization.
Insert section in PageHeader area (lets name this section PHa). Drag formula InitPageSum into PHa for zeroing PageSum for each page. Then suppress the section PHa.
2) Increasing subtotal on page.
Create additional section in Details area (Dc). Drag CalcPageSum formula-field on this section (Dc). PageSum variable will be increasing in each line. Suppress the section Dc.
3) Display results.
a) Insert additional section in PageFooter area (let's name it PFa). Drag PageBalance formula-field into this section (PFa). The section PFa should be displayed on each page of the report, except the last page. The formula is:
if PageNumber <> TotalPageCount then true else false.
b) Insert additional section in ReportFooter area (let's name it RFa) and make this section the first section of the Report Footer area. Drag PageBalance formula-field into the section RFa. The section RFa should be displayed on the last page only. So, for the Suppress property of this section, create the formula:
if PageNumber = TotalPageCount then true else false
We make this adjustment (additional section in report footer area) because we need subtotals directly under the report (and not at the bottom of the page)
Best regards,
Katrine -
Hi,
Is there a way in QLD can have a running total like the Crystal Report capabilities? Is this possible in the Repetative Area1.
Example :
DocTotal Drawsum Result
500000 200000 300000
300000 100000 200000
200000 200000 0
The purpose of this is for Cash Advance Monitoring from AP Downpayment Invoice.
Is this possible by running difference / Balance ?
Thank you very much.
Regards,
clintHi Suda,
this is the data for you to refer :
CREATE TABLE (
INT,
DATETIME,
NVARCHAR(100),
NUMERIC(15,2),
NUMERIC(15,2),
INT,
NUMERIC(15,2),
NUMERIC(15,2),
NUMERIC(15,2),
NUMERIC(15,2)
GO
/* Data for the `Query_Result` table (Records 1 - 8) */
INSERT INTO (, , , , , , , , , )
VALUES (1575, '20080110', N'SAADA PASIGAN', N'0', N'165308.83', 135, N'165308.83', N'500000', N'334691.17', N'334691.17')
GO
INSERT INTO (, , , , , , , , , )
VALUES (1592, '20080111', N'SAADA PASIGAN', N'0', N'79563.6', 135, N'79563.6', N'500000', N'420436.4', N'420436.4')
GO
INSERT INTO (, , , , , , , , , )
VALUES (1599, '20080111', N'SAADA PASIGAN', N'0', N'53102.95', 135, N'53102.95', N'500000', N'446897.05', N'446897.05')
GO
INSERT INTO (, , , , , , , , , )
VALUES (1604, '20080111', N'SAADA PASIGAN', N'0', N'38415.6', 135, N'38415.6', N'500000', N'461584.4', N'461584.4')
GO
It compute for the difference of the DocTotal1 and Drawsum, that is correct but I want to have a running diffrence betwenn MIN(Drawsum) only.
Example from the above data :
The total Cash Advance is 500000 only. The Drawsum will deduct the 500000 until it become zero. Refer Below :
Doctotal DrawSum The Remaining Total of 500000
500000 165308.83 334691.17
the remaining amt shall be carry on which is the 334691.17 and not the 500000.
DocTotal DrawSum The Remaining Total of 500000
334691.17 79563.6 255127.57
255127.57 53102.95 202024.62
202024.62 38415.6 163609.2
and so onn...
Hope that you got me.
Thank you.
Clint -
Open transactions (Total Balance due = 0)
dears, i need your help with the following :
we want a query which provide us with open transactions...
what i mean with open transactions is the transactions where their Total Balance due = 0 from transaction screen..
i tried to get the tables from the screen but nothing returned this value
can you help me with that??
thanksHi.
Run the following query:
SELECT
trx_number,
amount_due_original,
amount_due_remaining
FROM ar_payment_schedules_all
WHERE status = 'CL'
AND class in ('INV', 'DM', 'CM')
Octavio -
Running total for item availbe qty. from On Hand - SO + PO by promise date
I stuck with Balance(running total).
How to link item number with SO and PO?
Need daily item qty. available qty from "On Hand" Qty. + PO - SO by promise date and sort by ascending?
Item# Order Date SO/PO PromiseDate Qty Bal.
AE01 08/01/08 OnHand 20 20
08/02/08 SO#1877 08/05/08 -3 17
08/04/08 SO#2044 08/08/08 -6 11
07/22/08 PO#632 08/10/08 10 21
Thanks.create a group by promise date
2nd group by po#
put the fields either in the group or in the details
PO#, PO promise date, qty and SO#, SO promise date, qty then availability qty
manual running totals
create 3 formulas
1 reset
WHILEPRINTINGRECORDS;
NUMBERVAR ITEMLOC := 0;
place in the group header on what you want the total to reset by (po#)
1 calc
WHILEPRINTINGRECORDS;
NUMBERVAR ITEMLOC := ITEMLOC +(qty};
this gets placed where the calculate will take place (next to qty)
1 display
WHILEPRINTINGRECORDS;
NUMBERVAR ITEMLOC;
ITEMLOC
this gets placed in the group footer.
for each field that gets calculated by a group create 3 formulas for each
they need to have the same variable name to reference each other.
if you need to create a 2nd set to calc something else give that a new variable name. -
Multiple Reset in Running Total Field
Hello,
I have defined 2 groups in my report
I have a running total field that it reset on group #2 changes.
Sometimes, Group #1 changes but Group #2 doesn't changes therefore the running total field doesn't reset.
I need to define the running total field that it reset on group #2 changes or on group #1 changes too.
Thanks,I will expand my issue with an example:
Group #1 : Account Number
Group #2 : Company Name
Movements Details, Debit, Credit, Balance (Running Total Field)
Total Group # 2
Total Group # 1
Sometimes, a account number exist in company 1 but not in company 2. Therefore, group #1 changes meanwhile group #2 does'nt change and as a result the Running Total Field does'nt reset. -
Running Total and In Current Year Columns Source
Hi all,
What is the source for Running Total and In Current Year Columns from Absence Detail Screen.
From Which tables can I get the information on those columns.
Thanks in AdvanceHello,
I am still struck with Running Total Column
When i fetch running total using this query it works for some of the employees
SELECT SUM(ABSENCE_hours) from PER_ABSENCE_ATTENDANCES where person_id = <your person id> and absence_attendance_type_id = <your absence type id>
As there are three different cases here as Days,Hours and No Balance
I am missing the logic again here when it comes for no balance and days
Thanks -
Percent of running total is returning running percents
I have a running total in a Group footer. I want to print the detail percentage of the group total, but the percent doesn't calculate on the total, but rather on the running balance. For example:
LINE 1 $25 100%
LINE 2 $25 50%
$50
But what I need is:
LINE 1 $25 50%
LINE 2 $25 50%
$50Solved my problem. Used a group total instead of running total.
Maybe you are looking for
-
Not able to Create Product Group.
Hi All, Not able to Create Product Group. I has to be solved urgently. The below message form SAP. The field is defined as a required field; it does not contain an entry Message no. MG144 Procedure Transfer a suitable value. If the field is the mate
-
Ok so how can i just back up the newer photos to my iPhoto library on my EHD? If it overwrites the backed up library it will delete the older photos that I backed up and then deleted from my iMac HD.
-
Solaris 10 x86 and 3Ware Escalade controller
Hi there, I would like to install Solaris 10 x86 on a server which uses an ATA-RAID-controller from 3ware (Escalade 7006-2). I haven't found any information on Solaris support for this controller so my question is if anyone of you has some experience
-
How to create Reference Condition Types
Hi , Please tell me how to create Ref.Condition Types? I have a requirement.."I should create a Zdiscount(13%) which should be copied to the sales order automatically based on PR00" How to do that? Points for sure RamChandra
-
Price not showing in Delivery PLD
Hi In delivery PLD i am showing price using system valriable 84 . Local Currency is INR , System Currency is US$. But it is not displaying anything. What is the differnce between Total (LC) & Total(Doc). Secondly when BP Currency is INR then in d