Skip to Content
0
Dec 09, 2011 at 10:30 PM

Customer exit (cmod) logic not working in ZXRSRU01

60 Views

Hi Gurus,

I'm trying to assign Plan Version '0' as the value in the logic below, but it falis with this error:

Value "0" for user-exit variable CTPFV_111 is invalid

0 is a valid plan version in master data (0version) and works fine when the value is input manually.

If I set the logic below using an alpha value it works fine, e,g, 'AOP'.

Should it be converted to alpha? Any ideas?

WHEN 'CTPFV_111'. "Select plan version '0' for SAP Plan data

READ TABLE i_t_var_range WITH KEY iobjnm = '0VERSION'

vnam = 'CTPFV_40'

INTO l_s_var..

IF sy-subrc = 0.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

l_s_range-low = '0'. <= This is the line which fails

APPEND l_s_range TO e_t_range.

CLEAR l_s_range.

ENDIF.

Appreciate any suggestions!