How to Create subreports in Crystal Reports



Similar documents
SAP CRM Campaign Automation

Deploying Crystal Reports on Top of a SAP BI Query

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

Step by Step Guide for Language Translation Tool

Creating Transaction and Screen Variants

Sample- for evaluation purposes only. Advanced Crystal Reports. TeachUcomp, Inc.

Sophos Reporting Interface Creating Reports using Crystal Reports 2008

Deleting the User Personalization done on Enterprise Portal

Creation and Configuration of Business Partners in SAP CRM

Creating New Unit of Measure in SAP BW

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

Working with SAP BI 7.0 Data Transfer Process (DTP)

SAP FI - Automatic Payment Program (Configuration and Run)

Reverse Transport Mechanism in SAP BI

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

How to Generate Stack Xml for Ehp4 and Above Upgrade

Quick Viewer: SAP Report Generating Tool

Multi Provider Creation Based on Sales and Planning Info Cubes

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Restricting Search Operators in any Search View

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

SAP Crystal Reports for Enterprise Document Version: 4.0 Support Package SAP Crystal Reports for Enterprise User Guide

How to Assign Transport Request for Language Translation?

Order Split Usage in Production Orders

Embedding Crystal Reports inside ECC ALV Reports

LSMW: Upload Master Data using Batch Input Recording

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

Tutorial - Creating Pop Up Window Using New Features in WebDynpro Java CE 7.1 Ehp1

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

Process Controlled Workflow SRM 7.0 (Using BRF)

2. Building Cross-Tabs in Your Reports Create a Cross-Tab Create a Specified Group Order Filter Cross-Tab by Group Keep Groups Together

Web Dynpro: Multiple ALV Grids and Layouts in ALV

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

ALE Settings, for Communication between a BW System and an SAP System

ABAP Debugging Tips and Tricks

Web Dynpro ABAP: ALV and Table in Popup Window

Display Options in Transaction SE16

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

ABAP How To on SQL Trace Analysis

Configuration of Enterprise Services using SICF and SOA Manager

How to Create an ecatt?

Creating Content Using SO10 Objects and Text Symbols

Step by Step guide of Report-to- Report Interface in BW Reporting

BW Performance Monitoring

Getting Started with Crystal Reports Session Description:

Table of Content. SAP Query creation and transport Procedure in ECC6

Crystal Reports Level 2

Parameter Fields and Prompts. chapter

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

SECTION 5: Finalizing Your Workbook

Extractor in R/3 and Delta Queue

Data Extraction and Retraction in BPC-BI

SAP CRM Middleware Configurations

Crystal Reports. Overview. Contents. Columnar Drill-Down Report

Invoice Collaboration: Self Billing Invoice

SAP Business Objects XIR3.0/3.1, BI 4.0 & 4.1 Course Content

SAP CRM 7.0 E2C Setup: CRM via Toolset

Mail Merge Creating Mailing Labels 3/23/2011

How to Modify, Create and Delete Table Entries from SE16

Packages Opening the Package Maintenance Form Adding a New Package Edit Package Item Details Form... 11

How to Load Data from Flat Files into BW PSA

SAP BW 7.3: Exploring Semantic Partitioning

How to Work with Crystal Reports in SAP Business One

SPDD & SPAU Adjustments Handbook

Currency Conversion using Variables in SAP BI -Reporting

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

Crystal Reports Payroll Exercise

How schedule AccuTRConsole to run every hour

Configuring HTTPs Connection in SAP PI 7.10

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

Using SAP Crystal Reports with SAP Sybase SQL Anywhere

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

Compounding in Infoobject and Analyzing the Infoobject in a Query

Connecting to SAP BW with Microsoft Excel PivotTables and ODBO

Crystal Reports Designer Version 10

Guide to PDF Publishing

Different Types of Alerts for Process Chains. Table of Content

Sales Commission Calculation & Settlement Handling through Order Processing

SAP MM: Purchase Requisition with Classification and Workflow Approval

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

ABAP Proxy Interfacing

First step to Understand a Payroll Schema

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

Microsoft Expression Web

Creating a Table of Contents in Microsoft Word 2011

Live Office User Guide SAP BusinessObjects Business Intelligence platform 4.0 Feature Pack 3

Maximizing the Use of Slide Masters to Make Global Changes in PowerPoint

Understanding OLAP Processor and RSRT

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Integration of SAP R/3 with BO Universe Using Data Federator Connector

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

Sending an Image File Through XI in a File-to-Mail Scenario

BRIO QUERY FUNCTIONALITY IN COMPARISION TO CRYSTAL REPORTS

Understanding DSO (DataStore Object) Part 1: Standard DSO

Microsoft Outlook 2003 Module 1

Site Maintenance. Table of Contents

Transcription:

How to Create subreports in Crystal Reports Applies to: SAP BusinessObjects Enterprise. For more information, visit the Business Objects homepage. Summary This article describes how to work with subreports in Crystal Reports. Author: Renju.M.V Company: Cognizant Technology Solutions Created on: 22 July 2011 Author Bio The author has four years of experience on SAP BusinessObjects projects. 2011 SAP AG 1

Table of Contents Introduction... 3 Subreports... 3 How to Create subreports... 3 Types of subreports... 4 Unlinked subreport... 4 Linked subreport... 4 How to link the subreport with the Main Report... 4 Updating subreports... 5 Globally updating subreports when opening the main report... 5 Update a specific subreport when opening a main report... 5 Manually updating subreport data... 5 On-Demand subreports... 5 How to create an On-Demand Subreport... 5 Related Content... 6 Disclaimer and Liability Notice... 7 2011 SAP AG 2

Introduction This article describes how to work with subreports in Crystal Reports. It covers how to create and modify subreports as well as how to create on-demand subreports. Subreports A subreport is a report within a report. A subreport can have most of the features of a normal report. Using subreports, unrelated data can be combined into a single report. The subreport can be generated the same way as the primary report. A subreport can also be saved as a primary report. The maximum number of subreports that can be placed in the primary report is 256. The differences between a primary report and a subreport are: Primary report can contain subreports, but a subreport can not contain another subreports. A subreport does not have page header or page footer sections. A subreport can t stand on its own. It is always inserted as an objected into the primary report. How to Create subreports To create a subreport: 1. Open the main report. 2. Click Insert Menu > Insert Subreport. Alternately, right-click the design section. Select Insert > Subreport. An Insert Subreport dialogue box appears. Choose the radio button which allows selecting either an existing subreport or to create a new subreport using report creation wizard. This is how you can create a simple subreport. 2011 SAP AG 3

Types of subreports Unlinked subreport The main report does not have any specific data connections to the subreport. There is no link between the primary report and subreport. Unlinked subreports are free standing. There is no attempt to match up the records in one report with the other. The reports are treated as unrelated reports. The subreport can use the same data sources as of the primary report or else it can use a different data source. Linked subreport In linked subreports data is interconnected and coordinated. Linked subreports are linked to the data in the main report. The links are defined in the link tab of the Insert subreport dialogue box. The program matches up the reports in subreport with the data in main report. How to link the subreport with the Main Report When you link a subreport to a main report, the program creates the link using a parameter field. When a subreport link field is selected, the program creates a parameter field in the subreport. This parameter field is used to retrieve values passed to it by the primary report. A record selection formula also will be created for the subreport which limits the subreports to those records in which the link field is equal to the parameter value. When the report is triggered, the program finds the first primary record it needs and passes the value in the link field to the parameter field in the subreport. The program then creates the subreport with record selection based on the parameter field value. 2011 SAP AG 4

Updating subreports Re-import is the option to update the subreport when opening the main report. This is required to maintain the most up-to-date sub reports. Re-importing is available only for subreports that were created from a report file. Re-importing updates the data, formatting, grouping and structure of the report if any changes have been made. You can either globally specify that all subreports should be re-imported or set the automatic reimport for an individual report. Globally updating subreports when opening the main report Any subreport will be updated when its main report is opened and refreshed. 1. Click Options on the file menu. 2. Click the reporting tab in the Options dialogue box. 3. Click Re-import Subreport when opening reports. 4. Click OK. Update a specific subreport when opening a main report The current subreport will be updated when the main report is opened and refreshed. 1. Click Format Subreport in the Format menu. 2. Click the Subreport tab in the Format Editor dialogue box. 3. Click Re-import when opening. Manually updating subreport data Update the subreport data at any time. 1. Right-click the subreport on the Design tab. 2. Click Re-Import subreport from the shortcut menu. 3. Click Yes to update the subreport data. On-Demand subreports On-Demand subreports can be especially useful when wanting to create a report containing multiple subreports. In this case, it is possible to have these subreports appear only as hyperlinks. The actual data is not read from the database until the user drills down on the hyperlink. This way, only data for on-demand subreports that are actually viewed will be retrieved from the database. This makes subreports much more manageable. Data for an on-demand subreport is not saved unless the subreport is actually open in a preview window. How to create an On-Demand Subreport 1. Place a subreport in the primary report. 2. Click the Format button on the Expert Tools toolbar. 3. Click the subreport tab and select the On-Demand Subreport check box in the Format Editor dialog box. 4. Click OK. 2011 SAP AG 5

Related Content For more information, visit the Business Objects homepage 2011 SAP AG 6

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2011 SAP AG 7