Load Hierarchies

download Load Hierarchies

of 26

Transcript of Load Hierarchies

  • 7/28/2019 Load Hierarchies

    1/26

    Generated by Jive on 2012-04-12+02:00

    1

    Loading Hierarchies from Flat File usingthe new DataSource and TransformationTechnology

    Applies to:

    SAP BW 7.3

    Summary

    This paper gives a clear picture about how to load hierarchies from a flat file using the

    transformation and DTP in BW 7.3. Through this document we have tried to explain the

    steps involved in this process.

    Author(s): Ravi Madasu and Kameswari Akella

    Company: Deloitte Consulting

    Created on: 18 March 2012

    Author Bio

    Ravi Madasu is a Senior Consultant in Deloitte with overall 10 years of experience in SAP

    BW/BI.

    Kameswari Akella currently works at Deloitte Consulting on SAP BI/BW.

  • 7/28/2019 Load Hierarchies

    2/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    2

    Introduction

    With SAP Netweaver BW 7.3, we are given a flexibility to load the hierarchies from flat file by creating

    transformations, InfoPackages and DTPs. This paper explains the step by step procedure to load

    the plant hierarchy data, which is available in a Flat File, to ZPLANT infoobject.

    Prerequisites

    In the InfoObject Maintenance transaction, you have set the flag for

    the hierarchy basic characteristic with Hierarchies and have defined the

    hierarchys properties.

  • 7/28/2019 Load Hierarchies

    3/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    3

    http://scn.sap.com/servlet/JiveServlet/showImage/81933/i1.png
  • 7/28/2019 Load Hierarchies

    4/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    4

    You have assigned an InfoArea to the characteristic in the InfoObject maintenance. The

    hierarchy becomes an InfoProvider.

    Scenario

    We want to load the plant hierarchy data to ZPLANT infoobject. The flat file, which has the

    plant hierarchy data, is given below.

    Steps:

    Step 1: Create Flat File Source System

    Create a Flat File Source System ZFILE

    http://scn.sap.com/servlet/JiveServlet/showImage/81934/i2.png
  • 7/28/2019 Load Hierarchies

    5/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    5

    Step 2: DataSource Creation

    Create a 7.X DataSource ZPLANT_HIER and select the Data Type Datasource as

    Hierarchies

    Give Short, Medium, Long descriptions in the General Info tab. The screenshot is given

    below:

    http://scn.sap.com/servlet/JiveServlet/showImage/81960/i4.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/81959/i3.png
  • 7/28/2019 Load Hierarchies

    6/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    6

    In Extraction tab, give the path of the file and data separator as , as this is aCSV file. Also, give target infoobject as ZPLANT as we are loading hierarchies for

    Plant infoobject.

    http://scn.sap.com/servlet/JiveServlet/showImage/81961/i5.png
  • 7/28/2019 Load Hierarchies

    7/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    7

    Next, click on create header.

    http://scn.sap.com/servlet/JiveServlet/showImage/81962/i6.png
  • 7/28/2019 Load Hierarchies

    8/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    8

    Fill in the Hierarchy Name and Description as shown below:

    Now, save the hierarchy.

    In the File Structure tab, we can see the structure of the file to be created. The CSV file,

    whose screenshot is given above, has been created using this structure.

    http://scn.sap.com/servlet/JiveServlet/showImage/81964/i8.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/81963/i7.png
  • 7/28/2019 Load Hierarchies

    9/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    9

    In Segments/Fields, we can see the different segments. Hierarchy Header is the

    primary segment. The screenshot of Hierarchy Header is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/81969/i9.png
  • 7/28/2019 Load Hierarchies

    10/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    10

    The screenshot of Hierarchy Description segment is given below:

    The screenshot of Hierarchy Structure is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/81974/i11.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/81970/i10.png
  • 7/28/2019 Load Hierarchies

    11/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    11

    The screenshot of Descriptions for Text is given below:

    Now, Preview the data. The screenshot is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/81976/i13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/81975/i12.png
  • 7/28/2019 Load Hierarchies

    12/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    12

    Step 3: Create Transformation

    Select the Object Type as InfoObject and subtype as Hierarchies

    http://scn.sap.com/servlet/JiveServlet/showImage/81977/i14.png
  • 7/28/2019 Load Hierarchies

    13/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    13

    Mention the target as ZPLANT as shown in the below screenshot:

    The transformation screenshot for Hierarchy Header is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/81979/i16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/81978/i15.png
  • 7/28/2019 Load Hierarchies

    14/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    14

    The transformation screenshot for Hierarchy Description is given below:

    The transformation screenshot for Hierarchy Structure is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/81984/i18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/81983/i17.png
  • 7/28/2019 Load Hierarchies

    15/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    15

    Here, make sure that you map NODENAME field to ZPLANT infoobject .If you

    are maintaining data for any other external characteristics in the flat file ,then

    make sure that you map NODENAME to them as well.

    The transformation screenshot for Descriptions for Text Nodes is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/81985/i19.png
  • 7/28/2019 Load Hierarchies

    16/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    16

    Step 4: Create a Data Transfer Process (DTP)

    Select the Subtype of Object as Hierarchies. The Screenshot is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/82786/i21.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/82785/i20.png
  • 7/28/2019 Load Hierarchies

    17/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    17

    Make sure Activate Hierarchy checkbox is selected.

    Step 5: Create InfoPackage

    Give InfoPackage Description as shown below and click on save.

    http://scn.sap.com/servlet/JiveServlet/showImage/82853/i22.png
  • 7/28/2019 Load Hierarchies

    18/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    18

    Just recheck the settings in Extraction. The screenshot is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/82854/i23.png
  • 7/28/2019 Load Hierarchies

    19/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    19

    Select the Plant Hierarchy in the Hierarchy Selection tab. The screenshot is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/82855/i24.png
  • 7/28/2019 Load Hierarchies

    20/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    20

    Results

    Execute the InfoPackage by clicking on Start button.

    Data is loaded successfully to PSA.

    http://scn.sap.com/servlet/JiveServlet/showImage/82858/i27.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/82857/i25.png
  • 7/28/2019 Load Hierarchies

    21/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    21

    The PSA maintenance screen for Hierarchy Structure segment is given below.

  • 7/28/2019 Load Hierarchies

    22/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    22

    http://scn.sap.com/servlet/JiveServlet/showImage/82859/i28.png
  • 7/28/2019 Load Hierarchies

    23/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    23

    Now,execute the DTP.

    http://scn.sap.com/servlet/JiveServlet/showImage/82860/i29.png
  • 7/28/2019 Load Hierarchies

    24/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    24

    Now, click on Maintain Hierarchies to see the hierarchy that is loaded.

    http://scn.sap.com/servlet/JiveServlet/showImage/82862/i31.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/82861/i30.png
  • 7/28/2019 Load Hierarchies

    25/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    Generated by Jive on 2012-04-12+02:00

    25

    The following screen appears:

    Click on Plant Hierarchy. The screenshot is given below:

    http://scn.sap.com/servlet/JiveServlet/showImage/82863/i32.png
  • 7/28/2019 Load Hierarchies

    26/26

    Loading Hierarchies from Flat File using the new DataSource and Transformation Technology

    The hierarchy is loaded successfully and stored in BI system.

    Related Content

    SAP Help Portal

    SAP Community Network

    SAP Support Portal

    http://scn.sap.com/servlet/JiveServlet/showImage/82864/i33.png