Skip to Content
0
Former Member
Mar 11, 2009 at 11:52 AM

Bex user exit to select many values

71 Views

Hi experts,

I am developping a bex exit to select all distinct values of a characteristic from ods table, and return them to my query as entry. The values are not an interval;

What should be the L_S_RANGE-OPT value ?

I was thinking of something like this :

WHEN 'Z_CRE_ALL'.

IF i_step = 2.

DATA itab LIKE /bic/azfiocre00 OCCURS 100 WITH HEADER LINE.

*SELECT DISTINCT * FROM /bic/azfiocre00*

INTO CORRESPONDING FIELDS OF itab.

ENDSELECT.

LOOP AT i_t_var_range INTO loc_var_range

WHERE vnam = '0I_FPER'.

CLEAR l_s_range.

LOOP AT itab.

l_s_range-low = itab-/bic/zfievt.

l_s_range-high = ????????

l_s_range-sign = 'I'.

l_s_range-opt = ??????

APPEND l_s_range TO e_t_range.

ENDLOOP.

ENDLOOP.

ENDIF.

regards.

Raed