Skip to Content
0
Former Member
Dec 15, 2011 at 05:01 PM

Virtual characteristic: BADI not executed?

190 Views

Hey together,

we are faced with a problem that can be solved by a virtual charateristic.

We went the first steps:

1.) Creating an InfoObject and bring it into the cube (it's a normal cube, no multi provider)

2.) Define a filter on the cube

3.) Creating an implementation for BAdI RSR_OLAP_BADI with the three interface methods Define, Initialize and compute

4.) Taking the InfoObject into the Query

As we started the query there was no result for the virtual characteristic. In the next step I wanted to test if the methos are executed during query runtime. So I changed the "DEFINE" method in a way that it has to write a flag into a table when it is executed:

method IF_EX_RSR_OLAP_BADI~DEFINE.

DATA t1 TYPE zaufrufexit2. "Table for test reasons

t1-lauf = '2'.

INSERT INTO ZAUFRUFEXIT2 VALUES t1-lauf.

CASE i_s_rkb1d-infocube.

WHEN '/ITRM/EPSCUBE'.

APPEND '0CALMONTH' TO c_t_chanm.

ENDCASE.

endmethod.

From my understanding the method should be executed during query runtime an write into tabe ZAUFRUFEXIT2. I tested the three lines in a normal report. It works like that.

Thank you in advance.

Any ideas how to bring the BAdI implementation to work?

Thanks in advice.