Tuesday, September 2, 2008

How to create a pop up message

Message With Yes and No Options
* DATA : RES type c.
* CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
* EXPORTING
* DEFAULTOPTION = 'Y'
* TEXTLINE1 = 'text-1'
* TEXTLINE2 = 'text-2'
* TITEL = 'text-3'
* IMPORTING
* ANSWER = res.
* case res.
* when 'A'. " cancel
* when 'J'. " yes
* when 'N'. " No
* endcase.

ERROR MEssaGE
message E899(bd) with 'BSC Score is not correct!!!!'.
MESSAGE I699(5A) WITH 'bla'
.

Call function Message
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
exporting
textline1 = 'BSC Score is not correct!!!!'.