cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Help Needed

Former Member
0 Kudos

Hi All,

I am new to crystal reports.I got a new requirement and the document contains some format as below


1.brand Weekly Sales and Stock Report- Summary

2.brand Weekly Sales and Stock Report- Details


And under brand Weekly Sales and Stock Report- Summary there one report format

And brand Weekly Sales and Stock Report- Details there is another report format.


So i am unable to understand the requirement.

Please guide me  how to do this report and please explain summary and details report.


PFA


Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Divya,

We'll be beating around the bush without any knowledge of the database stucture and a Requirements doc.

In any case, I'm assuming you'll need a Subreport. The Subreport would show the Weekly Sales and Stock Details whereas the Main Report can show the Summary.

You can create a Command Object (of whatever way you prefer to bring the data in) for the Main Report and try to include all the Summary calculations in the SQL Query. Do the same for the Subreport except this query should show the Details (which I believe would be at the Group Level - Brand)

-Abhilash

Former Member
0 Kudos

Hi Abhilash,

As per my requirement i have view which contains all the fields for both summary and detail report as i shown above.

So now i need to use the same view for main report which will show the summary data and same view for sub report which will show detail data ?

Or any other approach is there .

Please suggest.

abhilash_kumar
Active Contributor
0 Kudos

You can use the same view, however you'll need to use a Subreport for either showing the Summary data or Detail data.

-Abhilash

Former Member
0 Kudos

Hi Abhilash,

I am planning to do this.But unable to create a report with one schema without using any table/query.

Please suggest.

I need to create the sub report with same schema which i am using for main report and i don't want to pull any tables for that schema.Then i will add the sub report to main report.Then i will pass the required fields to sub report as shared variables from main report to show detail report.

Will it work ?

Please suggest

abhilash_kumar
Active Contributor
0 Kudos

Basically, you'll need a group in the Main Report.

The Subreport would be placed on the Group Footer and to show the Details of that particular customer/transcation/invoice.

Using the 'Change Subreport Links' option, you should link the Group Field in the Main Report with a corresponding field in the Subreport so that the Subreport shows 'relevant' data for that Group.

-Abhilash

Former Member
0 Kudos

Hi Abhialsh,

As per my requirement i need to show like this.

Summary report (Main Report)

BrandSupplier Sold QtySales Values Rank
HP OWN BUYHN-FIFTH & PACIFIC COMPANIES INC.450974825.91
HP OWN BUYHN-GIORGIO ARMANI SPA181662263.72

Grand Total :

Detail Report:(Sub report)

GroupProduct CodeBarcodeDescCategoriesBrandSupplier Qty Sold Cost Sales Values
HOM115HNHOCTC277791012549650397084544IPAD STAND BAGCOTE & CIELHN OWN BUYHN-PAPER RAIN ASIA LIMITED19.2637
HOM122HNHOCTC279451402549650397084803IPHONE4S CARD POUCHCOTE & CIELHN OWN BUYHN-PAPER RAIN ASIA LIMITED623.35918
HOM146HNHOCTC27847122254965039708461215" MAC ZIP SLEEVECOTE & CIELHN OWN BUYHN-PAPER RAIN ASIA LIMITED16.0415
HOM146HNHOCTC27848140254965039708462915" MAC ZIP SLEEVECOTE & CIELHN OWN BUYHN-PAPER RAIN ASIA LIMITED16.0415
   Grand Total 

Here both the reports fields coming from same view.

So now what is the best approach to create main report and sub report with same view.

Whether i need to use same view 2 times for both reports or i need to pass required fields to sub report from main report via shared variables.

If we have to use shared variables how i can create the sub report with same datasource without taking the view again.

Please suggest

abhilash_kumar
Active Contributor
0 Kudos

1) Create a Group on the Brand field and maybe also the Supplier field

2) Suppress the Details Section and insert a summary at the Group Level

3) Insert a Subreport on the Group Footer

4) Use the Change Subreport Links option to link the Brand field in the Main Report with the Brand field in the Subreport

5) Use this subreport show the Details by dropping the required fields on the Details Section

-Abhilash

Former Member
0 Kudos

Hi Abhilash,

Thank you

Here i no need to show the details(Sub report) for brand wise.

I need to show sub report after main report(In report footer)

1st i need to show main report(summary report)

After that i need to show sub report(detail report)

So now nee to use same view 2 times for main report and sub report ?

Please suggest

abhilash_kumar
Active Contributor
0 Kudos

Yes that's right.

Use the same View twice.

-Abhilash

Answers (0)