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

Dialog Box

Former Member
0 Likes
472

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
445

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.

2 REPLIES 2
Read only

Former Member
0 Likes
446

Hi,

use FM "POPUP_TO_CONFIRM"

Refer link :

http://anu-sapdiary.blogspot.com/2007/11/popuptoconfirm.html

Best regards,

Prashant

Read only

Former Member
0 Likes
445

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.