on 06-18-2014 6:21 AM
Hi,
i really need a formula for SAP Crytal report my requirement is
i have group 2 Groups one on sale order and another one on Invoice
Example:
================================================================
Order No:100001
Order Quantity:1000
=================================================================
Detail Area invoice group
INV# INVQty CreditNoQty Balance
10002 100 0 900
10003 500 100 500
i need formula for balance quantity . the balance quantity subtract from order quantity and plus with credit note quantity.
Hi Safeer,
Are 'Order Qty' and 'Inv Qty' summaries calculated on the report? Or are they simply pre-calculated database fields?
If they're database fields calculated in the query, then create a formula with this code and place it beside CreditNoQty:
({Order Qty} - {InvQty}) + {CreditNoQty}
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this:
1) Modify the code above to:
Whileprintingrecords;
Numbervar x := x +1;
If x = 1 then
(
Numbervar t := ({Order qty} - Invqty) + {Credit};
)
Else
(
t := ({Order qty} - t) + {credit}
)
2) Create a reset formula and place this on the group header 1:
Whileprintingrecords;
Numbervar x := 0;
Numbervar t := 0;
-Abhilash
Dear Abhilash Kumar,
Thank you so much. it's work for me.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.