2008 Jul 15 11:30 AM
Hi All,
I have created tabstrip screen with seven tabs. My requirement is when i click 'BACK" button from any of the screens i need a pop-up window which has the information as " Do you want to exit? The data will not be saved" with YES & NO buttons. So please suggest me how to bring the pop-up screen when i press BACK button.
Its urgent plz respond asap.
Regards,
Santosh
2008 Jul 15 11:34 AM
Simple ... Use the FM POPUP_TO_CONFIRM.
Here you can have your own question, default the behaviour to Yes or No.
Cheers.
2008 Jul 15 11:34 AM
2008 Jul 15 11:34 AM
Simple ... Use the FM POPUP_TO_CONFIRM.
Here you can have your own question, default the behaviour to Yes or No.
Cheers.
2008 Jul 15 12:06 PM
hi,
for this you have to use function module ''POPUP_TO_CONFIRM'
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
text_question = 'DO YOU WANT TO SAVE DATA?'
TEXT_BUTTON_1 = 'YES'(001)
TEXT_BUTTON_2 = 'NO'(002)
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
IMPORTING
ANSWER = ANSWER
.
IF ANSWER = '001'.
MESSAGE 'DATA SUCESSFULLY SAVED' TYPE 'I'.
CALL SCREEN '0100'.
ENDIF.
ELSE.
if answer = '002' .
CALL SCREEN '0100'.
endif.
hope it will help you.
regards,
Sachin
Edited by: Sachin Gupta on Jul 15, 2008 1:07 PM
2008 Jul 15 1:54 PM
hi
ata : WF_RES type c.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
DEFAULTOPTION = 'N'
TEXTLINE1 = 'Do you want to delete the record?'
TEXTLINE2 = ' '
TITEL = 'Delete Zone'
START_COLUMN = 25
START_ROW = 6
CANCEL_DISPLAY = 'X'
IMPORTING
ANSWER = WF_RES.
if wf_res = 'J'.
user selected 'YES'.
else.
user selected 'NO'.
endif.
Or
u can also use POPUP_TO_CONFIRM
or
CALL FUNCTION 'POPUP_TO_CONFIRM_DATA_LOSS'
EXPORTING
DEFAULTOPTION = 'J'
TITEL = 'Dialog for Data'
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = d_ans
.
Based on the answer you can select the step in the flow logic.
Write:/ 'Answer =', d_ans.
amit