Skip to Content
0
Former Member
Nov 24, 2011 at 12:08 PM

Virtual key figure

46 Views

Hi,

I need to give data to virtual key figure

My cube name is ZPM_C06

I add the following code to the following user exit routine (exit EXIT_SAPMRSRU_001)

ZXRSRTOP

DATA: G_POS_ZPM_C06_ZVIRTKF TYPE I.

ZXRSRU02

BREAK-POINT.

Case I_S_rkb1d-Infocube.

When 'ZPM_C06'.

Append 'ZVIRTKF' to E_T_Kyfnm.

Endcase.

ZXRSRZZZ

Form User_ZPM_C06 Using I_S_Rkb1d type Rsr_S_Rkb1d

Changing C_S_Data type Any.

BREAK-POINT.

FIELD-SYMBOLS <L_ZVIRTKF>.

ASSIGN COMPONENT G_POS_ZPM_C06_ZVIRTKF of STRUCTURE C_S_DATA to <L_ZVIRTKF>.

<L_ZVIRTKF> = 50.

endform.

As you can find I put hard code break point

I run my bex report with RSRT transaction.

My questions are

1. Why the program does not stop at break point?

2. Why the key figure value is 0?

Thanks in advance

Itzik