form output_message using p_mess.
* use popup instead of message so selection screen
* is saved
if sy-batch = space.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
exporting
textline1 = p_mess.
else.
MESSAGE E899(bd) WITH p_mess.
endif.
endform. " output_message