You are on page 1of 9

Maintaining and Printing Comment for Each Line in the Report

Applies to:
Business Intelligence 7 & Business Explorer 7. For more information, visit the Business Intelligence homepage.

Summary
The objective of this article is to explain how comments can be maintained at the record level in report & how these can also be printed on export. Author: Pallavi Kale

Company: Capgemini India Pvt Ltd Created on: 9 February 2010

Author Bio
Pallavi is currently working as BW Consultant with Capgemini India Pvt Ltd. She has SAP BW Implementation and Support experience for more than 5 years in the field of BW. She also possesses working knowledge of SEM-BPS, Integrated Planning, VC7, SCM 4.0.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 1

Maintaining and Printing Comment for Each Line in the Report

Table of Contents
Scenario .............................................................................................................................................................. 3 Step By Step Solution ......................................................................................................................................... 3 Step 1: Query Settings .................................................................................................................................... 3 Step 2: Characteristics Settings ...................................................................................................................... 4 Step 3: WAD Settings Analysis Item ............................................................................................................ 4 Step 4: WAD Settings Analysis Item Properties Modification Modules .................................................... 5 Step 5: WAD Settings Modification Modules Parameter .......................................................................... 5
1. Parameter 1 - DISPLAY_TEXT_PLAIN ................................................................................................................. 6 2. Parameter 2 - COLUMN_# .................................................................................................................................... 6 3. Parameter 3 - WIDTH ............................................................................................................................................ 6 4. Parameter 4 - ALIGNMENT ................................................................................................................................... 6

Step 6: WAD Settings Export Command ..................................................................................................... 6 Execution ............................................................................................................................................................ 7 Related Content .................................................................................................................................................. 8 Copyright............................................................................................................ Error! Bookmark not defined.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 2

Maintaining and Printing Comment for Each Line in the Report

Scenario
The Month End Report displays the Actuals Sales, Budgeted Sales & % variance for each product for the last month. Responsible person should be able to reason out for the deviation in the actual sales from budgeted figures of the month for individual material. The reasons should get printed along with the report to present it to higher authorities.

Step By Step Solution


Step 1: Query Settings The Month End Report has Product in rows; the Actuals & Budget Sales in Key Figures and a simple formula Variance to calculate percentage deviation of Actuals from Budget.

Now a Dummy formula Comment is created. This is just to create a column as placeholders for comments.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 3

Maintaining and Printing Comment for Each Line in the Report

Step 2: Characteristics Settings To store the reasons or comments for each line in the report, we are using InfoProvider Data Documents. These documents are stored for combination of characteristics values in transactional data. Set the flag for Characteristics is Document Property for all the characteristics present in row. This specifies whether the characteristic is allowed to be a property for documents & thus controls the granularity of the data at which the comments are maintained. In our case, the characteristic is Product.

Step 3: WAD Settings Analysis Item Create a Web Template having web item - Analysis. Attach the query created in step 1 to the DataProvider linked to this Analysis Item. For simplicity, take copy of 0ANALYSIS_PATTERN template & modify.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 4

Maintaining and Printing Comment for Each Line in the Report

Step 4: WAD Settings Analysis Item Properties Modification Modules To make the possibility for the user to enter the comment, we need to modify the default behavior of the Analysis Item. For this, we use Modification parameter. Choose modification parameter as Single Module.

Step 5: WAD Settings Modification Modules Parameter By default this module will be inactive. Set the active mode ON. To display the document content for a cell in Analysis web item, we use standard module called Document Content module (com.sap.ip.bi.rig.DocumentContent).

Now, we need to specify certain parameters for this module. These parameter options influence how the module will function. For each parameter, we need to maintain following elements Name/Expression (MOD_PARAM_NAME) Value (MOD_PARAM_VALUE) Placeholder List (MOD_PLACEHOLDER_LIST) : This is optional.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 5

Maintaining and Printing Comment for Each Line in the Report

1. Parameter 1 - DISPLAY_TEXT_PLAIN To display the comments in the table we need to define this parameter. This considers only unformatted Text entered in the comments.

Note: Please note it is not possible to combine the display of different document types (for example, to display comments and images). Also, only the first comment in a cell is shown in case there are multiple comments defined on one cell.

2. Parameter 2 - COLUMN_# You must define this parameter. It specifies which column in the table that you want to replace with the document contents. # indicates the index of the column starting with 1 from left.

3. Parameter 3 - WIDTH Once the column is identified, it is very important to set the width for that column as the default width for the column is set to 0, which means that it is not visible.

4. Parameter 4 - ALIGNMENT This parameter is optional. By default the text is centered aligned.

Step 6: WAD Settings Export Command Pass the web template name & analysis web item in export command on Print button.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 6

Maintaining and Printing Comment for Each Line in the Report

Execution
To maintain the comment, right click on the cell where you want to insert comment & choose create new comment option.

A new window pops up to enter the reason for variation in actuals from plan.

The entered reason appears on the line.

Now, this report indicating the deviation with reasons from responsible persons can be printed just by a click on Print Version.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 7

Maintaining and Printing Comment for Each Line in the Report

Related Content
Document Classes Analysis Web Item: Using Parameter Modification For more information, visit the Business Intelligence homepage.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 8

Maintaining and Printing Comment for Each Line in the Report

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.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 9