Sei sulla pagina 1di 4

Developing Business Logic in SAP BPC

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.

Planning and Consolidation provides a library of MDX formulas, and the


EnvironmentShell sample environment contains a number of logic functions.

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.

Default logic is a special logic statement that is executed on every writeback to a


model. All logic in Default.LGF is run after data sends. Data is first committed to
the model and then, Default.LGF is run on model data. Having all of your logic in
the Default.LGF logic file might become unmanageable. Therefore you can create
other logic files, such as FXTrans.LGF for foreign currency translation and
ICElim.LGF for intercompany eliminations. Your default logic can contain an INCLUDE
statement to execute specific logic in real-time, such as currency translation if
desired, rather than having to run a separate batch process.

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:

Allocation.lgf: runs an allocation

Calcaccount.lgf: used to prepare Cash Flow; runs an Account Calculation business


rule

Consolidation.lgf: used to run a Legal Consolidation business rule


Copy_Opening.lgf: used to run a Balance Carry Forward business rule

FX_Trans.lgf: used to run currency conversion

ICBooking.lgf: used for running Intercompany reconciliation and difference posting

ICData.lgf: used to run Intercompany reconciliation

ICElim.lgf: used to run Intercompany reconciliation

MDXlib.lgf: library of MDX financial functions

System_Constants.lgf: stores constant values for use within script logic. See the
System constants file section that follows for more information.

System_Library.lgf: includes basic examples of a set of keywords

Validation.lgf: used for running a Validation rule

System Constants File

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.

The system constants file is located in the \\root\Webfolders\


<Environment>\systemlibrary\logiclibrary folder. You can edit this file using
download and upload functions from transaction UJFS in the ABAP interface.

Running Script Logic

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:

Keywords display in blue

Constant values display in green

Comments display in grey

Incorrect syntax, such as parenthesis errors, misspelled keywords and dimension


names, and unrecognized words, displays in red

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.

Demonstrable experience in SAP Analytics in a client facing environment

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

Client facing skills: ability to build trusted relationships with client


stakeholders and act as a trusted adviser and ability to work on both Agile and
Waterfall project management methodology
Solid client facing and consulting experience and experience handling multiple
stakeholders
Demonstrable ability to apply analytical and creative thought
Demonstrable ability to deliver high profile activities to tight timescales
Shown success in contributing to a team-oriented environment
Experience delivering projects within an agile environment, excellent leadership,
communication (written and oral) and interpersonal skills
Ideally, you�ll also have;
Solid client facing and consulting experience
Experience managing multiple stakeholders
Proven ability to apply analytical and creative thought
Proven ability to deliver high profile activities to tight timescales
Proven success in contributing to a team-oriented environment
Experience delivering projects within an agile environment
Excellent leadership, communication (written and oral) and interpersonal skills
Keenness to learn and try new things
Willingness to travel
What academic qualifications do you need?
Ideally, educated to degree level
What�s in it for you?

All of our Digital professionals receive comprehensive training covering business


acumen, technical and professional skills development. You'll also have
opportunities to hone your functional skills and expertise in an area of
specialisation. We offer a variety of formal and informal training programs at
every level to help you acquire and build specialised skills faster. Learning takes
place both on the job and through formal training conducted online, in the
classroom, or in collaboration with others. The sheer variety of work we do, and
the experience it offers, provide an unbeatable platform from which to build a
career.

On top of this, we have an extensive benefits package which includes 30 days�


vacation per year, gym subsidies, private medical insurance and 3 extra days leave
per year for charitable work of your choice!

What are the next steps?

If this sounds like the ideal role, career and company for you, click below to
apply.

Potrebbero piacerti anche