Application Development 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: 

pop-up

Former Member
0 Kudos

hi all,

i have a requirement

i need to pop-up a message "xxxxxx" where it is required that when

1) user clicks on "tick",program should execute normally

2) if the user clicks on "x"(cross)then program should not execute and should return to selection screen.

how to do this simultaneously under one pop-up.

5 REPLIES 5

Former Member
0 Kudos

Please check the following FM

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

titlebar = text-004

text_question = text-007

text_button_1 = text-005

icon_button_1 = c_succ

text_button_2 = text-006

icon_button_2 = c_fail

default_button = '2'

display_cancel_button = ' '

start_column = 25

start_row = 6

IMPORTING

answer = ws_action

EXCEPTIONS

text_not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE e000 WITH text-044.

ENDIF.

CHECK ws_action EQ 1.

Former Member
0 Kudos

hi kunal,

You want to pop up a message or you want to chevk if the code has already one pop up?

If you want to po uo some text or message, you can use the fMs:

POPUP_WITH_TABLE Popup to display internal table data

POPUP_FOR_INFORMATION

POPUP_FOR_INFO

POPUP_DISPLAY_MESSAGE

POPUP_WITH_WARNING

POPUP_TO_CONFIRM Standard dialog Popup

Reward with points if it is helpful

Chers

Alfred

former_member181962
Active Contributor
0 Kudos

Use the fm POPUP_TO_DECIDE:

Sample usage:

CALL FUNCTION 'POPUP_TO_DECIDE'

EXPORTING

TEXTLINE1 = TEXT-001

TEXTLINE2 = TEXT-002

TEXT_OPTION1 = TEXT-003

TEXT_OPTION2 = TEXT-004

TITEL = TEXT-005

CANCEL_DISPLAY = ' '

IMPORTING

ANSWER = L_ANSWER.

REgards,

Ravi

Former Member
0 Kudos

Hi kunal,

1. simple

2. just copy paste.

a) it will show yes/no buttons

b) if we select yes, it will WRITE something

3.

report abc.

data: answer type c.

*----


START-OF-SELECTION.

CLEAR ANSWER.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

  • TITLEBAR = ' '

  • DIAGNOSE_OBJECT = ' '

TEXT_QUESTION = 'Continue ?'

  • TEXT_BUTTON_1 = 'Ja'(001)

  • ICON_BUTTON_1 = ' '

  • TEXT_BUTTON_2 = 'Nein'(002)

  • ICON_BUTTON_2 = ' '

  • DEFAULT_BUTTON = '1'

DISPLAY_CANCEL_BUTTON = ''

  • USERDEFINED_F1_HELP = ' '

  • START_COLUMN = 25

  • START_ROW = 6

  • POPUP_TYPE =

  • IV_QUICKINFO_BUTTON_1 = ' '

  • IV_QUICKINFO_BUTTON_2 = ' '

IMPORTING

ANSWER = answer

  • TABLES

  • PARAMETER =

  • EXCEPTIONS

  • TEXT_NOT_FOUND = 1

  • OTHERS = 2

.

*----


IF ANSWER = '2'.

LEAVE LIST-PROCESSING.

ENDIF.

WRITE 😕 '------- HELLO '.

regards,

amit m.

anversha_s
Active Contributor
0 Kudos

hi kunal,

chk this.

hi,

try this.

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

else.

user selected 'NO'.

endif.

rgds

anver

pls mark hlpful answers