Popup screen using popup_to_confirm
Hi all,
I have created a pop-up screen using FM popup_to_confirm.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' Warning '
DIAGNOSE_OBJECT = ' '
text_question = 'Mandatory field is not filled. Do you wish to save the order? '
TEXT_BUTTON_1 = 'CHOOSE'
ICON_BUTTON_1 = 'ICON_YES'
TEXT_BUTTON_2 = 'Save '
ICON_BUTTON_2 = 'ICON_NO'
DEFAULT_BUTTON = '2'
DISPLAY_CANCEL_BUTTON = ''
IMPORTING
ANSWER =
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Here if i select choose button an operation has to be performed similarly for save a different operation needs to be performed. For that i have tried 2 means.
1) Case sy-ucomm.
when 'CHOOSE'.
exit.
when 'SAVE'.
RV45A-ASTTX = '10'.
endcase.
2) Case sy-ucomm.
when 'ICON_YES'.
exit.
when 'ICON_NO'.
RV45A-ASTTX = '10'.
endcase.
But both are not working.... Anyone who knows solution please help me on this. Useful informations will be rewarded.
Thanks and Regards,
Subbu.