cancel
Showing results for 
Search instead for 
Did you mean: 

Create a warning message in Bex based on blank variable user's input

Former Member
0 Kudos

Hi experts,

I have to create a warning message in Bex based on user's selection in the pop-up variable screen.

Thus, if no value is selected upon an optional variable, I have to show a warning message, BUT still show the query results.

I'm using the following code:

IF i_step = 3.

CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

EXPORTING

i_class = 'ZZ'

i_type = 'W'

i_number = '003'.

RAISE others.

ENDIF.

ENDIF.

The warning message is appearing as expected, but despite accepting the message by pressing 'OK', it doesn't allow me to get to the query result.

Can you let me know why I can just accept and skip this message instead of reamining in the pop-up screen?

Thanks in advance for your help.

Best regards,

Enric

Edited by: Enric Barba Soriano on Jun 6, 2011 4:26 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

instead of raise others , write exceptions and try :

try writing the below code in se38 and check whether it fulfills the requirement :

CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

EXPORTING

i_class = 'ZZ'

i_type = 'W'

i_number = '003'

exceptions

dummy = 1 .

CASE sy-subrc.

WHEN 0.

WRITE:'' .

WHEN 1.

WRITE 'Field is empty !'.

endcase .