2006 Dec 05 11:37 AM
hi
in my alv output display i have one reset button after user presses the button the reset process has to take place.
i want to use the popup for confirmation.ie when user presses the reset button the popup should ask for confirmation.if user selects cancle then it should come out of it n if user presses ok then proceed furthur
PLZ can any one tell me how can i do this?
hi
in my alv output display i have one reset button after user presses the button the reset process has to take place.
i want to use the popup for confirmation.ie when user presses the reset button the popup should ask for confirmation.if user selects cancle then it should come out of it n if user presses ok then proceed furthur
PLZ can any one tell me how can i do this?
2006 Dec 05 11:40 AM
Hi
Use the FM
'POPUP_TO_CONFIRM'
OR
POPUP_TO_CONFIRM_DATA_LOSS
Regs
Manas Ranjan Panda.
Message was edited by:
MANAS PANDA
2006 Dec 05 11:41 AM
hi,
do this.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
I_callback_user_command = 'USER_COMMAND' "see FORM
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
*------------------------------------------------------------------*
* FORM USER_COMMAND *
*------------------------------------------------------------------*
* --> R_UCOMM *
* --> RS_SELFIELD *
*------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Check function code
CASE r_ucomm.
WHEN 'RESET'.
data : 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'. " do what u want
else.
user selected 'NO'.
endif.
ENDCASE.
ENDFORM.rgds
Anver
2006 Dec 05 11:41 AM
use
FM
data: g_flag,
call function 'POPUP_TO_CONFIRM_STEP'
EXPORTING
defaultoption = 'Y'
textline1 = 'Continue...'
textline2 = 'Do you wish to continue?'
titel = 'popup'
start_column = 25
start_row = 6
cancel_display = ''
IMPORTING
answer = g_flag.
then ased on g_falg content proceed..
2006 Dec 05 11:41 AM
Hi neha,
1. In the Call back user command (form routine)
2. use code like this.
3.
IF sy-ucomm = 'RESETBUTTON'.
DATA : answer TYPE c.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Do You Want To Exit ?'
text_question = 'Do You Want To Exit ?'
IMPORTING
answer = answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
<b> IF answer = '1'.
SET USER-COMMAND 'BACK'.
ENDIF.</b>
ENDIF.
regards,
amit m.
2006 Dec 05 11:45 AM
hi Neha,
Use <b>POPUP_TO_CONFIRM</b> as POPUP_TO_CONFIRM_STEP is obsolete..
* Confirm update
call function 'POPUP_TO_CONFIRM'
exporting
titlebar = p_table
text_question = 'Do you want to update table ?'
default_button = '2'
display_cancel_button = ' '
importing
answer = l_answer
exceptions
others = 1.
Regards,
Santosh
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |