cancel
Showing results for 
Search instead for 
Did you mean: 

Customer Exit Variable CP Option

Former Member
0 Kudos

Hi,

we ha ve created a customer exit variable ZVAR_CP (Detail Select Option, Optional) on Characteristic defined as a char (6)

The code to fill this variable is:

WHEN 'ZVAR_CP'.

l_s_range-sign = 'I'.

l_s_range-opt = 'CP'.

l_s_range-low = 'F*'.

APPEND l_s_range TO e_t_range.

ENDIF.

Executing the query with this variable we obtain this message: CP in variable 'ZVAR_CP' is not supported; characteristic is numeric, but in the system the characteristic related to the variable IS NOT NUMERIC.

Any idea? We need to filter all master data value that begin with F. Why CP option give error?

Thanks,

Veronica

Accepted Solutions (1)

Accepted Solutions (1)

former_member202684
Contributor
0 Kudos

Hi,

I think your requirement is something to populate all values that start with 'F' into the variable selection.

In this case you will have to get your values into an internal table and then do something like below:


when 'ZVAR_CP'.

if i_step = 1.

*      populate the table IT_TABLE with your values
*      you can use a select statement with condition 
*      (where field like 'F%') to get values equivalent to 'F*'
   Loop at IT_TABLE into WA_TABLE.
        l_s_range-SIGN = 'I'.
	l_s_range-OPT = 'EQ'.
        l_s_range-LOW = WA_TABLE-field.
 	append l_s_range to e_t_range.
   Endloop.
endif.

Hope this helps,

Regards,

Joe

Answers (1)

Answers (1)

ravi_chandra3
Active Contributor
0 Kudos

HI

WHEN 'ZVAR_CP'.

l_s_range-sign = 'I'.

l_s_range-opt = 'CP'.

l_s_range-low = 'F'.*

APPEND l_s_range TO e_t_range.

ENDIF.

make some correction like in the

.

l_s_range-sign = 'E'.

l_s_range-opt = 'EQ'.

I think there is no option with CP and i think l_s_range-low = 'F*'.

won't work.

Plz check it

Regards,

RaviChandra