Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Message Create ( confirm )

Former Member
0 Likes
393

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
375

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

2 REPLIES 2
Read only

Former Member
0 Likes
375

Use FM 'POPUP_TO_CONFIRM'.

Thanks,

Santosh

Read only

Former Member
0 Likes
376

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