cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Key Figures- RSRT says Key Figures are not valid

Former Member
0 Kudos

Hi,

Getting the following mssg when I try to generate a query in RSRT for the first time after I have coded Virtual Key Figures.

For the characteristic that I am pulling the user entered data from:

/BIC/ZNEWEST is not a valid characteristic for InfoProvider 0QM_C08

Message no. BRAIN122

Diagnosis

"Customer enhancement RSR00002 or the implementation of BAdI RSR_OLAB_BADI delivers /BIC/ZNEWEST as the characteristic to be calculated. 1. is however not a valid key figure for Infoprovider 0QM_C08.

System response

/BIC/ZNEWEST is ignored.

Procedure

Check the exit."

From the key figure I am using this info to populate value:

"/BIC/ZKF3 is not a valid key figures for InfoProvider 0QM_C08

Message no. BRAIN121

Diagnosis

Customer enhancement RSR00002 or the implementation of BAdI RSR_OLAB_BADI delivers /BIC/ZKF3 as the key figure to be calculated. 1. is however not a valid key figure for Infoprovider 0QM_C08 or /BIC/ZKF3 references the key figure . In this case, the basic key figure l is enough to calculate in the exit.

System response

/BIC/ZKF3 is ignored.

Procedure

Check the exit."

Any help would be appreciated.

This is my first time using Virtual KF's.

Thanks,

Brandon

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you also post the code you used to include the characteristics/KF?

Former Member
0 Kudos

I have this global code in ZXRSTOP:

*- 0QM_C08

Tables: /BIC/AZQM_O5000.

DATA: g_pos_0QM_C08_ZNEWEST type i,

g_pos_0QM_C08_ZOLDEST type i,

g_pos_0QM_C08_ZPSTARNT type i,

g_pos_0QM_C08_ZPFINNT type i,

g_pos_0QM_C08_0NOTIFICATN type i,

g_pos_0QM_C08_zKF3 type i,

g_pos_0QM_C08_zKF4 type i.

-


And this include:

*&----


*& Include ZQM_C08

*&----


CLEAR: l_s_chanm, e_t_kyfnm.

l_s_chanm-chanm = '/BIC/ZNEWEST'.

l_s_chanm-mode = rrke_c_mode-read.

APPEND l_s_chanm TO e_t_chanm.

l_s_chanm-chanm = '/BIC/ZOLDEST'.

l_s_chanm-mode = rrke_c_mode-read.

APPEND l_s_chanm TO e_t_chanm.

APPEND '/BIC/ZKF3' TO E_T_KYFNM.

APPEND '/BIC/ZKF4' TO E_T_KYFNM.

-


And finally, This ZXRSRU02 code:

DATA: l_s_chanm TYPE rrke_s_chanm.

CASE i_s_rkb1d-infocube.

WHEN 'ZCOPA_M50'. " COPA

INCLUDE ZCOPA_M50.

WHEN 'ZSD_C51'. " Service to sales

INCLUDE ZSD_C51.

WHEN '0SD_C12'.

INCLUDE ZSD_C12. "Service Level: Order Items

WHEN '0QM_C08'. "Notification Tasks

INCLUDE ZQM_C08.

ENDCASE.

Thx

Former Member
0 Kudos

Would the characteristic and KF not be without the /BIC/ prefix? The char name doesn't have that, right (even though that is the physical field name in the underlying table/structure).

Try that (while including the char/kf for the user-exit, in Include ZQM_C08 )

Former Member
0 Kudos

Thanks Ajay- error mssg is gone now.

I appreciate the quick reply.

Former Member
0 Kudos

How did you solved the issue. Please give some inputs.

Answers (3)

Answers (3)

Former Member
0 Kudos

Guys any help with the above posted issue.

Thanks

Simmi

Former Member
0 Kudos

Guys,

I am getting the same message as below

Diagnosis

"Customer enhancement RSR00002 or the implementation of BAdI RSR_OLAB_BADI delivers XXXX as the characteristic to be calculated. 1. is however not a valid characteristicfor Infoprovider XXXXXXXX

System response

XXXXXX characteristic is ignored.

Procedure

Check the exit."

I cheked the system in SE18 and SE19 transaction plus teh CMOD trabsaction.but did not find the BADI or the characteristic being used in teh enhancement in CMOD.

Also, I don't see them in the query.

So, why is teh system complaining.

I am alos getting another message "Proposed value for characteristic XXXXXYYYY match filter [W459[BRAIN]] .What does this mean?

Appreciate your help.

Thanks

Simmi

Former Member
0 Kudos

Brandon,

I think you will get help if you post your exit/BADI code as well. It is likely that that is where the problem is.

cheers,

Former Member
0 Kudos

Hi Ajay,

Here is my code:

----


  • FORM user_0QM_C08 *

----


  • ........ *

----


  • --> L_S_RKB1D *

  • --> C_S_DATA *

----


FORM user_0QM_C08 USING l_s_rkb1d TYPE rsr_s_rkb1d

CHANGING c_s_data TYPE any.

*-- Local data

DATA: l_n TYPE n,

FIN1 like /bic/azqm_O5000-/BIC/ZPFINNT,

FIN2 like /bic/azqm_O5000-/BIC/ZPFINNT,

STAR1 like /bic/azqm_O5000-/BIC/ZPFINNT,

STAR2 like /bic/azqm_O5000-/BIC/ZPFINNT,

TASK type STRING.

*-- Field Symbols

FIELD-SYMBOLS <ZNEWEST>.

FIELD-SYMBOLS <ZOLDEST>.

FIELD-SYMBOLS <ZPSTARNT>.

FIELD-SYMBOLS <ZPFINNT>.

FIELD-SYMBOLS <ZKF3>.

FIELD-SYMBOLS <ZKF4>.

FIELD-SYMBOLS <0NOTIFICATN>.

*->>> Initial checks

SELECT SINGLE * FROM zvir_reports

WHERE infocube = l_s_rkb1d-infocube

AND compid = l_s_rkb1d-compid.

CHECK sy-subrc IS INITIAL.

*->>> Prepare the structure

ASSIGN COMPONENT g_pos_0QM_C08_ZNEWEST

OF STRUCTURE c_s_data TO <ZNEWEST>.

ASSIGN COMPONENT g_pos_0QM_C08_ZOLDEST

OF STRUCTURE c_s_data TO <ZOLDEST>.

ASSIGN COMPONENT g_pos_0QM_C08_ZPSTARNT

OF STRUCTURE c_s_data TO <ZPSTARNT>.

ASSIGN COMPONENT g_pos_0QM_C08_ZPFINNT

OF STRUCTURE c_s_data TO <ZPFINNT>.

ASSIGN COMPONENT g_pos_0QM_C08_0NOTIFICATN

OF STRUCTURE c_s_data TO <0NOTIFICATN>.

*~~~>Changeable

ASSIGN COMPONENT g_pos_0QM_C08_zKF3

OF STRUCTURE c_s_data TO <ZKF3>.

ASSIGN COMPONENT g_pos_0QM_C08_zKF4

OF STRUCTURE c_s_data TO <ZKF4>.

*do not go thru code if user fields are blank.

IF <znewest> IS INITIAL OR <zoldest> IS INITIAL.

Exit.

Endif.

*-->>> Read general data

CLEAR: /BIC/AZQM_O5000, FIN1, FIN2, STAR1, STAR2, TASK.

TASK = 'SCM'.

  • get Start1 time

SELECT /BIC/ZPSTARNT FROM /bic/azqm_O5000 INTO STAR1

WHERE notificatn EQ <0NOTIFICATN>

AND /bic/ZNEWEST EQ <ZNEWEST>.

ENDSELECT.

  • Get Finish1 time

SELECT /BIC/ZPFINNT FROM /bic/azqm_O5000 INTO FIN1

WHERE notificatn EQ <0NOTIFICATN>

AND /bic/ZNEWEST EQ TASK.

ENDSELECT.

  • Get Finish2 time & Start2 time

SELECT /BIC/ZPFINNT /BIC/ZPSTARNT FROM /bic/azqm_O5000 INTO (FIN2 ,

STAR2)

WHERE notificatn EQ <0NOTIFICATN>

AND /bic/ZOLDEST EQ <ZOLDEST>.

ENDSELECT.

*- Update key figures

<zKF3> = abs( FIN1 - STAR2 ).

<zKF4> = abs( STAR1 - FIN2 ).

ENDFORM. "user_0QM_C08

Thx