cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Keyfigure is not executing

Former Member
0 Kudos

Hi Guys,

I have one issue in Virtual Key Figure.

My Scenario is to assign value 1 to keyfigure in cube's all records.

Cube name : X_UBR_JV2

Key Figure Name : X_JV_CNT (Data Type : Dec)

Query Name : X_UBR_JV2_Q001_VKF

Query is having only one Characteristic (X_REP_TY) and one Key Figure (X_JV_CNT).

-


<u><b>Routine Details :</b></u>

Project Name : ZBIW1

RSR00002 Details: EXIT_SAPMRSRU_001

<u>zxrsrtop :</u>

DATA: g_pos_X_UBR_JV2_X_JV_CNT TYPE i.

<u>ZXRSRZZZ :</u>

FORM user_X_UBR_JV2 USING i_s_rkb1d TYPE rsr_s_rkb1d

CHANGING c_s_data TYPE any.

FIELD-SYMBOLS <l_X_JV_CNT>.

ASSIGN COMPONENT g_pos_X_UBR_JV2_X_JV_CNT

OF STRUCTURE c_s_data TO <l_X_JV_CNT>.

<l_X_JV_CNT> = 1.

ENDFORM. "user X_UBR_JV2

<u>ZXRSRU02 :</u>

data: l_s_chanm type rrke_s_chanm.

CASE i_s_rkb1d-infocube.

WHEN 'X_UBR_JV2'.

CASE i_s_rkb1d-compid.

WHEN 'X_UBR_JV2_Q001_VKF'.

APPEND 'X_JV_CNT' TO e_t_kyfnm.

ENDCASE.

ENDCASE.

-


After activating the complete project, When i am executing the query, this User Exit is not executing. My output of the keyfigure is 0 (as it is default).

I believe that i explained the scenario clearly. Anything i missed here? Can anybody help me out ?

<b>In this project, RSR00001 BW: Enhancements for global variables in reporting is working fine .</b>

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

Still I am not getting the solution to executing the Virtual Key Figure. I think the technical information of the Query (Virtual Characteristic/Key Figure - Yes/No) has to change automatically YES when we are compiling our code in CMOD. I have compiled the declaration code as well as routine code also properly. But still i am not getting the option YES in technical information. Anybody having suggesion on this?

Regards,

Vivek.V

Former Member
0 Kudos

Dear Vivek ,

Do you really need a VKF for this requirement of having a value 1 to one particular key figure , u can achieve this in the Query designer itself ...but anyways put a break point and debug the code from RSRT , to understand where it is missing..

Thanks,

Krish

Former Member
0 Kudos

Hi A.H.P,

Thanks for your valueble info.

In the technical information, Virtual Char./Key Figures is showing <b>No</b>. How to change this technical setting ?

Can you please guide me?

Regards,

Vivek.V

edwin_harpino
Active Contributor
0 Kudos

hi Vivek,

try to check with RSRT, put in your query technical name,

and click 'technical information', check info on 'virtual char/keyfigures', it should have 'Y' and a list of virtual char/kf.

also check 'execute+debug', mark checkbox 'display sql', after that check the sql statement if your virtual kf is in select statement.

try in RSRT menu 'environment'->delete old abaps and generate report/query again. and CMOD deactivate the project and activate again.

hope this helps.