cancel
Showing results for 
Search instead for 
Did you mean: 

Variable text with customer exit processing not working

sutiwat_b41
Member
0 Kudos

Hi expert I want to capture value from user input prompt type multiple single selection using variable text with customer exit processing. To show text value on column header. I've wrote code in Badi like...

CASE i_vnam.

WHEN 'ZCMO_ZBRAND_001'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ZMMO_ZBRAND_02'.
CLEAR: l_s_range.
l_s_range-low = loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO c_t_range.
ENDLOOP.

ENDIF.

ENDCASE.

But when I tried to run query nothing happen on column header it show just the variable's name like "&ZCMO_ZBRAND_001&"

Thank you.

MKreitlein
Active Contributor
0 Kudos

Did you set a breakpoint yet and check in the debugger?

What was the outcome? Have both variables been available in i_t_var_range?

Some pictures might be helpful...

Accepted Solutions (0)

Answers (1)

Answers (1)

rathy_moorthy2
Active Contributor
0 Kudos

Hi,

Multiple values will not be compatible with text variable. It causes ambiguity.

one option is you can try to concatenate all values in the loop and append a single value. But not sure what shall be the maximum length in that case. You can try it out

Hope it helps

REGARDS,

Rathy