bpc session2

32
SAP Business Planning and Consolidation Administrator Training Session 2 ¤ SAP AG 2007, SAP Business Planning and Consolidation / 2 Agenda - Session 2 Creating Applications and Adding Dimensions Optimization Introduction to BPC Logic Loading and Validating Data

Upload: akulauk

Post on 30-Oct-2014

125 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: BPC Session2

SAP BusinessPlanning andConsolidation

Administrator Training

Session 2

SAP AG 2007, SAP Business Planning and Consolidation / 2

Agenda - Session 2

Creating Applications and Adding DimensionsOptimizationIntroduction to BPC LogicLoading and Validating Data

Page 2: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 3

Develop – Create Applications

Create Dimensions

Create Applications

Create Logic/ Calculations

Load and Validate Data

Develop Reports and Input Schedules

Set up Security

Define Work Status

Develop Business Process Flows

Enable BPC Audit

SAP AG 2007, SAP Business Planning and Consolidation / 4

Creating a New Application

If you select Application on the left, the Action Pane will displayapplication tasks.

Page 3: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 5

Creating a New Application

To create a new application, click Add a new application.

SAP AG 2007, SAP Business Planning and Consolidation / 6

Creating a New Application

You add a new application to an application set by copying thestructure of an existing application.The structure includes an application's dimensions, data, andtemplates.

Page 4: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 7

Application Types

When creating a new application, you must choose an applicationtype, which tells the system which properties to associate with theapplication.An application is either:– Reporting– Non-reporting

SAP AG 2007, SAP Business Planning and Consolidation / 8

Reporting Application Types

Reporting applications are used to:Financial: allows you to perform management consolidationfunctions. Supports data translations from local currencies toone or more reporting currencies, intercompany eliminationcalculations, and other calculations.– Must reference a Rate-type application.

Consolidation: allows you to perform legal consolidationfunctions. Similar to a Financial-type application, but with legalconsolidation rules instead of management consolidation rules.– Must reference an Ownership-type application and a Rate-type

application.

Generic: has no special requirements (other than to include thefour minimally required dimensions).– Has no out-of-the-box business intelligence, so if you want to apply

logic, you must create it using BPC’s script logic.

Page 5: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 9

Non-Reporting Application Types

Non-reporting applications are designed to support reportingapplications or to simply hold data, such as price or rateinformation.

You can report on non-reporting application data, but youcannot view its data in an Insight dashboard, or assign workstatus codes to the data.

SAP AG 2007, SAP Business Planning and Consolidation / 10

Non-Reporting Application Types

Non-Reporting application types:Rate: is a supporting application for one or more Financial reporting-type applications. Used to store exchange rates that support currencyconversion in financial applications.– Must include a Currency-type dimension detailing the exchange rates by

each individual input currency.

Ownership: is a supporting application for a Consolidation reporting-type application. Stores information such as the consolidationmethods, ownership percentages, and group rollup information usedfor legal consolidation.

Generic: has no special requirements (other than to include the fourminimally required dimensions).– Has no out-of-the-box business intelligence, so if you want to apply logic,

you must create it using BPC’s script logic.

Page 6: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 11

Modifying an Application

If you select an application on the left, the Action Pane will displayapplication tasks specific to that application.

SAP AG 2007, SAP Business Planning and Consolidation / 12

Modifying an Application

To modify an application, click Modify application.

Page 7: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 13

Modifying an Application

Use the arrow buttons to add or remove dimensions from theapplication.

SAP AG 2007, SAP Business Planning and Consolidation / 14

Optimization

When new application sets and applications are created, it is abest practice to run a Full Optimization.

In addition, you should optimize your applications periodicallyto enhance system performance.

Optimization cleans up data storage which improves theresponsiveness of the system.

There is no rule of thumb for how often to run optimizations.The need can vary depending on the characteristics of yourhardware environment and your application.

Page 8: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 15

Data Storage Types

Optimization options center around three different types of SAPBusiness Planning and Consolidation data storage:

Real Term: This is data that is the most current data sent to thesystem. Data sent by BPC for Excel data sends and Live Reportingdata sends is placed in real term storage. Periodically clearing realterm data greatly optimizes the performance of the system.Short Term: This is data that is not real term data, but is also not inlong term storage yet. When you load data via Data Manager, it loadsthe data to short term storage so that the loaded data does not affectsystem performance.Long Term: This is your main data storage. All data eventuallyresides in long term storage. Data that is not accessed very oftenremains in long term storage so that the system maintainsperformance.

SAP AG 2007, SAP Business Planning and Consolidation / 16

Optimization Options

The optimization options interact with the three types of datastorage in different ways:

Lite Optimization: Clears real term data storage and moves it toshort term data storage. This option does not take the systemoffline.Incremental Optimization: Clears both real term and short term datastorage and moves both to long term data storage. This optiontakes the system offline, so it is best run at off peak periods ofactivity.Full Optimization: Clears both real term and short term data storageand processes the dimensions. This option takes the system offlineand takes longer to run than the Increment Optimization. It is bestrun at down time periods.

Page 9: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 17

Optimization Applications

The Compress Database option sumsmultiple entries for the same Current Viewinto one entry so that data storage space isminimized.

SAP AG 2007, SAP Business Planning and Consolidation / 18

DEMONSTRATION

Lab 9Creating a New Application

Lab 10Grant Access to the Sales Application

Page 10: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 19

APPSHARE PLACEHOLDER

SAP AG 2007, SAP Business Planning and Consolidation / 20

Develop – Create Logic / Calculations

Create Dimensions

Create Applications

Create Logic/ Calculations

Load and Validate Data

Develop Reports and Input Schedules

Set up Security

Define Work Status

Develop Business Process Flows

Enable BPC Audit

Page 11: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 21

Logic

Logic allows you to define formulas that perform calculations on BPCmembers and data.You can create three different types of logic:– Worksheet logic– Dimension logic– Advanced (Script) logic

Each type has advantages and disadvantages.You typically use some combination of all three types to achieve thedesired results.

SAP AG 2007, SAP Business Planning and Consolidation / 22

Worksheet Logic

Uses BPC and standard Excel mathematical operators and functionsto produce results.Is typically used for simple calculations and events, such as dataretrievals (EvGTS), sends (EvSND), and variance calculations (EvBET).Produces calculated values that do not need to be stored in thedatabase.

Page 12: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 23

Worksheet Logic: Pros and Cons

ProsSpeed - the formulas reside in the worksheet, so calculations are fastand have minimal impact on performance.Flexibility - you can define many formulas in the worksheet.No server load – worksheet logic uses the client machine to performcalculations, so it allows the server to run more efficiently.

ConsStatic - the formulas are only available in the worksheet in which theyare written, and need to be rewritten for each worksheet.Cannot be applied as a process - worksheet formulas cannot beexecuted via the Data Manager (i.e. the calculations are not performeduntil the sheet is opened and the data refreshed).Not stored - results are not stored in the database.

SAP AG 2007, SAP Business Planning and Consolidation / 24

Dimension Logic

Is based on MDX syntax, and is assigned directly to a member.– MDX stands for Multi-Dimensional Expression, and is a language used by

MS Analysis Services.– SAP Business Planning and Consolidation is shipped with many useful MDX

functions that help standardize your calculated members, but you can useany Microsoft MDX functions to create dimension logic.

Utilizes the Formula property.

Page 13: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 25

Dimension Logic

Dimension formulas calculate on the fly at retrieval time. Theseformulas can affect retrieval performance if not used properly.

Dimension formulas should only be used for formulas that need to becalculated after aggregations (e.g. ratios).Dimension formulas should not be used on members that need toaggregate.Use a “SOLVEORDER” command when dimension formulas are usedon more than one dimension.

SAP AG 2007, SAP Business Planning and Consolidation / 26

Solveorder Example

You have the following members in the Account Dimension:Account1Account2Account3 (Formula is Account1/Account2)

You have the following members in the Product Dimension:Product1Product2Product3 (Formula is Product1+Product2)

Page 14: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 27

Solveorder Example Results

When Solveorder is not used:

When Solveorder is used

Incorrect resultbecause ratio iscalculated priorto the addition.

Correct resultbecause ratio iscalculated afterthe addition.

SAP AG 2007, SAP Business Planning and Consolidation / 28

The Formula Property

Must be added using “Maintain dimension property” in order touse dimension logic.

Must have a field size equal to at least the length of your longestformula.

Will appear as a column in the dimension member sheet.

Page 15: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 29

Dimension Logic

Is defined in the Formula column of the dimension member sheet.– You can also reference MDX functions from a library file, which is used to

store multiple formulas that are referenced by dimension logic.

Is typically used in the Account dimension, but can be used in anydimension.

SAP AG 2007, SAP Business Planning and Consolidation / 30

Dimension Logic Examples

Adding two accounts– Syntax: account1+account2

- OpInc+OtherExp

Multiplying by a factor– Syntax: account1*factor

- PretaxInc*-.35

Dividing one account by another– Syntax: account1/account2

- GrossMargin/TotRev

Page 16: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 31

Dimension Logic: Pro and Cons

ProConsistency - the same logic is applied to all members in allapplications that use the dimension.

ConsLack of flexibility - dimension logic applies to all levels in thedimension and in all applications using the dimension.If you want to apply a formula only to base level members or want aformula to be used in only one application you should use advancedlogic.Can create a load on the server.

SAP AG 2007, SAP Business Planning and Consolidation / 32

Advanced (Script) Logic

Is accessed from the Script Logic subdirectory in the hierarchy ofa particular application.

Page 17: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 33

Advanced (Script) Logic

Is used for calculations with special requirements.– For example: a “Units x Price” calculation.– Such calculations must only be performed on base level members.

Uses MDX and/or SQL syntax.– SAP Business Planning and Consolidation provides a library of MDX and

SQL formulas.– The ApShell application set is pre-configured with many logic functions.

Is application specific.

SAP AG 2007, SAP Business Planning and Consolidation / 34

How Advanced Logic works

The Logic module:– Reads a specific data selection from the application.– Applies to it a set of user-defined formulas (stored in a logic file).– Derives the values.– Writes those values back to the application.

Results are written directly to the application as base data, and areaggregated up the dimensional hierarchy as they are, without beingrecalculated at upper levels.– All dimension logic formulas are applied to these results.– This process allows you to perform such calculations as units times price

because the formulas are applied only to those members specified in thelogic file.

Page 18: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 35

Advanced Logic Files

You will have two files for each advanced (script) logic you create..LGF - an ASCII file that you use to create/edit your logic calculationsand is accessed through the Script Logic editor in the Admin Console..LGX - the compiled logic file. Created by the system when youvalidate and save your logic. This is an executable version of the .LGFfile.

There are two types of advanced logic.DefaultOther

SAP AG 2007, SAP Business Planning and Consolidation / 36

Default Advanced Logic

Is maintained in the Default.LGF file.All logic in Default.LGF is run after data sends.The INCLUDE statement shown below enables currency translation tohappen in real time, rather than as a batch process.

Page 19: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 37

Other Advanced Logic

It can be cumbersome to manage all your logic in the Default.LGFlogic file, therefore you can create Other logic files, such as:

FXTrans.LGF – contains the logic needed to do foreign currencytranslation.ICElim.LGF – contains the logic needed to do inter-companyeliminations.

SAP AG 2007, SAP Business Planning and Consolidation / 38

The Library File

Stores a library of standard functions.Has the extension .LGL.Can be called at validation by using the INCLUDE function in yourlogic file.– The Logic module scans the library file for the appropriate formulas to use

based on the information in the LGF file.

Page 20: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 39

The System Constants File

Is the logic file that maps your dimension names for the application tothe standard BPC dynamic logic.By updating the dimension constants file with your dimensions, youavoid having to change or rewrite any of the standard functions thatare included with SAP Business Planning and Consolidation .

SAP AG 2007, SAP Business Planning and Consolidation / 40

The System Constants File

Is located in the following folder:<BPC>\Data\Webfolders\<AppSet>\AdminApp\<App>

Page 21: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 41

Running Advanced Logic

Advanced logic can be automatically invoked each time data is sent tothe database.– Logic contained in the Default logic file is executed immediately after data is

sent and the results can be seen in SAP Business Planning andConsolidation right away.

Advanced logic can be run from Data Manager for batch processing offormulas.– Using Data Manager to execute Logic module formulas is useful for

calculations that do not need to be executed immediately.– For example, an administrator may decide to wait until all the data has been

entered in the local currency before generating the translated amounts inthe reporting currencies.

SAP AG 2007, SAP Business Planning and Consolidation / 42

Advanced Logic: Pros

ProsReal-time - allows for real-time calculations.Flexible - enables you to apply different formulas to differentapplications within an application set (dimension logic is applied to allapplications using the dimension).Syntax options - you can use SQL or MDX syntax.

Page 22: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 43

DEMONSTRATION

Lab 11BPC Logic

SAP AG 2007, SAP Business Planning and Consolidation / 44

APPSHARE PLACEHOLDER

Page 23: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 45

QUIZ PLACEHOLDER

SAP AG 2007, SAP Business Planning and Consolidation / 46

Develop – Load and Validate Data

Create Dimensions

Create Applications

Create Logic/ Calculations

Load and Validate Data

Develop Reports and Input Schedules

Set up Security

Define Work Status

Develop Business Process Flows

Enable BPC Audit

Page 24: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 47

Data Manager

Is an SAP Business Planning and Consolidation module that helps youmanage the data moving into and out of applications, as well as tocopy or move data within and across applications.Supports mapping and complex transformations of data.Is based on SQL Server Integration Services (SSIS).– SSIS is made up of packages, and each package performs a set of specific

tasks.

BPC is delivered with a set of packages to meet your many datamanagement needs.

SAP AG 2007, SAP Business Planning and Consolidation / 48

Accessing the Data Manager

From the Launch Page, click BPC for Excel.From the Action Pane, click Manage Data.

Page 25: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 49

Data Manager Packages

Allow you to move data into, out of, and between your BPC databases.There are two broad types of packages you can use to move datadepending on your needs:– Standard Packages– Administrative Packages

SAP AG 2007, SAP Business Planning and Consolidation / 50

Standard Data Manager Packages

Perform their function while the system is live (i.e. users can beonline).– For example, you can use a standard package to load monthly data.

Can be run by administrators with the appropriate task security.We recommend that you use standard packages whenever possible,because they work within the BPC user ID security framework andthere is little risk of data integrity issues.

Page 26: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 51

Standard Data Management Packages

Import: imports one or more ASCII files into the current application.– You are prompted for one or more import file and associated conversion

files.– The signs of the amounts are reversed based on the Account type.

Export: exports data values from the BPC cube (including calculatedvalues) into an ASCII file.– You are prompted to enter a name for the export file and for a data selection

to export.

Clear: clears the data in the Fact and FAC2 table by importing zerovalues.– The optimize process removes the zero values, which clears all values from

the table.– Running this package also clears comments from the comments table.

SAP AG 2007, SAP Business Planning and Consolidation / 52

Standard Data Management Packages

Copy: copies data between dimensions within an BPC application.Move: lets you move any selection of data within an application.– You are prompted for source and destination data selections for all

dimensions.– The destination selection's fact table records are cleared before the source's

records are moved.– The source's fact table records are cleared after they are moved to the

destination.

Page 27: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 53

Standard Financial Processes Packages

FX Restatement: is used for currency translation. The package runsthe FXTrans logic.IC Eliminations: used to perform Inter-Company eliminations. ThePackage runs the ICElim logic.

SAP AG 2007, SAP Business Planning and Consolidation / 54

Administrative Data Manager Packages

Are designed to perform operational tasks on the database.– For example, you can use an administrative package to include back-end

data manipulation where you are loading bulk data for the first time,exporting an entire database, and running default logic formulas on yourdata.

Take the system offline.Can only be run by administrators with the appropriate task security.

Page 28: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 55

Administrative Data Manager Packages

Append into Fact Table: imports data into the database by appendingthe data to the fact table, processes the data into the BPC cube, andthen runs default logic against the imported data set.Import into Fact Table with Clear: clears the fact table for allEntity/Category/Time member combinations found in the data sourcefile and imports the data into the database.Export from Fact Table: exports input-level data (but includestranslated currency values) from the application fact table into anASCII file.Default Formulas: executes default formulas stored in your Defaultlogic file.

SAP AG 2007, SAP Business Planning and Consolidation / 56

Data Transformations

Allow you to map external data to internal SAP Business Planning andConsolidation data structures.Are performed by setting up at least two Excel files:– Transformation file– Conversion file

After you set up your transformation and conversion files, you specifywhich package to run, and which transformation and conversion filesdefine your data transformations.

Page 29: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 57

Transformation files

Allow application administrators to set up the rules for reading datafrom an external source and putting it in the proper form for a BPCdatabase.Are Excel files that contain one worksheet named Instructions.

SAP AG 2007, SAP Business Planning and Consolidation / 58

Conversion files

Define the mapping from external to internal member names.Provide the ability to perform arithmetic and rounding on data.Can contain one or more worksheets for different types of datatransformations.

Page 30: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 59

Data Preview

Is accessed by clicking Preview data file from the Action Pane.Allows you to preview the first 200 lines of a data file.

SAP AG 2007, SAP Business Planning and Consolidation / 60

ASCII Import File Formats

The source file for a data import must be a text file containingdelimited strings.– Each field represents the name of a dimension member.

The source file can be in either of two formats:– Fixed - requires a first row defining the name and position of all dimensions.

– Variable - allows the user to define the name and position of the dimensionsusing multiple lines beginning with an asterisk (*).

Fixed

Variable

Page 31: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 61

DEMONSTRATION

Lab 12Loading Currency Exchange Rates into the Rate Application

Lab 13Loading Actual & Budget Data into the Finance Application

Lab 14Creating Forecast Data for the Finance Application

Lab 15Loading Data into the Sales Application

SAP AG 2007, SAP Business Planning and Consolidation / 62

APPSHARE PLACEHOLDER

Page 32: BPC Session2

SAP AG 2007, SAP Business Planning and Consolidation / 63

QUIZ PLACEHOLDER

SAP AG 2007, SAP Business Planning and Consolidation / 64

End of Session 2

Thank You!

Have a nice day…