2008 May 31 7:50 AM
Hi Gurus,
In Module pool table controls i want to delete some selected records.
Its workin fine.
Now i want to put a message for "Are u sure to delete " Yes /No in a dialog box.
based on the user selection Yes/No , i have to delete records.
How to do this.
2008 May 31 7:54 AM
Hi,
use FM "POPUP_TO_CONFIRM"
Refer link :
http://anu-sapdiary.blogspot.com/2007/11/popuptoconfirm.html
Best regards,
Prashant
Hi Gurus,
In Module pool table controls i want to delete some selected records.
Its workin fine.
Now i want to put a message for "Are u sure to delete " Yes /No in a dialog box.
based on the user selection Yes/No , i have to delete records.
How to do this.
2008 May 31 7:54 AM
Hi,
use FM "POPUP_TO_CONFIRM"
Refer link :
http://anu-sapdiary.blogspot.com/2007/11/popuptoconfirm.html
Best regards,
Prashant
2008 May 31 10:53 AM
Hi Sekhar,
see below it..
IF OK_CODE = 'SAVE'.
call function 'POPUP_TO_CONFIRM'
exporting
TITLEBAR = 'SAVE TIME SHEET'
DIAGNOSE_OBJECT = ' '
text_question = 'Do You Want To Save'
TEXT_BUTTON_1 = 'YES'
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'NO'
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
USERDEFINED_F1_HELP = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
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.
IF SY-UCOMM = 'OPT1'.
MOVE: ZTSH-TEID TO ZTSH-TEID,
ZTSH-STATUS TO ZTSH-STATUS,
ztsh-apvd to ztsh-apvd.
MODIFY ZTSH.
if ztsh-status = 'I'.
text = 'Inserted'.
MESSAGE I029(ZHR) with text.
LEAVE PROGRAM.
ELSEIF ztsh-status = 'D'.
text = 'Deleted'.
MESSAGE I029(ZHR) with text.
LEAVE PROGRAM.
endif.
ELSEIF SY-UCOMM = 'OP2'.
LEAVE PROGRAM.
ELSE.
clear: ZTSD,ZTSH,yapn, ZMONTH_TAB,ZEMPMAS, ZPOH,ZPOD.
ENDIF.
ENDIF.
Reward if useful,
Thanks,
S.Suresh.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |