on 01-27-2009 3:05 PM
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?
CASE I_VNAM.
IF I_STEP = 3 .
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZP_ROLLDOCTOR' OR VNAM = 'ZP_TRIAL'.
ENDLOOP.
IF LOC_VAR_RANGE-LOW = 'Y' OR LOC_VAR_RANGE-LOW = ''.
SKIP.
ELSEIF LOC_VAR_RANGE-LOW = 'N'.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = 'Must Enter Y OR leave blank .'
EXCEPTIONS
DUMMY = 1
OTHERS = 2.
RAISE NO_PROCESSING.
ENDIF.
ENDIF.
ENDCASE.
Hi,
add last statement as APPEND l_s_range TO e_t_range before endif.
Thanks,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laja ,
Try this
CASE I_VNAM.
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 = ''.
SKIP.
ELSEIF
LOC_VAR_RANGE-LOW = 'N'.
L_MSGV1='Must Enter Y OR leave blank '.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = ' L_MSGV1'
EXCEPTIONS
DUMMY = 0
OTHERS = 0.
RAISE NO_PROCESSING.
SY-SUBRC = 4.
ENDIF.
ENDLOOP.
ENDIF.
ENDCASE.
Rgds
SVU123
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.