Anda di halaman 1dari 11

How to Maintain Measure

Dimension for Business Planning


and Consolidation

Applies to:
SAP Business Planning and Consolidation 7.0 for NW Platform
For more information, visit the Enterprise Performance Management homepage

Summary
In SAP BPC, all the dimensions are maintained in the Dimension Library in BPC Administration. However,
there is one dimension, which is not maintained there. It is maintained in a table, instead. This dimension can
be viewed in BPC Office Components (BPC for Excel, Word, Power Point) and BPC for Web.
There are few instances, wherein, the dimension measure doesn’t populate properly for the newly created
application sets and the applications. Hence, it becomes necessary to be able to maintain these entries
manually.

Author: Nilanjan Chatterjee


Company: Satyam Computer Services Limited
Created on: 28 April 2009

Author Bio
Nilanjan Chatterjee is an Associate Consultant with Satyam computer Services Limited. Nilanjan has almost
2 years of experience on Business Process and Simulation (BPS) and Business Planning and Consolidation
(BPC).

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 1
How to Maintain Measure Dimension for Business Planning and Consolidation

Table of Contents
Maintenance of Measure Dimension .................................................................................................................. 3 
System Design .................................................................................................................................................... 3 
UJA_API_DATA_CHECKER – Function Module ........................................................................................... 4 
UJA_FORMULA_APP - Table ........................................................................................................................ 5 
Disclaimer and Liability Notice .......................................................................................................................... 11 

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 2
How to Maintain Measure Dimension for Business Planning and Consolidation

Maintenance of Measure Dimension


In SAP BPC, all the dimensions are maintained in the Dimension Library in BPC Administration. However,
there is one dimension, which is not maintained there. It is maintained in one table instead. This dimension
can be viewed in BPC Office Components (BPC for Excel, Word, Power Point) and BPC for Web.
There are few instances, wherein, the dimension measure doesn’t populate properly for the newly created
application sets and the applications. Hence, it becomes necessary to be able to maintain these entries
manually.

System Design
The Measure Dimensions are maintained in a table “UJA_FORMULA_APP”.
To view this table, execute the following steps:
1. Login to SAP GUI for BPC NW

2. Go to T-Code SE11

3. Enter the Database Table name as “UJA_FORMULA_APP” and click on Display.

4. The structure of the table is as follows

5. View the contents of the table.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 3
How to Maintain Measure Dimension for Business Planning and Consolidation

The content of the table looks something like below:

Generally, the entries for the Measure Dimension already exist for all the Applications under all the
Application Sets. However, there are few instances, wherein, these entries are not maintained automatically.
In this circumstance, we need to maintain these entries manually.
There are 2 easy steps to be followed for doing the same.
• Executing the Function Module “UJA_API_DATA_CHECKER”
• Maintaining the table “UJA_FORMULA_APP”

UJA_API_DATA_CHECKER – Function Module


Go to T-Code SE37 to execute the above – mentioned Function Module. It asks for the following inputs:

It is sufficient to enter value only for “I_APPSET_ID”, which means the name of the Application Set.
After entering the value of the Application Set, click on the “Execute” button. It displays the result in a table,
which has a field called “MESSAGE”. This field displays all the inconsistencies pertaining to the particular
Application Set.
An example of this is below.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 4
How to Maintain Measure Dimension for Business Planning and Consolidation

The entries suggest that the table “UJA_FORMULA_APP” doesn’t have any entry for the particular
Application Set and the Application RATE for the Measures PERIODIC, QTD, and YTD.
This message suggests that these entries need to be maintained in the specified table.

UJA_FORMULA_APP - Table
The structure of this table is as follows:

For maintaining the missing values of the Measure dimension, view the contents of the table and then, click
on the “Create” button.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 5
How to Maintain Measure Dimension for Business Planning and Consolidation

Clicking on the “Create” button displays the following screen

The entries need to be maintained for each of the Applications under each Application Set.

Let’s consider a scenario, wherein, there is an Application Set “POC” and this Application Set contains an
Application “Planning”.
Taking the above scenario as reference, we need to maintain 6 entries in the table keeping the Application
as “Planning” and the Application Set as “POC”. The field “FORMULA TYPE” remains “FIN” for all the 6
entries in the table.
The 6 entries are as follows:
1. Entry for Formula Name PERIODIC and Storage Type PER

FIELD NAME VALUE

APPSET ID POC

APPLICATION ID Planning

FORMULA NAME PERIODIC

STORAGE TYPE PER

FORMULA TYPE FIN


MEMBER [MEASURES].[PERIODIC] AS
'IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE"
)="INC",-
[MEASURES].[/CPMB/SDATA],IIF([%P_ACCT%].CURRENTMEMBER.PRO
PERTIES("2/CPMB/ACCTYPE")="EXP",[MEASURES].[/CPMB/SDATA],IIF([
%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="A
FORMULA STAT ST",([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),IIF([%P_ACCT%].CURRENTME
MBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ", -
([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),-
[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
SOLVE ORDER 3

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 6
How to Maintain Measure Dimension for Business Planning and Consolidation

2. Entry for Formula Name PERIODIC and Storage Type YTD

FIELD NAME VALUE

APPSET ID POC

APPLICATION ID Planning

FORMULA NAME PERIODIC

STORAGE TYPE YTD

FORMULA TYPE FIN


MEMBER [MEASURES].[YTD] AS
'IIF(([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE
")="INC" OR
[%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="
LEQ"),-([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),
([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])))'
SOLVE_ORDER=3##MEMBER [MEASURES].[PERIODIC] AS
'IIF(([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE
FORMULA STAT ")="INC" OR
[%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="
EXP") AND NOT
([%TIME%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="TOT
AL" OR
[%TIME%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="Q1"
OR
[%TIME%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="JAN"
), [MEASURES].[YTD]-([MEASURES].[YTD],[%TIME%].LAG(1)),
[MEASURES].[YTD])' SOLVE_ORDER=3
SOLVE ORDER 3

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 7
How to Maintain Measure Dimension for Business Planning and Consolidation

3. Entry for Formula Name QTD and Storage Type PER

FIELD NAME VALUE

APPSET ID POC

APPLICATION ID Planning

FORMULA NAME QTD

STORAGE TYPE PER

FORMULA TYPE FIN


MEMBER [MEASURES].[QTD] AS
'IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE"
)="INC",SUM(PERIODSTODATE([%TIME%].[LEVEL01],
[%TIME%].CURRENTMEMBER),-
[MEASURES].[/CPMB/SDATA]),IIF([%P_ACCT%].CURRENTMEMBER.PR
OPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME
%].[LEVEL01],
FORMULA STAT [%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%P_A
CCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([
MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),IIF([%P_ACCT%].CURRENTME
MBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",-
([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),-
[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
SOLVE ORDER 3

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 8
How to Maintain Measure Dimension for Business Planning and Consolidation

4. Entry for Formula Name QTD and Storage Type YTD

FIELD NAME VALUE

APPSET ID POC

APPLICATION ID Planning

FORMULA NAME QTD

STORAGE TYPE YTD

FORMULA TYPE FIN


MEMBER [MEASURES].[YTD] AS
'IIF(([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE
")="INC" OR
[%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="
LEQ"),-([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),
([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])))'
SOLVE_ORDER=3##MEMBER [MEASURES].[PERIODIC] AS
'IIF(([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE
")="INC" OR
[%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="
EXP") AND NOT
FORMULA STAT ([%TIME%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="TOT
AL" OR
[%TIME%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="Q1"
OR
[%TIME%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="JAN"
), [MEASURES].[YTD]-([MEASURES].[YTD],[%TIME%].LAG(1)),
[MEASURES].[YTD])' SOLVE_ORDER=3## MEMBER [MEASURES].[QTD]
AS
'IIF(([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE
")="INC" OR
[%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="
EXP"),IIF([%TIME%].CURRENTMEMBER.PROPERTIES("2/CPMB/TILEVE
L")="QUARTER",[MEASURES].[PERIODIC],IIF([%TIME%].CURRENTMEM
BER.PROPERTIE
SOLVE ORDER 3

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 9
How to Maintain Measure Dimension for Business Planning and Consolidation

5. Entry for Formula Name YTD and Storage Type PER

FIELD NAME VALUE

APPSET ID POC

APPLICATION ID Planning

FORMULA NAME YTD

STORAGE TYPE PER

FORMULA TYPE FIN


MEMBER [MEASURES].[YTD] AS
'IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE"
)="INC",SUM(PERIODSTODATE([%TIME%].[LEVEL00],
[%TIME%].CURRENTMEMBER),-
[MEASURES].[/CPMB/SDATA]),IIF([%P_ACCT%].CURRENTMEMBER.PR
OPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME
%].[LEVEL00],
FORMULA STAT [%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%P_A
CCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([
MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),IIF([%P_ACCT%].CURRENTME
MBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",-
([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),-
[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
SOLVE ORDER 3

6. Entry for Formula Name YTD and Storage Type YTD

FIELD NAME VALUE

APPSET ID POC

APPLICATION ID Planning

FORMULA NAME YTD

STORAGE TYPE YTD

FORMULA TYPE FIN


MEMBER [MEASURES].[YTD] AS
'IIF(([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE
")="INC" OR
[%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="
FORMULA STAT LEQ"),-([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])),
([MEASURES].[/CPMB/SDATA],
CLOSINGPERIOD([%TIME%].[LEVEL02])))' SOLVE_ORDER=3
SOLVE ORDER 3

Once the above entries are maintained, the Measure Dimension will be displayed properly.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 10
How to Maintain Measure Dimension for Business Planning and Consolidation

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 11

Anda mungkin juga menyukai