Hi Experts
I have created Function module as below for BEx Variable.
c_eq(2) type c value 'EQ', " for between
C_i(1) type c value 'I', " for inclusive
C_space(1) type c value ' ',
c_1(1) type n value '1'.
Data: l_s_range TYPE rsr_s_rangesid,
l_vnam TYPE rszglobv-vnam,
v_sys_date like sy-datum, "format is yyyymmdd
v_mth(2) type n,
v_qtr_mth type STRING,
v_year(4) type n.
l_vnam = i_vnam.
IF l_vnam = 'ZVAR_EX_YYYYQ1'.
l_s_range-sign = c_i. " populate output for query
l_s_range-opt = c_eq.
v_sys_date = sy-datum. " current system date
v_year = v_sys_date+0(4).
v_mth = v_sys_date+4(2). " extract month
v_qtr_mth = 'Q1'. " For 1st Quarter
concatenate v_year C_space v_qtr_mth into L_S_RANGE-LOW.
APPEND l_s_range TO e_t_range.
It is giving me correct result in SE37, when i execute.
But, it is showing "empty demarcation" when i run the BEX query.
Please guide.
Thanks in advance.