on 02-07-2007 6:52 AM
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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.