Skip to Content
0
Former Member
Nov 07, 2005 at 10:21 AM

Virtual Key Fig/Char RSR_OLAP_BADI/ RSR00002

31 Views

Hi guru's,

I am trying to switch from the customer exit RSR00002 to then new RSR_OLAP_BAPI functionily. However, I can't get it working. What I did:

1. Created Implementation (SE19) ZTEST

2. Assigned the infocube

3. Following code in DEFINE:

   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 'ZBBC4W_VK'.

*     characteristic

      l_s_chanm-chanm = 'Z_TESTJK'.
      l_s_chanm-mode  = rrke_c_mode-no_selection.
      APPEND l_s_chanm TO c_t_chanm.

  ENDCASE.

ENDMETHOD. 

4. Didn't do any thing in INITIALIZE

5. Following code in COMPUTE:

METHOD IF_EX_RSR_OLAP_BADI~COMPUTE .

field-symbols <l_Z_TESTJK> TYPE ANY.

 if P_CHA_Z_TESTJK > 0.

  assign component P_CHA_Z_TESTJK of structure C_S_DATA to <l_Z_TESTJK>.
  <l_Z_TESTJK> = 'TEST'.
 endif.

ENDMETHOD.

6. Assigned the following attribute to the Class in (SE24):

P_CHA_Z_TESTJK Static Attr Private TYPE i.

7. Included in the Characteristic Z_TESTJK in the cube

8. runned the report and expected to see TEST for the CHAR. Instead I get # Not Assigned

Where did I go Wrong????