How to Load Data from Flat Files into BW PSA



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

Understanding DSO (DataStore Object) Part 1: Standard DSO

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

Compounding in Infoobject and Analyzing the Infoobject in a 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 to Extract Batch Master Data via Generic and Classification Datasource to BW

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

Working with SAP BI 7.0 Data Transfer Process (DTP)

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

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

Creating Transaction and Screen Variants

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

SAP FI - Automatic Payment Program (Configuration and Run)

SPDD & SPAU Adjustments Handbook

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

Extractor in R/3 and Delta Queue

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

SAP BW 7.3: Exploring Semantic Partitioning

Display Options in Transaction SE16

Multi Provider Creation Based on Sales and Planning Info Cubes

Data Extraction and Retraction in BPC-BI

Currency Conversion using Variables in SAP BI -Reporting

Inventory Management in SAP BW

SAP CRM-BW Adapter an Overview

Deploying Crystal Reports on Top of a SAP BI Query

Introduction to COPA and COPA Realignment

How to Create an ecatt?

Data Aquisition Techniques in SAP Netweaver BW BI

Query OLAP Cache Optimization in SAP BW

Transfer of Archived SAP ERP Data to SAP NetWeaver BW. Using PBS archive add ons

Inventory Management (0IC_C03) Part - 3

Reverse Transport Mechanism in SAP BI

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

Step by Step Guide for Language Translation Tool

SAP CRM Campaign Automation

Deleting the User Personalization done on Enterprise Portal

Different Types of Alerts for Process Chains. Table of Content

LSMW: Upload Master Data using Batch Input Recording

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

Organizational Management- Organizational Structure Creation

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

Restricting Search Operators in any Search View

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

Order Split Usage in Production Orders

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

SAP BI/BW LO Extraction

Customer Exit Variables in SAP BW/BI Reports First day of the Current/Previous Month

BW Performance Monitoring

How to Modify, Create and Delete Table Entries from SE16

Business Objects Enterprise version 4.1. Report Viewing

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

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

Creating Content Using SO10 Objects and Text Symbols

Open Items Analytics Dashboard System Configuration

SAP BW Data Source Enhancement

Guidelines for Effective Data Migration

Web Application Designer for Beginners

Connecting to SAP BW with Microsoft Excel PivotTables and ODBO

Microsoft Office. Mail Merge in Microsoft Word

SAP BI Generic Extraction Using a Function Module

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

SAP BW Configuration Basic System Settings

Dynamic Authorization Concept and Role Assignment in BI

Salesforce Classic Guide for iphone

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

Content Author's Reference and Cookbook

Downloading RIT Account Analysis Reports into Excel

Creating New Unit of Measure in SAP BW

Integrated Accounting System for Mac OS X

Integrated Invoicing and Debt Management System for Mac OS X

USER MANUAL (PRO-CURO LITE, PRO & ENT) [SUPPLIED FOR VERSION 3]

BulkSMS Text Messenger Product Manual

APD to Update Marketing Attributes from SAP BI to SAP CRM

HOW TO ORGANIZE PICTURES

Sendspace Wizard Desktop Tool Step-By-Step Guide

SECTION 5: Finalizing Your Workbook

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Understanding OLAP Processor and RSRT

How to Assign Transport Request for Language Translation?

Pendragon Forms Industrial

Configuration of Enterprise Services using SICF and SOA Manager

First step to Understand a Payroll Schema

Solution Manager Service Desk an End-to-End Helpdesk Solution

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

Rochester Institute of Technology. Oracle Training: Performing Inquiries and Requesting Reports in the Oracle Applications

Training Manual. Version 6

Web Dynpro ABAP: ALV and Table in Popup Window

SDN Community Contribution

Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.

Decision Support AITS University Administration. Web Intelligence Rich Client 4.1 User Guide

Embedding Crystal Reports inside ECC ALV Reports

IMPLEMENTATION OF DATA WAREHOUSE SAP BW IN THE PRODUCTION COMPANY. Maria Kowal, Galina Setlak

This guide is to help you get started with Live Chat Support on your Wix website. If you have any additional questions after reading this guide,

BI 4.1 Quick Start Guide

PeopleSoft Query Training

Web Dynpro: Multiple ALV Grids and Layouts in ALV

TriCore Secure Web Gateway User Guide 1

Converting and Exporting Data in XML Format

How To Import A File Into The Raise S Edge

Creating Blackboard Test Imports with Respondus

Transcription:

How to Load Data from Flat Files into BW PSA Applies to: SAP BI/BW 7.0 and above. Summary The document is aimed at all those who are at beginner level in BW. It details out step by step processes that are involved in loading data from a flat file into BW. Author: Umesh Pednekar Company: Howdens Joinery Co. Created on: 27 Oct 2011 Author Bio Umesh is working as a SAP BI/ BW Analyst in Howdens Joinery co and has technofunctional experience of over 7 years in designing, developing and implementing/upgrading SAP BW-BI solutions across various Industries in India and in the UK. 2010 SAP AG 1

Table of Contents Overview... 3 Assumptions... 3 Business Scenario... 3 Step by Step Solution... 3 Identifying the file that needs to be loaded into BW... 4 Creating Data source structure for the File... 4 Creating Info package to Load the file till the PSA... 13 Execute the Info package... 14 Validate the Results... 15 Follow these DO s and DONT s... 17 Related Content... 18 Disclaimer and Liability Notice... 19 2010 SAP AG 2

Overview Purpose of this document is to demonstrate a step by step solution that will help understand the mechanism involved in loading data from the flat file, in CSV format, into BW till the PSA. Often, loading data from flat files becomes an activity of paramount importance more importantly when the BW professionals are faced with the task of testing that solutions without sufficient availability of test data or the task that calls for making historical data available on quality, testing or pre-production servers. This document gives a simplistic approach that can help understand the solution and implement it quickly with positive results. Assumptions The document assumes that the target audience is aware of the processes that involve Creating BW Data targets / Info Providers Creating flat (CSV) files The document provides the mechanism that will help load data from flat files till the PSA. Further, it is expected that the audience know creating data targets and mapping the PSA with the data targets using transformations and moving the data using the Data Transfer Process (DTP). Business Scenario Classic business scenario which I had to encounter in one of my implementations project it was APO project and the requirement called for extraction of historical sales data from BW into APO. We wanted to test the solution with near live data and this meant making the historical sales data available from BW production to APO test server. (When we implemented the solution on the Production server we gave away the use of the flat files as we could extract data directly from one of the Sales Info providers but alas, this wasn t the case of Test server as BW Test server did not have the required historical sales data). The historical data from the Sales Info provider was extracted into flat files (you can refer HOW TO RSCRM_BAPI related documentation for this ). The next step was to load the flat files into the Test server first the PSA and then into the Data target. Step by Step Solution We now take a look at the steps involved in the process of loading data from a flat file into the PSA. These steps are covered in detail. 1. Identify the file that needs to be loaded into BW. 2. Make sure that the file structure coincides with the structure of the Data Target. 3. Execute activities for loading the file a. Create data source structure for the file b. Create Info package to load the file into PSA. c. Execute the Info package. d. Validate the Results 2010 SAP AG 3

Identifying the file that needs to be loaded into BW Let s assume that we need to load the following file into BW. The file structure has 3 Key figures in column K, L and M. Rest of the fields are to be treated as characteristics. Creating Data source structure for the File Our first step is to create a data source structure based on the file format. Go to the DW workbench using RSA1. In the Modeling section Go to the tab Source system The system displays folders all the possible source systems available this would include SAP, BI, other external systems and Flat File I am assuming that the source system creation is already done. You need to create the source system ( FLATFILE in this case) under this folder ( FILE in this case). 2010 SAP AG 4

Select the Flat file source system Right click the mouse and select Display Datasource Tree. All the application components are displayed for the source system. For the sake of simplicity, we will not create any additional app component but create the data source in the Unassigned nodes application component. At the desired application component, right click the mouse and select the option Create DataSource. 2010 SAP AG 5

You are now asked to enter the Datasource details viz. Technical name, Source system and the Type of the Datasource. Data source created in this case is called ZFLAT_DS and is identified as a Transaction data data source. Select Transfer to go to the various tabs that would help take the process ahead. On the General Info tab the details of the data source covering it s description and other critical parameters. PSA for All Segments in CHAR Format If this indicator is set, the PSA is not generated with a typed structure, but with character-type fields of type CHAR. The use of conversion exits (where available) only takes place after the data from the PSA has been read. Use this option if the conversion causes problems during loading, for example, because no suitable conversion routines currently exist if the source cannot guarantee that the data can be loaded to the correct data type. In this case, the data can nevertheless be loaded into the PSA and be corrected there. Data Is Language Dependent This indicator is set if the DataSource delivers language-dependent data. A DataSource is language dependent if it has a selection field that is defined as a language field. Data Is Time Dependent This flag is set if the DataSource delivers time-dependent data.. A DataSource is time-dependent if it has a selection field that defines either the lower or upper limit of the validity of the data. 2010 SAP AG 6

Delivery of Duplicate Data Recs : This indicator gives information on how the DataSource behaves within a request with regard to duplicate records: ' ' The status of the DataSource is unknown. '0' The DataSource does not deliver any duplicate records within a request, with reference to its key. '1' The DataSource can deliver duplicate records within a request, with reference to its key. However, no duplicate records are delivered in a data package. This indicator is particularly important for delta-capable attribute tables and text tables. For the settings '0' and '1' you also have to define a key for the DataSource. This can be either in the DDIC using the maintenance for the corresponding field property of the extract structure fields, or (alternatively or additionally) in the metadata of the Datasource. A field in the DataSource also has the additional attribute ' DataSource Key Field', which transfersor corrects the DDIC property where necessary The example is this document covers the details as follows: The Extraction tab helps enter the details of the Flat file. 2010 SAP AG 7

In the Delta Process option we are selecting Full Load. The file considered is a Text-type file which will be loaded from the local workstation (You can load files situated on the application servers too). No. of lines to be ignored When you load a flat file, its first XX rows are ignored. This means you can hide up to 99 top headers / remark rows. A blank entry (entering 0) means that every row of the file is taken into account. This is the default setting. If the values in your file (CSV file, for example) are separated using a particular character, you enter this separator in the Data Separator field. If the separator that you specified under Data Separator is a part of the value, the file indicates this by enclosing the value in particular start and end characters. Enter these start and end characters under Escape Sign Characters.. User Default or Fixed Entry If you select Default setting, the settings are taken from the user master data of the user used to execute the conversion exit. If you select Direct entry, you can make entries that are always used independent of the current user in the following fields. 2010 SAP AG 8

On the Proposal tab, you need to indicate the file that is under consideration and the system will transfer the fields details. Select limited number of records to create the proposal No. of Data Records selected in this case is 10. Click on Load Example Data. The system might ask you to provide access to the file select the required authorization/access option. When you click OK, system displays the records and creates a proposal which lists the fields from the file. 2010 SAP AG 9

Go to the next tab i.e. Fields. The system prompts if you wish to copy the list of fields from the proposals to the Field Attributes area. Select Yes. In the Fields tab, you now see the list of fields copied from the proposal. In the InfoObject column, enter the corresponding Infoobject technical name for each of the field. Make sure that the contents available in the flat file correspond to the field type/width else you will encounter errors either during loading or the data will not be aligned in appropriate manner. 2010 SAP AG 10

While you try to move to the last tab Preview, the system asks for confirmation that will copy the Infoobject properties onto the fields in the proposal. You will have to select Copy to give the confirmation. Remember that the prompt will appear for every InfoObject/field available in the Fields tab. You will have to select Copy for every prompt. In the Preview tab, select the number of records that you wish to display and validate the specifications. Then click on Read Preview Data. Records selected are 10. System asks for data source activation. Select Activate. 2010 SAP AG 11

Continue at the Log that displays information. Data Source is activated. A preview for the first 10 (or less) is displayed. Data source creation is successful. Go back using back keys to the Datasources tab in the Modeling section. You now see the newly created data source in the FLATFILE source system. 2010 SAP AG 12

Creating Info package to Load the file till the PSA The next process involves loading the data from the flat file into the BW PSA. We create an InfoPackage for this purpose. Select the data source, right click mouse and click on Create InfoPackage On the Create InfoPackage screen, select the tab under the Datasource and enter description for the InfoPackage. Save the InfoPackage. We now need to provide details related to the InfoPackage through various tab. Leave the Data Selection tab. 2010 SAP AG 13

In the Extraction tab, you will find details of the file that you had earlier entered prior to the proposal creation in the Datasource. Make changes, if required. You may have positioned the flat file in a different location. Also check for the number of headers row to be ignored in the file as well as the data separator. In BI 7.0. the load is done only till the PSA (unlike in BW 3.5 wherein you can carry the extraction till the Data Target/Info Provider). We are doing a Full Update as indicated in the Update tab. Execute the Info package In the Schedule tab, select the radio button next to Start Data Load Immediately. You can set the load in the background by providing details regarding the date and time of the load through Start Later in Background option. 2010 SAP AG 14

Click on Start to schedule the load. Data Extraction process is initiated. Validate the Results You can view the output in the PSA, by accessing the Call Monitor. The Call Monitor screen is displayed for the load under consideration. Select the PSA maintenance icon as shown below. 2010 SAP AG 15

From the available requests, select any of the requests for the PSA, with desired number of records and Continue. PSA requests contents are displayed. We have successfully extracted data from a flat file into the PSA. The Data source and the InfoPackage are listed in the source system. The extracted data can now be taken further within BW using transformations and DTPs (in BI 7.0) to desired Data Targets and Info Providers. 2010 SAP AG 16

Follow these DO s and DONT s 1) Flat file fields should correspond with the Info Objects whose properties you will be copying during the proposal in terms of field type and width. 2) During flat file loads, inclusion of special characters which invariably results in a failure while loading the data in the Data targets/info Providers goes unnoticed during load till the PSA. Care should be taken to eliminate presence of special characters. 3) While loading Units/Currencies for various key figures, ensure that the contents included in the Flat file are defined in system. Best way to validate is to check the SID table for 0UNIT, 0CURRENCY or the relevant unit InfoObject used. 2010 SAP AG 17

Related Content SCN Article : Upload Flat File in SAP BI/BW http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/603efe5a-b9d4-2e10-67a5-f16e9aa6aab8 SCN Article : Extraction of Hierarchy into Flat File from R/3 and Loading in BW System http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90859ec4-9c90-2c10-5cbd-933ce3251b13 Thread: http://forums.sdn.sap.com/thread.jspa?threadid=1574128 2010 SAP AG 18

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. 2010 SAP AG 19