Skip to Content
0
Former Member
May 23, 2011 at 11:36 AM

Need help on BADI to use 0CALDAY from cube

22 Views

HI Gurus,

I want to calculate no of infractions. for that I need to create virtual key figure and I have to use "0calday - 179"( to get 180 days period).

I have created BADI but I don't know how to use 0CALDAY value from cube in BADI_COMPUTE.

below is the badi I have created.(BADI_COMPUTE)

Please help on this.

method IF_EX_RSR_OLAP_BADI~COMPUTE.

field-symbols <fs_0CALDAY> type any.

field-symbols <fs_ZINFCT180> type any.

ASSIGN COMPONENT P_CHA_0CALDAY OF STRUCTURE c_s_data TO <fs_0CALDAY>.

ASSIGN COMPONENT P_KYF_ZINFCT180 OF STRUCTURE c_s_data TO <fs_ZINFCT180>.

<fs_ZINFCT180> = .

endmethod.

Thanks

Shiv.