I have some code that checks if they user enters the correct value and sends back a message if they enter an incorrect value. The code works but when you enter a correct variable on the selection screen the message keeps popping up like it doens't see this new value. Is there another piece of code I need?
IF I_STEP = 3 .
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZP_ROLLDOCTOR' OR VNAM = 'ZP_TRIAL'.
IF LOC_VAR_RANGE-LOW = 'Y' OR LOC_VAR_RANGE-LOW = ''.
ELSEIF LOC_VAR_RANGE-LOW = 'N'.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = 'Must Enter Y OR leave blank .'
DUMMY = 1
OTHERS = 2.