Simone Caneparo – SAP Active Global Support
February, 2014
Creating Web Intelligence
Documents for Excel Format Export
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 2 Public
Introduction
When exporting Web Intelligence documents to Excel format,
rarely you will get an WYSWYG output, because:
Web Intelligence allows free positioning of tables and cells
across the document
Excel is a spreadsheet with columns and cells
Therefore, when converting a document to Excel, WebI will
create a grid that splits the objects
If the document is not designed with some basic rules, the
output can become messy and change when upgrading to
different SP / patch levels
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 3 Public
In this first example we have designed a report out of e-Fashion, without
minding the best practices for exporting to Excel
Example #1: free design
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 4 Public
Example #1: free design
When exporting to Excel, Web Intelligence builds a grid that will be used for
designing rows and columns of the spreadsheet
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 5 Public
Example #1: free design
This is how the spreadsheet will look
(borders have been made in solid color to highlight the grid)
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 6 Public
Example #1: free design
These are the WebI document and the Excel spreadsheet side-by-side
Please notice: (there are extra columns and rows added, we will explain why later)
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 7 Public
Rule #1: Use the Grid
By using the View Grid and Snap to Grid options:
It will be possible to align the cells, tables, etc. so that:
Objects are aligned to each other without gaps
Web Intelligence will be able to build a sharper grid
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 8 Public
Example #2: Using the Grid
To use the Grid, go to Document Properties, Application, Viewing
Select Show Grid and Snap to grid options
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 9 Public
Example #2: Using the Grid
The cells are now sharply aligned with other objects and columns of the table
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 10 Public
Example #2: Using the Grid
The cells are now sharply aligned with other objects and columns of the table
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 11 Public
Example #2: Using the Grid
This is how the spreadsheet will look
(borders have been made in solid color to highlight the grid)
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 12 Public
Example #2: Using the Grid
This is a comparison of the spreadsheets before and after using the grid
Although there are less columns and rows, there is some more work to do yet…
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 13 Public
Rule #2: Remove Page Margins
In order to get leaner layout when exporting to Excel:
Set the page margins to 0
Align the objects to the left-hand and top side of the
document
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 14 Public
Rule #2: Remove Page Margins
To remove the margins, go to Page Setup, Margins, and set all margins to 0
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 15 Public
Example #3: Removing the Margins and aligning to the left
This example uses the grid, and then removed the margins and aligned to the left
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 16 Public
Example #3: Removing the Margins and aligning to the left
It gets better and better, but we still need to fix all the extra columns in the middle
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 17 Public
Rule #3: Use fixed width / height
Avoid extra columns or rows
by setting a fixed width:
The tables have different width
because they are set to auto-width
This was the cause for the extra
columns in our sample
The picture shows four only, but
there are many more…
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 18 Public
To set fixed width/height, right click on a cell, select Format Cell, uncheck Autofit
width / Autofit height and set a fixed value. Better to do some tests to see if the
content fits the width
Rule #3: Use fixed width / height
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 19 Public
Example #4: Use fixed width / height
In our example we have set fixed width and now the columns are perfectly aligned
throughout the document
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 20 Public
Example #4: Use fixed width / height
The final output is lean and clean, there are no added columns and the layout will
be kept regardless of upgrades
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 21 Public
Before and after
With few simple steps we now have a leaner spreadsheet
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 22 Public
Summary
When exporting WebI documents to Excel,
in order to get the most accurate output :
Follow the guidelines in KBA 1969285 - How to best export
WebIntelligence data to Excel for further processing
Use the Grid when designing the layout
Remove page margins
Optional: align the layout to the left hand side
Use fixed width for the columns, optional for the rows
Keep the cells, tables etc. aligned so that their borders do not trigger an
extra column/row
© 2014 SAP AG or an SAP affiliate company. All rights reserved. 23 Public
© 2014 SAP AG or an SAP affiliate company.
All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG or an
SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG
(or an SAP affiliate company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional
trademark information and notices.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP AG or an SAP affiliate company for informational purposes only, without representation or warranty of any kind,
and SAP AG or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP AG or
SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and
services, if any. Nothing herein should be construed as constituting an additional warranty.
In particular, SAP AG or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related
presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP AG’s or its affiliated
companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be
changed by SAP AG or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment,
promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties
that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking
statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.