Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error BRAIN 649 (Invalid Range) for Customer Exit Variable

Former Member
0 Likes
785

Hi all,

There is a User Entry variable VAR_DAY_RANGE with u2018INTERVALu2019 on Contract Start Date and created a customer exit variable ZVCPBDAY on Contract Start Date with u2018INTERVALu2019 and the input is above User Entry variable and it is working fine.

----


  • Reads VAR_DAY_RANGE from selection and fills the variable

  • from 01/01/1995 to previous day of the lower range selection

----


WHEN 'ZVCBPDAY'.

IF i_step = 2. "after the popup

LOOP AT i_t_var_range INTO loc_var_range

WHERE vnam = 'VAR_DAY_RANGE'.

CLEAR l_s_range.

CLEAR e_t_range.

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

L_YEAR = loc_var_range-low+0(4).

L_MONTH = loc_var_range-low+4(2).

L_DAY = loc_var_range-low+6(2).

CONCATENATE L_YEAR L_MONTH L_DAY INTO l_date_high.

l_date_low = '19950101'.

l_date_high = l_date_high - 1.

l_s_range-low = l_date_low.

l_s_range-high = l_date_high.

APPEND l_s_range TO e_t_range.

EXIT.

ENDLOOP.

ENDIF.

----


  • Read VAR_DAY_RANGE from same above selection and should

  • return Greater Than or Equal (GE) to the lower range date

----


WHEN 'ZVCLOWDT'.

IF i_step = 2. "after the popup

LOOP AT i_t_var_range INTO loc_var_range

WHERE vnam = 'VAR_DAY_RANGE'.

CLEAR l_s_range.

CLEAR e_t_range.

l_s_range-low = loc_var_range-low.

l_s_range-sign = 'I'.

l_s_range-opt = 'GE'.

APPEND l_s_range TO e_t_range.

EXIT.

ENDLOOP.

ENDIF.

ENDCASE.

After adding the code for the second variable ZVCLOWDT (to restrict Greater Than or Equal (GE) to the lower range date) on Contract End date with u2018SINGLE valueu2019 it is giving the error : BRAIN 649 (Invalid Range) and finally gives the Exception CX_RSR_BAD_VALUE_COMBINATION.

How could I fix this problem, PLEASE.

Thanks,

Venkat.

1 REPLY 1
Read only

Former Member
0 Likes
459

Hi Venkat

I am facing similar problem.

did you managed to fix this?

Please tell me how.

Regards

Sudeep