cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual key figure

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

RSRT --> Enter Query Name

Then Click on Technical Information --> Under OLAP-Relevant Data check Virtual Char./Key Figures status.

If it's NO then again in RSRT --> Enter Query Name

Click on Generate Report

Regards,

Sushant

Former Member
0 Kudos

Sushant,

Thanks for quick reply

I see the break point in ZXRSRU02 but not in ZXRSRZZZ

How the form User_ZPM_C06 triggered?

Thanks

Itzik

Former Member
0 Kudos

Hi,

Can you please copy the complete code and steps what you did for Virtual KF.

Is there any conditions are there before break-point?

Thanks

Riyez

Former Member
0 Kudos

Riyez

in the original mesage u have the full code.

Former Member
0 Kudos

Hi,

Are you not able to put external breakpoint from tool bar button.

Regards,

Durgesh.

Answers (0)