Quantcast
Channel: SCN : All Content - SAP Business Explorer (SAP BEx)
Viewing all articles
Browse latest Browse all 3763

Calculate a key figure based on number of days in the period entered on selection screen

$
0
0

The requirement is to calculate Spend to Budget % based on the number of days in the fiscal yr period range selected. If the user enters fiscal yr / period - 007/2014 - 009/2014, i need the -

Current day formula variable to be populated with 31+31+23 = 85

Total number of days formula variable to be populated with 31+31+30 = 92

 

The new key figure calculation is (85/92)*budget

 

I tried teh below solution but did not work -

 

I created two formula variables - current day and total days. I wrote code in the formula variables class but that gets called only before the selection screen appears. I was not able to access fiscal yr / period values enetred in selection screen using the formula variable code.

 

Then  i tried creating a customer exit variable on fiscal yr / period and populating the formula variables in the code for the customer exit variable class code i_step - 2. The internal table seemed to be updated but the values did not come through in the report. I think the values of the formula variables got overwritten after i_step 2.

 

Not sure what else to try.


Viewing all articles
Browse latest Browse all 3763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>