Function Module ‘POPUP_WITH_2_BUTTONS_TO_CHOOSE’ to show POP UP with TWO Buttons!

DATA lv_answer .

CALL FUNCTION ‘POPUP_WITH_2_BUTTONS_TO_CHOOSE’
EXPORTING
diagnosetext1 ‘Please Choose Option’
textline1     space
textline2     space
text_option1  ‘YES’
text_option2  ‘NO’
titel         ‘Check’
IMPORTING
answer        lv_answer.

CASE lv_answer.
WHEN ‘1’.
WRITE :‘Yes is selected, proceeding…’.
” continue logic
WHEN ‘2’.
WRITE :‘No is selected, retruning …’.
” return logic
WHEN OTHERS.
ENDCASE.



Execute the program.

 Output : 


 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s