‎2007 Feb 22 5:44 PM
HI, I dont find information about create message where you have the option to choosse YES o NO.
Message YES / NO
IS YES do it
else NOT .
THanks
‎2007 Feb 22 5:52 PM
Hi,
You can use the FM POPUP_TO_CONFIRM..
DATA: v_answer.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Question'
text_question = 'Do you want to Continue?'
text_button_1 = 'Yes'(001)
text_button_2 = 'No'(002)
display_cancel_button = ' '
IMPORTING
answer = v_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
IF v_answer = '1'.
WRITE: 'yes button pressed. '.
ELSE.
WRITE: 'No button pressed. '.
ENDIF.
ENDIF.
Hope this is what you want..
Thanks,
Naren
‎2007 Feb 22 5:48 PM
‎2007 Feb 22 5:52 PM
Hi,
You can use the FM POPUP_TO_CONFIRM..
DATA: v_answer.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Question'
text_question = 'Do you want to Continue?'
text_button_1 = 'Yes'(001)
text_button_2 = 'No'(002)
display_cancel_button = ' '
IMPORTING
answer = v_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
IF v_answer = '1'.
WRITE: 'yes button pressed. '.
ELSE.
WRITE: 'No button pressed. '.
ENDIF.
ENDIF.
Hope this is what you want..
Thanks,
Naren