Converting and Exporting Data in XML Format



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

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

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

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

BW Performance Monitoring

SAP Certified Application Associate - Business Intelligence with SAP NetWeaver 7.0

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

Data Extraction and Retraction in BPC-BI

Data Aquisition Techniques in SAP Netweaver BW BI

SAP CRM Campaign Automation

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

Compounding in Infoobject and Analyzing the Infoobject in a Query

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

Step By Step Procedure to Create Logical File Path and Logical File Name

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

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Working with SAP BI 7.0 Data Transfer Process (DTP)

Quick Viewer: SAP Report Generating Tool

Restricting Search Operators in any Search View

StreamServe Persuasion SP4 StreamServe Connect for SAP - Business Processes

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

Understanding OLAP Processor and RSRT

XSLT Mapping in SAP PI 7.1

Step by Step Guide for Language Translation Tool

Deploying Crystal Reports on Top of a SAP BI Query

Query OLAP Cache Optimization in SAP BW

Salesforce Integration Using PI: How to Perform Query and Other DML Operations Using the Enterprise WSDL

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

Scenario... 3 Step-by-Step Solution Virtual Infocube... 4 Function Module (Virtual InfoCube)... 5 Infocube Data Display... 7

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

Embedding Crystal Reports inside ECC ALV Reports

Different Types of Alerts for Process Chains. Table of Content

ABAP Debugging Tips and Tricks

SAP CRM 7.0 E2C Setup: CRM via Toolset

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

Salesforce.com Integration Using SAP PI: A Case Study

Creating New Unit of Measure in SAP BW

SAP BW 7.3: Exploring Semantic Partitioning

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

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

Currency Conversion using Variables in SAP BI -Reporting

SAP FI - Automatic Payment Program (Configuration and Run)

Inventory Management in SAP BW

Configuring HTTPs Connection in SAP PI 7.10

SAP NetWeaver 7.0 Migration of Business Explorer and BI Integrated Planning. Tobias Kaufmann SAP NetWeaver RIG Business Intelligence

Display Options in Transaction SE16

Configuration and Utilization of the OLAP Cache to Improve the Query Response Time

SAP NetWeaver Developer Studio 7.30 Installation Guide

Understanding DSO (DataStore Object) Part 1: Standard DSO

SAP NetWeaver 7.0 Migration of Business Explorer and BI Integrated Planning

Extractor in R/3 and Delta Queue

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

SDN Community Contribution

Multi Provider Creation Based on Sales and Planning Info Cubes

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

SAP CRM-BW Adapter an Overview

Reverse Transport Mechanism in SAP BI

Using PI to Exchange PGP Encrypted Files in a B2B Scenario

Business Objects Dashboards Drive Performance Improvements at North Carolina s Department of Transportation

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

How to Generate Stack Xml for Ehp4 and Above Upgrade

Deleting the User Personalization done on Enterprise Portal

Overview of SAP BusinessObjects Risk Management 10.0

ABAP Proxy Interfacing

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

APD to Update Marketing Attributes from SAP BI to SAP CRM

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

Web Application Designer for Beginners

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Process Controlled Workflow SRM 7.0 (Using BRF)

Creating Mobile Applications on Top of SAP, Part 1

Creating Content Using SO10 Objects and Text Symbols

Adobe Document Service Configuration and Troubleshooting Guide

Guidelines for Effective Data Migration

SAP BW Configuration Basic System Settings

Inventory Management (0IC_C03) Part - 3

SAP BO 4.1 COURSE CONTENT

SAP CRM Middleware Configurations

Analysis Office and EPM Add-In - Convergence Alexander Peter, SAP SE SESSION CODE: BI70

How to Modify, Create and Delete Table Entries from SE16

Creation and Configuration of Business Partners in SAP CRM

Connecting to SAP BW with Microsoft Excel PivotTables and ODBO

All about Idocs Communication between BW and R/3

How to Assign Transport Request for Language Translation?

BI 7.0 and EP 7.0 Integration using Template Installer

Rakesh Tej Kumar Kalahasthi and Benson Hilbert SAP BI Practice, Bangalore, India

Configuration of Enterprise Services using SICF and SOA Manager

LSMW: Upload Master Data using Batch Input Recording

Dynamic Authorization Concept and Role Assignment in BI

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

A Practical Guide to SAP" NetWeaver Business Warehouse (BW) 7.0

Offline Mode SAP Mobile BI 4.1. Author : Priya Sridhar

Direct Subcontracting Process (SAP SD & MM)

Introduction to COPA and COPA Realignment

Business Scenario Using GP/Web Dynpro with Back and Forth 3 Level Process and Dynamic Approvers in a Loop

Embedded BI made easy

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

Creating Transaction and Screen Variants

SAP BI Generic Extraction Using a Function Module

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Transcription:

Converting and Exporting Data in XML Format Applies to: SAP BW 3.5, SAP BI 7.0 etc. For more information, visit the EDW homepage. Summary This paper briefs about Information broadcasting that allows you to make objects with business intelligence content available to a wide spectrum of users. It also offers functions to optimize performance and for exception reporting. Author: Ramam Velivala Company: Deloitte Consulting Created on: 10th June 2011 Author Bio Ramam Velivala is a Lead consultant with SAP BW/BI, BPC and EPM practice at Deloitte. He is currently leading the SAP-BW track integration with EPM tools. He has extensively worked on PCM modeling to extract data to SAP-BW and BPC systems. He has more than 12 years of SAP experience in providing analytic solution in various SAP functional modules like Finance, Controlling, Procurement etc. 2011 SAP AG 1

Table of Contents Information Broadcasting... 3 Features:... 4 Using ABAP through APD (Analysis Process Design)... 6 Use of PI... 8 Development of ABAP Proxy in BI:... 8 1. BI outbound interface:... 8 2. Interface in PI:... 8 Related Content... 9 Disclaimer and Liability Notice... 10 2011 SAP AG 2

Information Broadcasting Information broadcasting allows you to make objects with business intelligence content available to a wide spectrum of users. It also offers functions to optimize performance and for exception reporting. It is mainly used to automate queries, web templates, and reports in different output formats like PDF, Excel, XML, XHTML, and HTML or as an online link such to different destinations such as: End-user emails or group of user mails (E-mail Bursting) SAP Enterprise Portal SAP Enterprise Portal Knowledge Management folders From the above diagram we can say that: Information Broadcasting allows the distribution of BW information Via Different channels... i.,e., E-Mail and Enterprise Portal Different formats...i.e., XML, HTML, MHTML, BEx Analyzer Workbooks and ZIP Files Different sources i.e., BI Web Applications - Dashboards, cockpits, BEx Analyzer Workbooks and Queries Different modes i.e., Online & pre-calculated Why Is Broadcasting Important? Reduces the time users spend looking for information Improves the likelihood that users will use your BI data Expands the reach of BI data to non-sap users as well! Makes BW data available for users on the go 2011 SAP AG 3

Lets you link your BW and Portal systems together! Lets users collaborate, integrate BW content with other enterprise and Web content, etc.! Features: Distribution with BEx Broadcaster With the BEx Broadcaster, we can pre-calculate queries, query views, Web templates, reports and workbooks and broadcast them by e-mail or to the portal. In addition to the pre-calculated documents in various formats (XML, HTML, MHTML, ZIP and so on) that contain historical data and we can also generate online links. Access in the SAP NetWeaver Portal In the portal, the ideal way of accessing Business Intelligence information is through a central entry page (for example BEx Portfolio). This shows the content of the Knowledge Management folder where you published the content. The Broadcasting layout profile displays the content that is especially tailored to the needs of users who work with Business Intelligence content in the portal. BEx Broadcaster Using the BEx Broadcaster we can pre-calculate and distribute Web templates, queries, query views, reports and workbooks. We can broadcast BI objects either as pre-calculated documents or online links (this is not possible for workbooks). Your distribution options include broadcasting by e-mail or broadcasting to the portal. Furthermore, you can print these BI objects in the required format. BEx Broadcaster and Broadcasting Wizard In the BEx Broadcaster, we can create new broadcast settings with both the broadcaster itself and with a wizard. The broadcasting wizard is an assistant that supports in creating a new setting by providing step-by-step instructions. Since the settings options are limited with the wizard in comparison to the broadcaster, we have the option of jumping from the wizard to the broadcaster to make further settings as necessary. Precalculation and Distribution of Queries, Query Views, Web Templates and Reports We can precalculate queries, query views, Web templates, and reports in various formats or create online links for these BI objects. We can broadcast the information by e-mail, to the portal, or to a printer. For precalculation and distribution, we can choose 1) Queries 2) Query Views 3) Web Templates 4) Reports Output Formats a. XML (MS Excel) The system generates an XML file that contains the results and displays them in a data table. This output format supports object types Query and Query View only. The XML file cannot be edited in the BEx Analyzer. b. MHTML The system generates an MHTML file. All components of the HTML page (HTML, style sheet, pictures, and so on) are in one file. We can use this output format when you want to generate one individual document and broadcast it by e-mail or to the portal. Recipients cannot navigate in the generated file. This output format does not support object type Report. 2011 SAP AG 4

c. HTML The components of the HTML page are generated by the system in individual files. We can use this output format to generate multiple documents with various filter settings from the same BI object. Recipients can navigate between different filter views for the BI object (Query, Query View, Report, or Web Template). This output format does not support object type Report. d. Online Link to Current Data The system generates a URL to the current navigational state of the BI object (Query, Query View, Web Template, or Report). The recipients can call the BI object and navigate further within it. e. PDF The system generates a static PDF file. f. Print Format (PS or PCL) The document is generated in the suitable format for the output device: PostScript (PS) or Printer Control Language (PCL). The BEx Broadcaster allows you to select from the output formats available for the distribution type you selected. The Print Format (PS or PCL) output format is printer-specific and is therefore only available with distribution type Broadcast to Printer. The Portable Document Format (PDF) output format is also available for this distribution type. Output formats are based on the distribution type you select. Below screen shot shows the output formats for BEx Broadcaster., out of which XML is one. Distribution Options: Using the BEx Broadcaster we can distribute the reporting objects either in pre-calculated form or as an online link. Your distribution options include Sending by e-mail Exporting into the Enterprise Portal Sending by E-Mail Sending by e-mail is an option for distributing BW objects. We can send the reports in BW to the Email address specified of the recipients. We can send the file in the different formats mentioned above. 2011 SAP AG 5

Exporting into the Enterprise Portal Export into the Enterprise Portal is one option for distributing BW data file. You can put the this data file in a collaboration room or in a KM folder. From the Enterprise Portal we can download the file in the different formats mentioned above. From KM folder we need to write Java program to put this file in required folder for accessing by other system. Using ABAP through APD (Analysis Process Design) In this approach, we use Bex Query result as input and extract this query data into direct DSO. After that, this DSO active table data used as source and convert this table data into XML file using ABAP program and save this file in application server of BW system. See the below picture to extract query data into XML file. ABAP Program For Conversion: DATA : t009 LIKE TABLE OF t009 WITH HEADER LINE. DATA : BEGIN OF itab OCCURS 0, a(100) TYPE c, END OF itab. DATA: xml_out TYPE string, path type rlgrap-filename value 'D:\usr\sap\put\file_p.xml'. DATA : BEGIN OF upl OCCURS 0, f(255) TYPE c, END OF upl. DATA: xmlupl TYPE string. *------------------ Fetch Data SELECT * FROM t009 INTO TABLE t009. *------------------- Convert data to XML Format CALL TRANSFORMATION ('ID') SOURCE tab = t009[] 2011 SAP AG 6

RESULT XML xml_out. CALL FUNCTION 'SCMS_STRING_TO_FTEXT' EXPORTING TEXT = xml_out * IMPORTING * LENGTH = TABLES FTEXT_TAB = itab. * Exporting to Presentation server CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filetype = 'BIN' filename = 'c:\a.xml' TABLES data_tab = itab. * Exporting to Application server open dataset path for output in binary mode. loop at itab. transfer ITAB to path. endloop. close dataset path. In the above program code, the data from table is exported to Application and Presentation server. Output file from Presentation server: a.xml Screen shot showing output from File a.xml: Conclusion: From the above two options APD is the optimal solution to build XML file in terms of configuration and cost as through broadcaster we need Enterprise Portal configuration and programming effort in JAVA. 2011 SAP AG 7

Use of PI PI provides a technical infrastructure for XML-based message exchange to enable the integration of SAP and non-sap systems. Generating TVA reports in XML format can be achieved with the use of PI. PI would be used for: Converting BI information into XML report Validating data against XML schema using validation techniques Additionally, PI would also allow making periodic changes to XML schema, if any are required. As shown in the below diagram, SAP BI will send the data to SAP PI; PI will convert it to XML Development of ABAP Proxy in BI: The scenario development begins in PI with the definition of interface objects for inbound and outbound communication with the BI system. These generic definitions will be used to generate ABAP proxies in BI. The objects will establish the link between the two systems. Once the technical infrastructure has been established for the interface between BI and PI, the proxies are bound to the process chain infrastructure by creating a custom process type. In other words, ABAP code is implemented which reads datasets from the database table In order to deliver the dataset to PI, the methods of the generated proxy are called, utilizing the configuration that defines the interface between the systems. The source code that performs the read and delivery is wrapped inside a custom process type, thus inheriting the general properties of the process chains framework (such as active monitoring of its status and writing a log). The following interfaces need to be set up: 1. BI outbound interface: Create and implement ABAP-proxies for BI-PI communication Preparations for custom process type class definition and implementation Create Open Hub/InfoSpoke Create custom process type and process chain 2. Interface in PI: Define interface objects for BI-PI communication. 2011 SAP AG 8

Related Content For more information, visit the EDW homepage. 2011 SAP AG 9

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 10