Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RSR_OLAP_BADI vs RSR00002

Hi gurus

I'm trying to implement Virtual key figure.

I read a lot of documentation but I don't understand the right way!

My tests are:

<b>First</b>

implement RSR00002

I implement the components, the include zxrsrtop and

ZXRSRZZZ, but it doesn't work

<b>Second</b>

Delete the RSR00002 enhancement and impement BADi RSR_OLAP_BADI

I create with SE19 a new implementation name (ZRSR_OLAP_BADI)

I creates attributes

I.e.

"P_KYF_ZORDRESQ " "Instance Attribute" "Public" "type I"

"P_CHA_0CALMONTH" "Instance Attribute" "Public" "type I"

I fill in the method

<i>METHOD IF_EX_RSR_OLAP_BADI~DEFINE .

DATA: l_s_chanm TYPE rrke_s_chanm,

l_kyfnm TYPE rsd_kyfnm.

FIELD-SYMBOLS:

<l_s_chanm> TYPE rrke_s_chanm.

CASE i_s_rkb1d-infocube.

WHEN 'ZMSDORFAT'.

l_s_chanm-chanm = '0CALMONTH'.

l_s_chanm-mode = rrke_c_mode-read.

APPEND l_s_chanm TO c_t_chanm.

APPEND '0REQ_QTY' TO c_t_kyfnm.

APPEND 'ZQTCONS' TO c_t_kyfnm.

APPEND '0NET_VAL_S' TO c_t_kyfnm.

APPEND 'ZVALCONS' TO c_t_kyfnm.

APPEND 'ZORDRESV' TO c_t_kyfnm.

APPEND 'ZORDRESQ' TO c_t_kyfnm.</i>

Former Member
Not what you were looking for? View more on this topic or Ask a question