Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Variables in CMOD??

Former Member
0 Likes
312

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.

1 REPLY 1
Read only

Former Member
0 Likes
281

Inside the exit, before to entry in include you have a MF with all parameters for in and out that you can use.