BPC Script Logic
BPC Script Logic
Every organization has rules and policies that guide its business logic and must be
incorporated into IT applications;
SAP Business Planning and Consolidation (SAP BPC) for de?ning logic and automating
the process of deriving data and applying business rules.
Script Logic,Use:Script logic is a feature that allows you to create files called
logic scripts containing instructions for performing calculations on Planning and
Consolidation data.
Features
You can perform logic calculations on base level members only. In addition, logic
is specific to each model.
Note
Logic keywords are case-insensitive. However, all environment, model, dimension,
and member names in K2 are case-sensitive.
You have the following two files for each piece of script logic you create:
An .LGF file, which is an ASCII file you create and edit when setting up logic
calculations. You access the .LGF file through the logic editor.
An .LGX file, which is the compiled logic file created by the system when you
validate and save your logic. This is an executable version of the .LGF file that
is not stored in Planning and Consolidation.
You access logic files from the Script Logic subdirectory within the hierarchy of a
model.
Logic Library
Planning and Consolidation has a library of standard logic functions available for
your use. The file has the extension .LGF, which can be called at validation by
using the INCLUDE function in your logic file. The logic module scans the library
file for the appropriate formulas to use based on the information in the .LGF file.
The following are examples of logic delivered with Planning and Consolidation:
System_Constants.lgf: stores constant values for use within script logic. See the
System constants file section that follows for more information.
The system constants file is the logic file that maps your dimension names for a
model to the standard Planning and Consolidation logic. By updating the dimension
constants file with your dimensions, you avoid having to change or rewrite any of
the standard functions that are included with Planning and Consolidation.
Script logic can be automatically invoked each time the system sends data to the
database. Instructions in the default logic file are executed immediately after
data is sent and you can see the results immediately. Script logic can be run from
Data Manager for batch processing of formulas. Using Data Manager to execute Logic
module formulas is useful for calculations that do not need to be executed
immediately. For example, you may decide to wait until all data has been entered in
the local currency before generating the translated amounts in reporting
currencies.
Activities
From the Planning and Consolidation Administration screen, you can view all logic
scripts for a model by choosing Start of the navigation path Rules Next navigation
step Logic Scripts End of the navigation path, selecting a model, then choosing
Open. All logic scripts that have been set up for that model display.
You can create a new logic script for the selected model by choosing New, then
assigning a name to the logic script. You can type directly into the logic editor.
You can also insert Planning and Consolidation keywords, MDX keywords, dimension
names, and member names from the dropdown lists, replacing variables in the
keywords as appropriate. To add a keyword from the dropdown lists to a line in a
script, you can double-click on a keyword, you can select a keyword and then select
Insert Keyword, and you can drag and drop a keyword from the dropdown list into a
line in the logic editor.
You can comment out and uncomment blocks of script logic, as well as individual
lines, in the logic editor.
When you create new logic script and edit an existing script, you can validate its
syntax. Any problems with the logic display in the lower portion of the logic
editor with line numbers to make locating and resolving the problems easier.
You can copy an existing logic script by selecting a file, then providing a name
for the new script, and modifying it as you need.
You can use the following color coding in the logic editor to assist in writing and
troubleshooting logic scripts:
You can easily resolve errors in script logic using the error lines in the lower
portion of the logic editor window. Errors in a script appear by line number.
More Information
For more detailed documentation of script logic and examples, see the section
Planning and Consolidation, version for the SAP NetWeaver Platform in the
Enterprise Performance Management (EPM) How-to Guides section of the SAP SDN at:
http://wiki.sdn.sap.com/wiki/display/BPX/Enterprise+Performance+Management+%28EPM
%29+How-to+Guides.
Strong hands-on experience on SAP BW 7.3 and above including BW on HANA as well as
migration to BW on HANA platform
Strong hands-on experience in SAP BOBJ 4.0 and above; including Webi, Analysis for
Office and complex dashboards using Lumira as well as Design Studio, excellent
hands-on understanding of SAP HANA, SQL scripts as well as complex data modelling
using the native HANA capability.
Knowledge of SAP Analytics Cloud platform, HANA Enterprise Cloud, good
understanding of SAP�s new analytics products like BW4 HANA and Leonardo
components, knowledge of data extraction, harmonisation from both SAP and non-SAP
systems
If this sounds like the ideal role, career and company for you, click below to
apply.