cancel
Showing results for 
Search instead for 
Did you mean: 

Diff. between E_T_RANGE and I_T_VAR_RANGE

Former Member
0 Kudos

Hi All,

I am doing some coding in the Variable User Exits but facing some problem(Under discussion in another post). In the coding I found that there are 2 tables E_T_RANGE and I_T_VAR_RANGE. Can someone please explain me the exact difference between these 2 tables.

Thanks,

RPK.

Accepted Solutions (0)

Answers (1)

Answers (1)

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi RPK,

hope it helps:

Input

I_VNAM:

Name of Variable to be Replaced

I_VARTYP:

Variable Type (Characteristic Value, Text, Formula, and so on)

I_IOBJNM:

InfoObject that the Variable Refers to

I_S_COB_PRO:

InfoObject Properties

I_S_RKB1D:

Query Reporting Attribute

I_PERIV:

Query Definition Attribute

I_T_VAR_RANGE:

Values of the other Variables

I_STEP:

Processing Step

      • Output ***

E_T_RANGE:

Variables Value Table

Please note that thare is a good F4-Help in the CMOD!

Try also this! There should be also an example code.

Regards,

Adem

Former Member
0 Kudos

Hi Adem,

How can I find the example program?

Thanks,

RPK.

Former Member
0 Kudos

Hi RPK,

Hope this helps.

" VALUE(E_T_RANGE) TYPE RSR_T_RANGESID

DATA: l_s_range LIKE LINE OF e_t_range,

l_s_range_v LIKE LINE OF i_t_var_range.

DATA: l_year(4) TYPE n,

l_month(2) TYPE n.

CASE i_vnam.

WHEN 'Z1LAST_MONTH'.

IF i_step = 1.

l_yearmonth = sy-datum+0(6).

IF l_yearmonth+4(2) = '01'.

l_year = l_yearmonth+0(4).

l_year = l_year - 1.

l_yearmonth+0(4) = l_year.

l_yearmonth+4(2) = '12'.

ELSE.

l_yearmonth = l_yearmonth - 1.

ENDIF.

l_s_range-low = l_yearmonth.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

INSERT l_s_range INTO TABLE e_t_range.

ENDIF.