Skip to Content
0
Former Member
Jan 18, 2012 at 01:06 PM

Variables in CMOD??

31 Views

I have a situation where I need to execute the query without including company code and variable defined on it. I have to filter the value in the CMOD globally and pass that value to the query so that it displays the data only for that company code. This is related to authorization and below is the code implemented but somehow I am unable to get the desired result.

How to execute a bex report without providing the input variable. Variable should fill dynamically in CMOD. How to fill a variable at runtime in CMOD for Bex report. Here in my below case i want to display a data only relavant to XYZ company and xyz input fill at run time...

Please go through the code and suggest any changes needed.

data : LV_COMP1(255) TYPE c.

LV_COMP1 = 'XYZ'.

IF i_step = 1.

CLEAR: lwa_var_rng,

lwa_range.

lwa_range-low = LV_COMP1.

lwa_range-sign = 'I'.

lwa_range-opt = 'BT'.

APPEND lwa_range TO e_t_range.

CLEAR lwa_range.

ENDIF.

CASE i_vnam.