Thursday 30 July 2015

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 : 



---------------------------------------------------------------------------------------------------------------

No comments:

Comments system

Disqus Shortname