on 05-07-2018 10:45 PM
In Sap Crystal, I am looking for a better option to have the formula to count the # of items per line. (not per workorder)
Example, I have one Work Order# with 2 different items called Eton and Davina.
If I want to print the report, I would like to see that it is counting the # per product not as an order.
My code is:
WhilePrintingRecords; NumberVar ItemCount := ItemCount + 1; `ToText(ItemCount, "0") & "/" & ToText(Count({rpt_PackingSlip.LabelQTY}, {rpt_PackingSlip.WorkOrderNo}),0,"")
Crystal Report Design:
Current Output: Int the below output, it is counting as 1/2 and 2/2, but my desired output should be 1/1 (for Eton) and 1/1 (Davina) because it should be counting per product NOT counting how many items in 1 work order.
You have to create another Group 3 using field Packingslip.itemNo, suppress header and footer as you have done with Groups 1&2
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Trish
I am sure you have asked this before, add another group based on Product underneath Work order.
Change your formula so that this bit
ToText(Count({rpt_PackingSlip.LabelQTY}, {rpt_PackingSlip.WorkOrderNo}),0,"")
replace this field {rpt_PackingSlip.WorkOrderNo} with your Product Group Field
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.