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

Pop-Up Window

Former Member
0 Likes
749

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

1 ACCEPTED SOLUTION
Read only

former_member69765
Contributor
0 Likes
718

Simple ... Use the FM POPUP_TO_CONFIRM.

Here you can have your own question, default the behaviour to Yes or No.

Cheers.

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

4 REPLIES 4
Read only

Former Member
0 Likes
716

Santosh,

just try to use FM below:

BP_POPUP_DIALOG

Amit.

Read only

former_member69765
Contributor
0 Likes
719

Simple ... Use the FM POPUP_TO_CONFIRM.

Here you can have your own question, default the behaviour to Yes or No.

Cheers.

Read only

Former Member
0 Likes
716

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

Read only

Former Member
0 Likes
716

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