BIW Training Exercises 1

61
Training Exercises SAP Business Intelligence ____________________________________________________________ ____________ BIW_Training Exercises_V1.0 Page 1 of 61

Transcript of BIW Training Exercises 1

Page 1: BIW Training Exercises 1

Training Exercises

SAP Business Intelligence

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 1 of 54

Page 2: BIW Training Exercises 1

Transaction code to access Data warehousing Workbench is RSA1

Step1. Type RSA1 in the command prompt

After completion of the Step 1 the below screen will appear.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 2 of 54

Function area/ View

Menu Bar

Navigation Window

Enter the T-Code: RSA1 in the box (Command Box) and click on Enter or F8 (Function Key)

Page 3: BIW Training Exercises 1

1. Exercise 2: Create characteristic InfoObject

Objective: Create and Maintain Characteristic Infoobjects

Steps:

a. Create Infoarea (IA_PURCHASE## under IA_PURCHASE)b. Create Characteristic catalog (IOC_PURCHAR##)c. Create Key figure catalog (IOC_PURKF##)d. Create characteristic Infoobjects

Info Object Description Data Type LengthY_ISEC## INDUSTRY SECTOR CHAR 10Y_MGRP## MATERIAL GROUP CHAR 10Y_MTYP## MATERIAL TYPE CHAR 10Y_PCAT## PRODUCT CATEGORY CHAR 10Y_PORG## PURCHASE ORGANIZATION CHAR 10Y_VAGRP## VENDOR ACCOUNT GROUP CHAR 10Y_SOFF## SALES OFFICE CHAR 30

e. Maintain the following attributes at the Info Object: Y_PORG##

Y_ISEC## INDUSTRY SECTORY_MGRP## MATERIAL GROUPY_MTYP## MATERIAL TYPEY_PCAT## PRODUCT CATEGORYY_VAGRP## VENDOR ACCOUNT GROUP

## : Training group id.

Solution:

a. Creating Info Area

Info Areas are used to organize Info Cubes and Info objects. Each Info Cube is assigned to an Info Area. Through an Info object’s Catalog, each Info objects is assigned to an Info Area as well. The maximum number of characters allowed for the technical name is 30.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 3 of 54

Page 4: BIW Training Exercises 1

After selecting the Create Info area option the following screen will be displayed provide the Technical Name and Description

b. Creating Characteristic InfoObject Catalog

Create Info Object Catalog for Characteristic

Step1: Go to Info Object Menu –Left side of the screen

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 4 of 54

2. Right Click on Info Provider and Select the Option Create Info area

Select the Info Provider Option.

Page 5: BIW Training Exercises 1

Step2: Select the InfoArea “IA_PURCHASE” in the right panel

Step3: Provide the Technical Name and Description

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 5 of 54

Select the Info Object Option

Right Click on the Info area (Created in the Step 1) and select the option Create Info Object Catalog.

Page 6: BIW Training Exercises 1

Step 4: Click on create button in the below snap shot.

Step 5: Activate the characteristic catalog by clicking on ACTIVATE Button

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 6 of 54

Char Option needs to be selected

Page 7: BIW Training Exercises 1

c. Creating Key Figure InfoObject Catalog

Step 6: Repeat the Step 1 to 5 to Create Info Object Catalog for Key figure (Note : In the Step 5 select the Key Figure in Info Object type (Check the below snap shot)

d. Creating Characteristic InfoObject

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 7 of 54

Click On Activate

Page 8: BIW Training Exercises 1

Create Characteristic Info Objects

Step1: Right Click on Characteristic Info Object CatalogClick on Create Info Object

Step 2: Provide the Technical Name and description in the below Snap shot and Click on continue.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 8 of 54

Page 9: BIW Training Exercises 1

Step 3: Click Continue (Enter)

General tab: you specify the basic properties of the characteristicThe following data types are supported for characteristics:

Char: Numbers and letters Character length 1 - 60

Numc: Numbers only Character length 1 - 60

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 9 of 54

Page 10: BIW Training Exercises 1

Dats: Date Character length 8

Tims: Time Character length 6

In General Tab Mention Data Type and Length

Lowercase Letters Allowed / Not Allowed

If this indicator is set, the system differentiates between lowercase letters and capital letters when you use a screen template to input values. If this indicator is not set, the system converts all the letters into capital letters when you use a screen template to input values.

Conversion Routines

The standard conversion for the characteristic is displayed. If this standard conversion is unsuitable, you can override it by specifying a conversion routine in the underlying domain. See also Conversion Routines in BI Systems.

Attribute Only

If you select Attribute Only, the created characteristic can be used only as a display attribute for another characteristic and not as navigation attribute.

Constants

By assigning a constant to a characteristic, you give it a fixed value.

Special Case:

If you want to assign the SPACE constant (type CHAR) or 00..0 (type NUMC) to the characteristic, type # in the first position.

Transfer Routine

When you create a transfer routine, it is valid globally for the characteristic, and is included in all the transformation rules that contain the Info object. The transfer routine can thus store Info object-dependent coding that only needs to be maintained once, but that is valid for all the transformation rules.

Activate Info Object by clicking on Activate button

Business Explorer Tab:

On this tab page you determine the properties that are required in the Business Explorer for reporting on or analyzing characteristics.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 10 of 54

Page 11: BIW Training Exercises 1

Display

For characteristics with texts: Under Display, you select whether you want to display text in the Business Explorer and if yes, which text. You can choose from the following display options: No Display, Key, Text, Key and Text, or Text and Key. This setting can be overwritten in queries.

Text Type

For characteristics and texts: In this field you set whether you want to display short, medium or long text in the Business Explorer.

Description BEx

In this field, you determine the description that appears for this characteristic in the Business Explorer. You choose between the long and short descriptions of the characteristic. This setting can be overwritten in queries. More information: Priority Rule with Formatting Settings.

Filter Selection in Query Definition

This field describes how the selection of filter values or the restriction of characteristics is determined when you define a query.When you restrict characteristics, the values from the master data table are usually displayed. For characteristics that do not have master data tables, the values from the SID Table are displayed instead. In many cases it is more useful to only display those values that are also contained in an InfoProvider. Therefore you can also choose the setting Only Values in InfoProvider.

Filter Display in Query Execution

This field tells you how the display of filter values is determined when a query is executed.If the characteristic has few characteristic values, you can display the values as a dropdown list box.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 11 of 54

Page 12: BIW Training Exercises 1

Base Unit of Measure

The unit Info object must be an attribute of the characteristic. This unit Info object is used when quantities are converted for the master data-bearing characteristic in the Business Explorer.

Currency Attribute

You select a unit Info object of type currency that you have created as an attribute for the characteristic. In this way, you can define variable target currencies in the currency translation types. The target currency is then determined from the master data upon currency translation in the Business Explorer and when loading dynamically. Also see the example Defining Target Currencies Using Info objects.

Authorization Relevance

You choose whether a particular characteristic is included in the authorization check when you are working with the query. Mark a characteristic as authorization-relevant if you want to create authorizations that restrict the selection conditions for this characteristic to single characteristic values. You can only mark the characteristic as Not Authorization-Relevant if it is no longer being used as a field for the authorization object.

Master Data/Texts Tab:In this tabstrip, you can determine whether attributes and/or texts should be made available to the characteristic.

With Master Data

In this case the system generates a P table for this characteristic. This table contains the key of the characteristic and any attributes that might exist. It is used as a check table for the SID table.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 12 of 54

Page 13: BIW Training Exercises 1

When you load transaction data, there is check whether there is a characteristic value in the P table if the referential integrity is used.

With Texts

If you want to use texts with a characteristic, you have to select at least one text. The short text (20 characters) option is set by default but you can also choose medium-length texts (40 characters) or long texts (60 characters).

Language-Dependent Texts

If you decide that you want the texts to be language dependent, the language becomes a key field in the text table.

Time-Dependent Texts

If you want texts to be time dependent (the date is included in the key of the text table),

Hierarchy Tab:If you want to create a hierarchy, or upload an existing hierarchy from a source system, you have to set the with hierarchy indicator. The system generates a hierarchy table with hierarchical relationships for the characteristic.

Attributes Tab:

On this tab page, you specify whether the characteristic has display or navigation attributes, and if so, which properties these attributes have.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 13 of 54

Page 14: BIW Training Exercises 1

Attributes are Info objects that exist already, and that are assigned logically to the new characteristic.

In the query, display attributes provide additional information about the characteristic. Navigation attributes, on the other hand, are treated like normal characteristics in the query, and can also be evaluated on their own.

Navigation Attribute

The attributes are defined as display attributes by default. You can activate an attribute as navigation attribute in the relevant column.

As soon as a characteristic appears in duplicate (as a characteristic and as a navigation attribute) in an InfoProvider, you must give the navigation attribute a different name. For example, you could call the characteristic Cost Center, and call the navigation attribute Person Responsible for the Cost Center.

Compounding Tab:

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 14 of 54

Page 15: BIW Training Exercises 1

In this tab page, you determine whether you want to compound the characteristic to other Info objects. You sometimes need to compound Info objects in order to map the data model. Some Info objects cannot be defined uniquely without compounding.For example, if storage location A for plant B is not the same as storage location A for plant C, you can only evaluate the characteristic Storage Location in connection with Plant. In this case, compound characteristic Storage Location to Plant, so that the characteristic is unique.

Step 4: Activate Info Object by clicking on Activate button

e. Maintain Attributes

Step 1: Select Info Object (Example: PURCHASING ORGANIZATION) and right click on the Info Object and select the Change option in the drop down box.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 15 of 54

Page 16: BIW Training Exercises 1

Step 2: Go to Attributes TabEnter all the attributes (Info objects)

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 16 of 54

Page 17: BIW Training Exercises 1

Step 3: After providing all the information click on activate button

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 17 of 54

Click on Activate Button

Page 18: BIW Training Exercises 1

2. Exercise 3: Create Key figure InfoObject

Objective: Create Key figure Infoobjects

Steps:1. Use the Key figure catalog created in Exercise 1.2. Create following key figures

Info Object Description Data Type LengthY_IAMT## IO FOR INVOICED AMOUNT AMOUNT 15,2

Y_NPOI##IO FOR NO.OF PURCHASE ORDER ITEMS INTEGER 15,2

Y_OQTY## IO FOR ORDER QUANTITY QUANTITY 15,2

##: The id of the training group

Solution:

Step 1: Right Click on Key Figure Info Object CatalogClick on Create Info Object

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 18 of 54

Page 19: BIW Training Exercises 1

Step 2: Give Technical name and DescriptionClick on continue Button

Step 3: Go to Tab Type/UnitSelect Type/Data TypeMention Unit/CurrencyActivate

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 19 of 54

Page 20: BIW Training Exercises 1

Type/unit Tab :

Key Figure Type

Specify the type. Amounts and quantities need unit fields.

Data Type

Specify the data type. For the amount, quantity, and number, you can choose between the decimal number and the floating point number, which guarantees more accuracy. For the key figures date and time, you can choose the decimal display to apply to the fields.

The following combinations of key figure and data type are possible:

Key Figure Type Data Type

AMO Amount CURR: Currency field, created as DEC

 FLTP: Floating point number with 8 byte precision

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 20 of 54

Page 21: BIW Training Exercises 1

QUA Quantity QUAN: Quantity field, created as DEC

 FLTP: Floating point number with 8 byte precision

NUM Number DEC: Calculation or amount field with comma and +/- sign.

 FLTP: Floating point number with 8 byte precision

INT integer INT4: 4 byte integer, whole number with +/- sign

DAT Date DATS: Date field (YYYYMMDD), created as char(8)

 DEC: Calculation or amount field with comma and +/- sign.

TIM Time TIMS: Time field (hhmmss), created as char(8)

 DEC: Calculation or amount field with comma and +/- sign.

Currency/Quantity Unit

You can assign a fixed currency to the key figure. If this field is filled, the key figure bears this currency throughout BW.

You can also assign a variable currency to the key figure. In the field unit/currency, determine which Info object bears the key figure unit. For quantities or amount key figures, either this field must be filled, or you must enter a fixed currency or amount unit.

Aggregation Tab:

Aggregation:

There are three aggregation options:...

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 21 of 54

Page 22: BIW Training Exercises 1

●      Minimum (MIN): The minimum value of all values displayed in this column is displayed in the results row.

●      Maximum (MAX): The maximum value of all values displayed in this column is displayed in the results row.

●      Summation (SUM): The sum of all values displayed in this column is displayed in the results row.

Exception Aggregation

This field determines how the key figure is aggregated in the Business Explorer in relation to the exception characteristic. This reference characteristic must be unique in the query. In general, this refers to time.

The key figure Number of Employees would, for example, be totaled using the characteristic Cost Center, and not a time characteristic. Here you would determine a time characteristic as an exception characteristic with, for example, the aggregation Last Value.

The following exception aggregations are possible:

●      Average (all values) (AVG): The average of all values is displayed.

●      Counter (value not equal to zero) (CN0): The number of values <> zero is displayed in the results row.

●      Counter (all values) (CNT): The number of existing values is displayed in the results row.

●      First value (FIR): The first value in relation to the reference characteristic is displayed in the results row.

●      Last value (LAS): The last value in relation to the reference characteristic is displayed in the results row.

●      Maximum (MAX):

●      Minimum (MIN):

●      Summation (SUM)

Referenced characteristic for exception aggregation

In this field, select the characteristic in relation to which the key figure is to be aggregated with the exception aggregation. Often this is a time characteristic. However, you can use any characteristic you wish.

Additional Properties Tab:

Business Explorer

You can define some of the following settings specifically for the Info objects contained in the data target. The settings are then only valid in the respective data target. See also Additional Functions in InfoCube Maintenance and Additional Functions in ODS Object Maintenance.Decimal PlacesYou can define how many decimal places the field should be displayed with by default in the Business Explorer. This can be overwritten in queries.DisplayThis field describes the scaling with which the field is displayed by default in the Business Explorer. This can be overwritten in queries.More information: Priority Rule with Formatting Settings.

Miscellaneous:

Key Figure with Maximum PrecisionIf you select this indicator, the OLAP processor calculates internally with packed numbers that have 31 decimal places. In doing so, a greater accuracy is attained, and the rounding differences are reduced. Normally, the OLAP processor calculates with floating point numbers.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 22 of 54

Page 23: BIW Training Exercises 1

Attribute OnlyIf you select Attribute Only, the key figure that is created can only be used as an attribute for another characteristic, but not as a dedicated key figure in the InfoCube.

Step 4: Activate Key figure InfoObject

3. Exercise 4: Load Master Data

Objective: Load master data attributes and Text in the InfoObjects created in above exercise.

Steps:

Create Source system (Please use the Source system created by trainer). Select the Application component “PURCHASE”.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 23 of 54

Page 24: BIW Training Exercises 1

a. Create Datasource for attributes (YDS_PURCHASE##)b. Create Infopackage for attributes (YDS_PURCHASE_ATTR_FULL##)c. Create Datasource for Text (YDS_PURCHASE_TEXT##)d. Create Infopackage for text (YDS_PURCHASE_TEXT_FULL##)e. Create Transformation for attributesf. Create DTP for attributesg. Create Transformation for text datasourceh. Create DTP for text

Solution

To load master data to these InfoObjects ,we need to convert these to datatargets.

Step 1: Goto Infoprovider menuRight click on InfoAreaClick on Insert Charecteristic as Infoprovider

Step 2 : Give Info Object Technical name

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 24 of 54

Select Info Area

Click on Insert Charecteristic as InfoProvider

Page 25: BIW Training Exercises 1

Click on Continue

Step 3 : Create source systemGoto sourcesystem menuSelect FileRight clickclick on create

Step 4 : Give Technical name and description

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 25 of 54

Select Source System Menu

Select File and Click On Create

Page 26: BIW Training Exercises 1

a. Create Datasource for Attribute

Step 5 : Create Datasource for Attribute

Goto Data spource MenuSelect Application component Right click on Application componentclick on create datasource

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 26 of 54

Page 27: BIW Training Exercises 1

Step 6 : Give Technical name , Source system and select datasource type

Click on continue

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 27 of 54

Goto DataSourceMenu

Select Application Component

Page 28: BIW Training Exercises 1

Step 7 : Goto general info. TabGive description

Step 8 : Goto Extraction tabselect flat file

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 28 of 54

Give Description here

Page 29: BIW Training Exercises 1

Flat file looks like below

Step 9 : Goto fields tabgive all the fields

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 29 of 54

Select FlatFile

Page 30: BIW Training Exercises 1

b. Create Infopackage for Attribute data source

Goto Infoprovider menuSelect datasourceright clickclick on create infopackage

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 30 of 54

Page 31: BIW Training Exercises 1

Click on saveStep 11 : Goto schedule tabclick on start button

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 31 of 54

Page 32: BIW Training Exercises 1

Step 12 : Click on monitor button to see the status of the load

Step 13 : To View the data in the Data source select Data source right click and select Manage

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 32 of 54

Click on Start Button

Monitor Button

Page 33: BIW Training Exercises 1

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 33 of 54

PSA Maintenance Button

Page 34: BIW Training Exercises 1

Step 14 : Click on PSA Maintenance

Step 15 : Select Continue..

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 34 of 54

Page 35: BIW Training Exercises 1

c. Creation of Datasource for TextStep 16 :Create datasource for text

Goto Data source menuright click on application component Give datasource technical name Source system and data type

Step 17 : Click on continue

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 35 of 54

Page 36: BIW Training Exercises 1

Step 18 : Goto general info tabgive desc

Step 19 : Goto extraction tabselect file name

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 36 of 54

Page 37: BIW Training Exercises 1

Flat file looks like below

Step 20 : Goto fields tabgive fields nameactivate

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 37 of 54

Page 38: BIW Training Exercises 1

d. Create the Infopackage for text datasource

Step 21 : Goto Infoprovider menuSelect datasourceright clickclick on create infopackage

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 38 of 54

Page 39: BIW Training Exercises 1

Step 22 : Click on save

Step 23 : Goto schedule tabclick on start button

Step 24 : Click on monitor button to see the status of the load

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 39 of 54

Page 40: BIW Training Exercises 1

Step 25 : To View the data in the Data source select Data source right click and select Manage

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 40 of 54

Page 41: BIW Training Exercises 1

Step 26 : Click on PSA Maintenance

Step 27 : Click on Continue.

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 41 of 54

Page 42: BIW Training Exercises 1

Data has been loaded up to PSA.

e. Create Transformation for attributes

Step 28 : To load data to the info objects of attribute datasource

Goto Infoprovider menuselect Info Areaselect Master data attributeRight clickclick on create transformation

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 42 of 54

Page 43: BIW Training Exercises 1

Step 29 : Click on Continue

Step 30 : Map the fields

Step 31 : Activate

f. Create DTP for attributes

Step 32 : Create DTP(Data Transfer Process)

Right click on symbol

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 43 of 54

Page 44: BIW Training Exercises 1

System will gives the Technical name of DTP

Step 33 : Click on continue

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 44 of 54

Page 45: BIW Training Exercises 1

Step 34 : Activate

Step 35 : Click on execute button

Status will be shown as below

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 45 of 54

Page 46: BIW Training Exercises 1

Step 36 : To view the data in the objectRight click on attributeclick on display data

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 46 of 54

Page 47: BIW Training Exercises 1

Step 37 : Click on Field selection for output

Step 38 : Click on select all and click on execute

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 47 of 54

Page 48: BIW Training Exercises 1

g. Create Transformation for text datasource

Step 39 : To load data to the info objects of Text datasourceGoto Infoprovider menuselect Info Areaselect Master data TextRight clickclick on create transformation

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 48 of 54

Page 49: BIW Training Exercises 1

Step 40 : Click on continue

Step 41 : Map the fields and Activate

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 49 of 54

Page 50: BIW Training Exercises 1

h. Creation of DTP for text Step 42 : Create DTP(Data Transfer Process)

Right click on the symbol click on create DTP

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 50 of 54

Page 51: BIW Training Exercises 1

Step 43 : Click on continue

Step 44 : Click on save and activate

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 51 of 54

Page 52: BIW Training Exercises 1

Step 45 : Click on execute button

Step 56 : To view the data in the objectright click on Master data textclick on manage

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 52 of 54

Page 53: BIW Training Exercises 1

Step 57 : Goto contents tab

Step 58 : Click on contents button

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 53 of 54

Page 54: BIW Training Exercises 1

Step 59 : Click on execute button

________________________________________________________________________ BIW_Training Exercises_V1.0 Page 54 of 54