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

Function module for 'YES' or 'NO' popup

former_member853013
Participant
0 Likes
5,251

Hi all,

Is there any function module to ask a popup with 'YES' or 'NO' to execute a report program from selection screen?

Thansk in advance.

Regards,

Eswar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,721

Hi

Check fm as POPUP_TO_CONFIRM*

Max

3 REPLIES 3
Read only

Former Member
0 Likes
1,722

Hi

Check fm as POPUP_TO_CONFIRM*

Max

Read only

Former Member
0 Likes
1,721

Hi,

You can use the follow, i attach an example:

DATA: msg2(100) TYPE c,

answ.

msg2 = '¿Are you sure to continue?'.

CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_VALUE'

EXPORTING

defaultoption = ''

objectvalue = msg2

text_after = ''

text_before = ''

titel = 'Confirmation'

start_column = 25

start_row = 6

cancel_display = 'X'

IMPORTING

answer = answ

EXCEPTIONS

text_too_long = 1

OTHERS = 2.

IF answ NE 'J'.

MESSAGE E101(ZX) WITH ''.

ELSE.

SUBMIT ....

ENDIF.

Read only

Former Member
0 Likes
1,721

Hi Eswar K,

Do not use POPUP_TO_CONFIRM_WITH_VALUE

instead of it use POPUP_TO_CONFIRM

because 'POPUP_TO_CONFIRM_WITH_VALUE' is obsolete FM ... Check it up the attributes of the FM u can see the short text there Do not use! Please use POPUP_TO_CONFIRM.

Also have a look on below thread..

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7