on 04-22-2014 8:01 AM
Hi All Experts,
I have Created A layout for SAP B1 in crystal report.Because of Some Condition I have to Suppress Detail Section.
The Suppress Condition is As Follows
{ExcisePur.ItemCode}=Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum}=Previous({ExcisePur.Batchnum})
And it is Working Fine,the Desired Detail Section is Suppressed.
Now I Have to take Sum of Records ,But that records are also Calculated which are Suppressed.
For these I have Read Several post where someone had same problem,
there they have Asked to Create A Running Total And use the Formula in evaluate section same as in Suppress Condition but opposite of it.
I did the same thing using these Formula
{ExcisePur.ItemCode}<>Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum}<>Previous({ExcisePur.Batchnum})
But it is Calculating only the Suppressed Record But Not the Record which is to be Calculated.
Please help me to Accomplish this.
I am very Much blank where I am going wrong.
Regards,
Gayatri Shukla
Hi Gayatri,
I'm not too sure why this isn't working as the logic seems correct.
Here's another way to do this:
1) Create another formula and place this on the Details Section:
whileprintingrecords;
numbervar x;
if onfirstrecord then
x := {Field_to_summarize}
else if {ExcisePur.ItemCode} <> Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum} <> Previous({ExcisePur.Batchnum}) then
x := x + {Field_to_summarize};
2) Create another formula and place this on the Report Footer:
whileprintingrecords;
numbervar x;
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.