hi
We know how to use CMOD and such things like that, but we have no idea on how to write code to pop up msg from wrong user input. The thread you gave is helpful, and our code looks like the following:
IF I_STEP = 2.
LOOP AT I_T_VAR_RANGE INTO I_RANGE WHERE VNAM = '0PCALMON'.
IF some_condition_here.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = 'some error msg here'.
ENDIF.
ENDLOOP.
ENDIF.
When we run the query, the error msg box does come up with a Confirmation button. But if clicking the Confirmation button, the query still runs and yields results. Any idea to stop the query running if clicking the Confirmation button?
Thanks!
Kevin