Вы находитесь на странице: 1из 22

2013 sapficoconsultant.com. All rights reserved.

No part of this material should be


reproduced or transmitted in any form, or by any means, electronic or mechanical
includingphotocopying,recordingorbyanyinformationstorageretrievalsystemwithout
permissioninwritingfromwww.sapficoconsultant.com
SAPisatrademarkofSAPAG,Neurottstrasse16,69190Walldorf,Germany.

SAPAGisnotthepublisherofthismaterialandisnotresponsibleforitunderanyaspect.

WarningandDisclaimer
Thisproductissoldasis,withoutwarrantyofanykind,eitherexpressorimplied.Whileevery
precautionhasbeentakeninthepreparationofthismaterial,www.sapficoconsultant.com
assumesnoresponsibilityforerrorsoromissions.Neitherisanyliabilityassumedfor
damagesresultingfromtheuseoftheinformationorinstructionscontainedherein.Itis
furtherstatedthatthepublisherisnotresponsibleforanydamageorlosstoyourdataor
yourequipmentthatresultsdirectlyorindirectlyfromuseofthisproduct.

2|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Table of Contents

1 Introduction..................................................................................................................................................7
2 IntroductionaboutBusinessContent...........................................................................................................9
2.1 BusinessContentinSAPBI.......................................................................................................................9
2.2 BusinessContentVersions......................................................................................................................10
2.3 InstallingBusinessContent.....................................................................................................................12
2.3.1

StepstoInstallBusinessContent................................................................................................12

3 LogisticsExtraction.....................................................................................................................................17
3.1 DataSources:..........................................................................................................................................18
3.2 UseofDataSource:.................................................................................................................................18
4 ExtractionofDatafromSAPtoBI(GenericExtractor)...............................................................................19
4.1 StepsinSAP.............................................................................................................................................19
4.1.1

Step1:CreatingaView...............................................................................................................19

4.1.2

Step2:CreatingGenericDataSource.........................................................................................25

4.1.3

Step3:TestingGenericDataSource...........................................................................................31

4.2 StepsinBI................................................................................................................................................33
4.2.1

Step1:SelectSourceSystem......................................................................................................33

4.2.2

Step2ReplicateMetadata........................................................................................................34

4.2.3

Step3:CreatingInfoPackageandUploadingdatatoPSA.........................................................37

4.2.4

Step4:InstallingInfoObjectfromBIContent.............................................................................41

4.2.5

Step5:CreatingInfoArea...........................................................................................................45

4.2.6

Step6:CreatingDataStoreObject.............................................................................................47

4.2.7

Step7:CreatingTransformation.................................................................................................51

4.2.8

Step8:CreatingDTP(DataTransferProcess).............................................................................54

3|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

4.2.9

Step9:ViewcontentsofDSOandmovedatafromNewtoActivetable...................................59

5 LOExtractionProcessesInvolved...............................................................................................................62
5.1 LBWEActivities.......................................................................................................................................62
5.2 EventsinLOExtraction:..........................................................................................................................69
5.3 UpdateMode:.........................................................................................................................................70
5.3.1

DocumentUpdate:......................................................................................................................70

5.3.2

StatisticalUpdate:.......................................................................................................................70

5.3.3

DirectDelta.................................................................................................................................74

5.4 QueuedDelta:.........................................................................................................................................75
5.4.1

UsefulreportsinQueueddelta...................................................................................................76

5.4.2

DeltaQueue(RSA7).....................................................................................................................78

5.4.3

Tablesforupdatemethods.........................................................................................................80

5.5 StepsinSAPECCSide(LOExtraction).....................................................................................................86
5.5.1

DataSourceActivation................................................................................................................86

5.5.2

Activateextractstructure...........................................................................................................88

5.5.3

SetupTables................................................................................................................................90

5.5.4

FillingSetupTables:....................................................................................................................94

5.5.5

CheckingExtractedData.............................................................................................................96

5.6StepsinBIside(LOExtraction)...............................................................................................................98
5.7 Loadingtocube.....................................................................................................................................104
5.7.1

CreationofTransformation......................................................................................................104

5.7.2

CreateDTPforDataSource......................................................................................................107

5.7.3

CheckingCubeContents...........................................................................................................114

5.7.4

ConfiguringDeltaLoad..............................................................................................................116

6 FlatFileLoad.............................................................................................................................................119
4|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

6.1 CreateInfoArea....................................................................................................................................119
6.2 CreateInfoObjectCatalog....................................................................................................................121
6.3 CreateCharacteristicsInfoObject........................................................................................................122
6.4 CreateKeyFigureInfoObject...............................................................................................................129
6.5 CreateDataStoreObject......................................................................................................................132
6.6 CreatingSourceSystem........................................................................................................................139
6.7 CreateDataSource...............................................................................................................................141
6.8 CreateInfoPackage..............................................................................................................................148
6.9 CreateTransformation..........................................................................................................................154
6.10CreateDTP...........................................................................................................................................157
6.11CreateInfoCube..................................................................................................................................166
6.12ProcessChainsCreation......................................................................................................................174
6.12.1 Introduction..............................................................................................................................174
6.12.2 UsageofProcesschain..............................................................................................................174
6.12.3 Processchainviews...................................................................................................................174
6.12.4 StepstoCreateProcesschain...................................................................................................176
6.13OtherPoints.........................................................................................................................................195
7 InventoryManagement............................................................................................................................200
7.1 BusinessScenario..................................................................................................................................201
7.1.1

Inventorymanagementwithnoncumulativekeyfigures........................................................201

7.1.2

InventorymanagementwithSnapshots...................................................................................201

7.1.3

Howtochoosetherightscenario.............................................................................................201

7.2 Advantages/disadvantagesoftheSnapShotscenario.........................................................................202
Advantages........................................................................................................................................202
Disadvantages...................................................................................................................................202
5|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

7.3 DataSourcesUsedinInventory............................................................................................................203
7.4 Inventorymanagementwithnoncumulativekeyfigures....................................................................204
7.4.1

InfoSources/InfoCubeinBI.......................................................................................................204

7.4.2

Uploadsequenceandcompression..........................................................................................204

7.4.3

ImportantPointswhileworkingwithInventory.......................................................................215

7.4.4

LoadingtotheInventoryCube0IC_C03...................................................................................216

8 Reporting..................................................................................................................................................219
8.1.1

ApplicationsofQueryDesigner................................................................................................219

8.1.2

FeaturesofQueryDesigner......................................................................................................219

8.1.3

ScreenLayout............................................................................................................................220

8.1.4

ToolbarOptions........................................................................................................................223

8.1.5

DefiningNewQueries...............................................................................................................227

8.1.6

DefiningCellException.............................................................................................................230

8.1.7

DefiningConditions...................................................................................................................230

8.1.8

DefiningExceptions...................................................................................................................230

8.1.9

BusinessScenario......................................................................................................................230

6|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Introduction

The SAP BI (Business Intelligence) formerly Business Warehouse makes available both
structured and unstructured information on your enterprise to users who require general
access to information. This information has to be in a consistent form when accessed by
the user. SAP BI allows you to integrate and analyse relevant information in real-time.
SAP BI provides you with a range of tools that support you in generating interactive
reports, and thereby facilitate decision-making at every level.

Data Flow in SAP Business Intelligence


Data from various sources (SAP systems, non-SAP systems, flat files, XML data,
databases etc.) is loaded into the SAP BI using extraction processes, and, where
necessary, is then transformed. For example, this may take the form of:
Technical modifications
Business modifications (such as currency translation)
After being processed, the data is saved in InfoProviders. InfoProviders are created with
specific business considerations in mind. This simplifies the process of evaluating and
analyzing data later for reporting purposes. InfoProviders are objects that make data
available for reporting. You access this InfoProvider and generate reports based on it
using the reporting tools provided by the Business Explorer (BEx). This allows you to get
a focussed readout of your data
SAP BI allows the evaluation of data from operative SAP applications, from any other
business applications, and from external data sources (databases, online services and
the Internet). The Administrator Workbench provides functions for controlling, monitoring
and maintaining all data retrieval processes.
The SAP BI allows Online Analytical Processing (OLAP) for preparing information on
large quantities of operative and historical data. OLAP technology makes
multidimensional analysis possible for various business perspectives.
With the Business Explorer, SAP BI makes flexible reporting and analysis tools
available. This enables strategic analysis and supports decision-making within a
company. Authorized employees can access and evaluate historic and current data in
different levels of detail.

7|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

BI
Reports

InfoProvider

Storage

Transformation

Extraction

SourceSystems/Datasources

VariousSourceSystems

8|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Introduction about Business Content

Business Content is a preconfigured set of role and taskrelevant information models based on
consistentmetadataintheSAPBusinessInformationWarehouse.

The objective of SAP BI Business Content is to make relevant information available to specific roles
withinanenterpriseinordertoprovidetheseuserswithexactlytheinformationtheyneedtofulfilltheir
dailybusinesstasks.

Thisinformationmodelincludesintegralroles,workbooks,queries,InfoSources,InfoCubes,ODSobjects,
keyfigures,characteristics,updaterules,andextractorsforSAP,mySAP.comBusinessApplications,and
forotherselectionapplications.

2.1

Business Content in SAP BI

SAPBusinessIntelligencedeliverspreconfiguredobjectsunderthecollectivetermBusinessContent.
These objects speed up the implementation of the SAP Business Intelligence because they deliver
completesolutionsforbusinessinformationrequests.

ItisdeliveredasanaddontoSAPBI.

BusinessContentincludes:

R/3extractorprograms
DataSources
Processchains
InfoObject
InfoSources
Datatargets(InfoCubesandODSobjects)
Variables
Dataminingmodels
Queries
Workbooks
CrystalReports
Webtemplates
Roles

9|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m


2.2

Business Content Versions

SAPdeliversBusinessContentintheSAPDeliveryVersion(Dversion).

YouneedtotransfertheBusinessContentobjectsintheactiveversion(Aversion)inordertobeableto
workwiththem.
Version
Delivered
Active
Modified

Meaning
SAP Delivered
Active Version
Modified Version

Objects of the Business Information Warehouse are run in versions to enable editing, execution and
deliveryofdifferentcharacteristicsforanobjectinparallel.

TheobjectsoftheBusinessContentaredeliveredinversionD(Delivery)
ChangesarestoreinM(Modified)version;
DataisstoredinA(Active)objects
An upgrade of the Business Content does not affect the objects that are in productive use.

Most of the delivered Content Objects include:


A-Version= active
D-Version= delivered
M-Version= modified
Exceptions:

TransferstructuresdonothaveDversions,theyhaveshadowtables
10|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

RolesdonothaveDVersions
Aversion=SAP_BWC_*(onlyrelevantforcustomersystems)
Dversion=SAP_BW_*(willbedelivered)

OnlyAversionobjectsareexportedfromthedevelopmentsystem

These objects are imported into the target system into either the AVersion or the MVersion,
dependingontheobjecttype.TheMVersionobjectsareactivatedafterimport.

Examples
:Currencytranslationtype,
AVersion
MVersion
:InfoObjectCatalogVersion:InfoObject,InfoCube
1. SAP delivery

SAPdeliverstheBusinessContentobjectsintheDVersion

ChangesaresavedintheMversion

ActiveBusinessContentissavedintheAversion.

OnlythoseobjectsthatwerestoredintheAversionareexportedfromthedevelopmentsystem.When
importingintothetargetsystem,theseobjects,dependentonobjecttype,areeitherimporteddirectly
intotheactiveversionorinamodifiedversion.
2. SAP Delivery (Business Content upgrade)

SAPdeliverstheBusinessContentobjectsinanewDVersion.
ThecustomercancomparethenewBusinessContentwithhis/heractivecustomerversionand
eitheradoptthenewversionormergeitwithhis/herversion.

Adopt:ThecustomerversionisdeletedandreplacedbythenewBusinessContentversion.
Merge:Thetotalismadefrombothobjectsandsavedasanewcustomer
When activating Business Content, the SAP delivery version is adopted and the active customer
versionsareoverwrittenifyoudonotexecuteamatchup

11|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

2.3

Installing Business Content

BeforeworkingwithBusinessContentobjects,youhavetoconvertthemfromtheSAPdeliveryversion
(Dversion)intotheactiveversion(Aversion).

2.3.1 Steps to Install Business Content


EnterTcodeRSA1

12|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Youwillgetmanyoptionslikeshowninbelowscreen

TheAdministratorWorkbenchforinstallingBusinessContenthasthreenavigationwindows:

Inthelefthandwindowyoudeterminetheviewoftheobjectsinthemiddleareaofthescreen.

Inthemiddlewindow,youselecttheobjectsthatyouwanttoactivate.

Intherighthandwindow,youmakethesettingsforinstallingtheBusinessContent.Theright
handwindowalsocontainsanoverviewoftheobjectsyouhaveselected,anditisherethatyou
starttheinstallationoftheBusinessContent.

13|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Select any object which you would like to install, For example we are installing Standard Cube
0BWTC_C02andthenClickonTransferSelection

GroupObjectstoBeIncluded,DetermineModeofCollectionforObjects
Makethesettingsyourequirefromthefollowingselectionlistsontherighthandsideofthescreen:

Grouping

Choosetheobjectsthatyouwantthesystemtoinclude.Thegroupingscombinetheobjects
fromaparticulararea.Youhavethefollowingoptions:

OnlyNecessaryObjects(defaultsetting)
InDataFlowBefore
InDataFlowAfterwards
InDataFlowBeforeandAfterwards
SelectOptionInDataFlowBeforeandAfterwards.

14|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

CollectionMode

Selecthowyouwanttocollecttheobjects:

Collectautomatically(defaultsetting):Thedataiscollecteddirectlywhentheobjectsare
selected.

StartManualCollection:ThedataiscollectedonlywhenyouclickontheGatherDependent
Objectsicon.

SelectCollectAutomaticallyOption.

Install

ThefollowingBusinessContentobjectsarehighlightedinthiscolumnbydefault:

Objectsthatarebeingtransferredforthefirsttime.Thereisnotanactiveversionofthese
objectsinthesystem.
BusinessContentobjectsthathavebeenredeliveredinanewversion.Theseobjectsare
identifiedbytheContenttimestampinthecorrespondingobjecttables.

Checkontheinstallcheckboxesforallthedependants.OrSelectInstallinBackground
optiontoinstallallObjects.
InourcaseweareselectingInstallinBackground.

Inthecontextmenu,thefollowingtwooptionsareavailablefortheinstallation:

InstallallBelow
Theobjectintheselectedhierarchylevelandallobjectsinthelowerlevelsofthehierarchy
areselectedastoinstall.

DoNotInstallAllBelow
TheInstallindicatorsareremovedfortheobjectintheselectedhierarchylevelandall
objectsinthelowerlevelsofthehierarchy.

15|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Match/Copy

IftheSAPdeliveryversionandtheactiveversioncanbematched,acheckboxisdisplayedin
thiscolumn.Withthemostimportantobjecttypes,theactiveversionandtheSAPdelivery
versioncanbematched.

Whenamatchisperformed,particularpropertiesoftheobjectarecomparedintheA
versionandtheDversion.Firstithastobedecidedwhetherthesepropertiescanbe
matchedautomaticallyorwhetherthishastobedonemanually.

Amatchcanbeperformedautomaticallyforpropertiesifyoucanbesurethattheobjectis
tobeusedinthesamewayasbeforeitwastransferredfromBusinessContent.

Whenperformingmatchesmanuallyyouhavetodecidewhetherthecharacteristicsofa
propertyfromtheactiveversionaretoberetained,orwhetherthecharacteristicsaretobe
transferredfromthedeliveryversion.

TheMatchindicatorissetasdefaultinordertopreventthecustomerversionbeing
unintentionallyoverwritten.IftheContentoftheSAPdeliveryversionistobematchedto
theactiveversion,youhavetosettheInstallindicatorseparately.

Theactiveversionisoverwrittenwiththedeliveryversionif
Thematchindicatorisnotset
Theinstallindicatorisset.

ActiveVersionAvailable

Inthiscolumn,thefollowingdisplayoptionsareavailable:

Theobjectisavailableinanactiveversion.Youdecidewhetheryouwanttoretainthis
versionorreinstallthelatestversionoftheobject.

Datesymbol:Theobjectisalreadyavailableinanactiveversion.However,theactiveversion
belongstoanolderContentrelease.SAPrecommendsthatyouinstallthelatestversion.

Graysymbol:Anactivatedversionoftheobjectisavailableinthesystem.However,the
objectstatusisinactive.Ifanobjectversionisactivated,thisindicatesthatallmetadatafor
theobjectcanbecreatedsuccessfully.Theinactiveobjectstatusindicatesthatthe
processedobjectisinconsistentandcannotcurrentlybeusedforprocessingdata.

Noindicator:Theobjectisnotavailableinanactiveversion.

16|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Logistics Extraction

ThisarticlegivesadetailprocedureforafullloadgenericextractionfromSAPtoBIusingaDatabase
View.
ItalsodescribesthecreationofBIobjectslikeInfoObject,DTP,Transformations,Settinguprulesin
transformationandalsoincludesthestepstoinstallObjectsfromBIContent.

TherearebelowstepsperformedwhileworkingwithDataSourcecreationinSAP.
StepsinSAP

Step1:CreatingaView
Step2:CreatingGenericDataSource
Step3:TestingGenericDataSource

StepsinBIside

Step1:SelectingSourceSystem
Step2:ReplicateMetadata
Step3:CreatingInfoPackageanduploadingdatatoPSA
Step4:InstallingInfoObjectfromBIContent
Step5:CreatingInfoArea
Step6:CreatingDSO
Step7:CreatingTransformation
Step8:CreatingDTP(DataTransferProcess)
Step9:ViewcontentsofDSOandmovedatafromNewtoActivetable

17|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

3.1

Data Sources:

BeforeproceedingletshaveashortoverviewaboutDataSources.
ADataSourceisasetoffieldsthatprovidethedataforabusinessunitfordatatransferintoBI.
From a technical viewpoint, the Data Source is a set of logicallyrelated fields that are provided to
transfer data into BI in a flat structure (the extraction structure), or in multiple flat structures (for
hierarchies).
TherearefourtypesofDataSource:
DataSourcefortransactiondata
DataSourceformasterdata
DataSourceforattributes
DataSourcefortexts
DataSourceforhierarchies

3.2

Use of Data Source:

Data Sources supply the metadata description of source data. They are used to extract data from a
source system and to transfer the data to the BI system. They are also used for direct access to the
sourcedatafromtheBIsystem.
SourcesystemcanbeSAPsystem(ECCorNonSAPSystem).
DataSourcescanbecreatedinBISystemalso.
ThedatacanbeloadedintotheBIsystemfromanysourceintheDataSourcestructureusinganInfo
Package.Youdetermine thetargetintowhichdata fromthe DataSource istobeupdatedduringthe
transformation.
Data Sources for transferring data from SAP source systems are defined in the source system; the
relevant information of the Data Sources is copied to the BI system by replication. In this case one
speaksofDataSourcereplicationintheBIsystem.DataSourcesfortransferringdatafromothersources
aredefineddirectly.ReplicationofDataSourceisstandardfunctionalityprovidedbySAP.
WhenyouactivatetheDataSource,thesystemgeneratesaPSAtableintheentrylayerofBI.Youcan
then load data into the PSA. You use an Info Package to specify the selection parameters for loading
dataintothePSA.Inthetransformation,youdeterminehowthefieldsareassignedtotheBIInfoObject
(byusingMappingRule).
DatatransferprocessesfacilitatethefurtherdistributionofdatafromthePSAtoothertargets(Cube
/DSO).

18|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Extraction of Data from SAP to BI (Generic Extractor)


4.1

Steps in SAP

4.1.1 Step 1: Creating a View

TherearethreeoptionstocreategenericDataSource.Theyareasfollows:

View/Table
SAPQuery
FunctionModule

HerewearelookingintocreationofGenericDatasourcesonView/Table.

1.

PleaseenterTCodeSE11andPressEnter.YouwillgetscreenlikebelowandthenEnterView
NameZBI_EKPO

2.

ClickonCreatebutton.ThenameofviewisZBI_EKPO

19|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

3.

EnterShortDescriptionoftableEKPOTableforBIExtractionthenGotoTable/JoinCondition
tabandEntertablenameEKPO.

EKPOisstandardtablefromwhichwewillbeextractingdatainourtableZBI_EKPO

20|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

4.

ClickonViewFldstabandthenclickonTableFieldsButton.

21|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

22|P a g e w w w . s a p f i c o c o n s u l t a n t . c o m

Вам также может понравиться