Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9169

Percentage Share with and without ABS values in BEX

$
0
0

Introduction:

 

Generally in the business world of SAP BW, we come across with the different types of formulas to represent the Percentage share and I'm here explaining the new feature which was delivered by SAP in order to use it in the Formulas in Business Explorer.

 

From the SAP Terms:

 

Percentage Share (%A)

 

●      <Operand1> %A <Operand2>

This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / abs(<Operand2>)

 

Percentage share with Signed base value (%_A)

 

●      <Operand1> %_A <Operand2>

This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / <Operand2>

 

This is available under Percentage Functions in Query Designer:

Percentage.jpg

 

How to Apply:

 

Formula with %A:

 

Definition1.JPG

 

This is percentage share between JAN Budget data to Actual data.

 

Formula with %_A:

Definition2.JPG

 

Output from the BEX with %A and %_A:

 

Output.JPG

 

Where ever the actual amount is negative, %A is giving the data in Positive due to the ABS function usage where as %_A is giving the result without ABS. Developer has to choose depending on the requirement from the Customer. Few customers are interested to use the %A to show the result in Positive always when the denominator is in Negative.

 

BW Version:

 

This feature is Release independent and can be called in any of the release. And this is available by default from BW 7.X SP15 version and in the older version the same need to be maintained in the table RSZOPRATOR.

 

RSZOPRATOR.JPG

 

 

However, as of Support Package 15, a new %_A operator with the definition a %_A b := 100 * a / b is implemented.

 

How to Activate %_A:

 

To activate this operator, call transaction SE16, select the %_A operator in the RSZOPRATOR table, go to 'Table entry' -> 'Create with template' and replace the X with an A in the (Object Version)field.

 

As a result, the new %_A operator also appears in the front end and is available for formula definitions.

 

If you cannot find the entry with key OPERATOR = %_A OBJVERS = X, you can also use the entry OPERATOR = %A OBJVERS = A as a template. You should then also define a text for %_A in the RSZOPRATXT table.

 

How to Deactivate %A: (Optional)

 

You can deactivate the %A operator in the same way if you copy OBJVERS to X in the corresponding RSZOPRATOR entry and delete the entry with OBJVERS = 'A'. However, you should first replace %A with %_A in all queries (RSZCALC).

 

You refer to the Note: 652854 - For more information.


Viewing all articles
Browse latest Browse all 9169

Trending Articles