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

popup to confirm

Former Member
0 Likes
3,822

Hello,

I am using 'popup to confirm' FM to get a popup box.

but I am getting 3 buttons in that popup box.

1. OK 2. cancel 3. cancel

how to remove the extra 'cancel' button.

Thanks,

Ravish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,230

HI,

when using the FM

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

  • TITLEBAR = ' '

  • DIAGNOSE_OBJECT = ' '

text_question =

  • TEXT_BUTTON_1 = 'Ja'(001)

  • ICON_BUTTON_1 = ' '

  • TEXT_BUTTON_2 = 'Nein'(002)

  • ICON_BUTTON_2 = ' '

  • DEFAULT_BUTTON = '1'

  • DISPLAY_CANCEL_BUTTON = 'X'

  • USERDEFINED_F1_HELP = ' '

  • START_COLUMN = 25

  • START_ROW = 6

  • POPUP_TYPE =

  • IV_QUICKINFO_BUTTON_1 = ' '

  • IV_QUICKINFO_BUTTON_2 = ' '

  • 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.

DISPLAY_CANCEL_BUTTON = ' '

set this value as space so that another cancel button does not appear on the popup apart from ur two custom button.

Regards,

sirisha

Hello,

I am using 'popup to confirm' FM to get a popup box.

but I am getting 3 buttons in that popup box.

1. OK 2. cancel 3. cancel

how to remove the extra 'cancel' button.

Thanks,

Ravish

2 REPLIES 2
Read only

adrian_dorn
Advisor
Advisor
0 Likes
2,230

There is an import parameter DISPLAY_CANCEL_BUTTON DEFAULT 'X - it's not difficult to figure out what will happen when you fill it with a blank

Read only

Former Member
0 Likes
2,231

HI,

when using the FM

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

  • TITLEBAR = ' '

  • DIAGNOSE_OBJECT = ' '

text_question =

  • TEXT_BUTTON_1 = 'Ja'(001)

  • ICON_BUTTON_1 = ' '

  • TEXT_BUTTON_2 = 'Nein'(002)

  • ICON_BUTTON_2 = ' '

  • DEFAULT_BUTTON = '1'

  • DISPLAY_CANCEL_BUTTON = 'X'

  • USERDEFINED_F1_HELP = ' '

  • START_COLUMN = 25

  • START_ROW = 6

  • POPUP_TYPE =

  • IV_QUICKINFO_BUTTON_1 = ' '

  • IV_QUICKINFO_BUTTON_2 = ' '

  • 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.

DISPLAY_CANCEL_BUTTON = ' '

set this value as space so that another cancel button does not appear on the popup apart from ur two custom button.

Regards,

sirisha