cancel
Showing results for 
Search instead for 
Did you mean: 

RSR_OLAP_BADI vs RSR00002

Former Member
0 Kudos

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>

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member378040
Participant
0 Kudos

SAP recommends using BADI instead of RSR00002 in line with there OO development.

Amit.

Former Member
0 Kudos

Thank you. But when the system uses the method if_ex_rsr_olap_badi~compute is seems use the stabdars that is :

CHECK p_do_it = rs_c_true.

PERFORM (p_form_name) IN PROGRAM saplxrsr

USING i_s_rkb1d

CHANGING c_s_data

IF FOUND.

and this is a the form in RSR00002

How can I tell to the system to use the method in my class?

Thanks

Roberto

Former Member
0 Kudos

Problem solved i deactivate the standard bapi RSR_OLAP_BADI

thanks

Roberto