cancel
Showing results for 
Search instead for 
Did you mean: 

Identifying Virtual key figure

Former Member
0 Kudos

Hi ,

1) CAn we identify whether a key figure is virtual? If yes how.

2) Virtual key figures are displayed at runtime in report or are they displayed in the cube itself?

3) Issue I am facing:

Key figure in infocube is neither mapped to anything nor any ABAP code is written in the routines but still values are present in the Infocube for that key figure.

I suspect it to be a virtual key figure. But I am not sure how virtual key figure behaves.

Need your help.

Thanks,

Ramesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi.

Virtual KF is regular KF (the cube contains IO physically, but without data).

Such KF has no data in the cube because the values being calculated dirung query execution.

You can't identify in the cube whether KF is virtual or not - you should goto BADI for virtual KF and see is there any code that calculates the result for it.

Regards.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ramesh,

yes virtual key figures are visible in cube also, the only difference is that the Virtual keyfigure is used to derive the value at run time.

Please go through the below link:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e051fda8-71a9-2a10-ac9e-8d17414a...

Tis will give a clear picture of how to implement VKF usin BADI.

Hope it Helps,

Former Member
0 Kudos

Hi Raj,

The link mentioned is helpful. But i need to know how identify it.

Regards,

Ramesh

Former Member
0 Kudos

Ramesh,

The key figure is not populated in the load process ie its value is not stored in the cube. The logic for populating the keyfigures is written in an SAP Exit RSR00002.

Since the values are computed at run time, it affects the query performance if you have too many VKF or too many records in your cube.

To give an example suppose you need an aging report where you want to show how many orders are delayed by 50 days , how many 50 to 70 days and so on based on todays date, So this number needs to change dynamically based on the date the report is run , you could use VKF in this scenario...There might be other ways of doing but just giving an example to explain the concept.

regards,

Raj

Former Member
0 Kudos

Hi Andrey Hi Raj,

Thanks for the information.

I will check and let you know.

But if the KF is virtual then the value of KF should not be displayed in the cube.

Former Member
0 Kudos

Ramesh,

By identifying y mean how to identify it in Cube???

regards,

Raj

Former Member
0 Kudos

Hi Raj,

This is my main issue:

Key figure in infocube is neither mapped to anything nor any ABAP code is written in the routines but still values are present in the Infocube for that key figure.

Regards,

Ramesh

abhishek_rajan3
Contributor
0 Kudos

Hi Ramesh,

Most of your questions have been answered here. I would just like to consolidate on those and try to find a solution for you.

1) You are right, the KF you see in Infoprovider which is unmapped but still has value coming in the report, might be a virtual key figure.

2) Methods to fill VKF can either be written in SAP Exit RSR00002 and now, also using Business ADd-In definition RSR_OLAP_BADI.

3) As I understand, your main intention is to see the logic behind this. First, to verify if your query does use VKF, go to transaction RSRT, give your query name and check the Technical Information button. It shall show you under Olap relevant data if your query has virtual key figures or not.

4) Now, if your query does use VKF, you'll have to check in SAP Exit RSR00002, if there is any code written for your Infoprovider (as VKF logics are based on InfoProvider data). You would also need to check BADI implementations, as the method can also be there. Please check the following article:

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c

You might want to check the Defined Filters for the BADIs existing in your system, to find your InfoProvider.

Please check in both places. Still looking for a standard table with such information.

Hope it helps,

Thanks.

Former Member
0 Kudos

Hi All,

Thanks for all your reply.

The KF was not virtual KF.Instead the KF was updated using field group.

Thanks,

Ramesh

Former Member
0 Kudos

Hi All,

Thanks for all your reply.

The KF was not virtual KF.Instead the KF was updated using field group.

Thanks,

Ramesh