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: 

Need a function module

Former Member
0 Kudos

Hi SAP experts,

I am downloading some data into an excel sheet from list output where i have kept a pushbutton for download button for the same on the application tool bar of list output.If I click the pushbutton I have to get a pop-up screen which should ask for a confirmation to save the file or to open the file.Could anyone tell me if there is any fm which caters the above requirement.

Your help is very much appreciated in this regard.

Regards,

Rahul.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

use

POPUP_TO_DISPLAY_TEXT

POPUP_DISPLAY_TEXT

POPUP_TO_CONFIRM_VALUES

there are so many fun modules for popup

in SE37 enter popupconfirm you will see many

Regards

anji

Message was edited by:

Anji Reddy Vangala

5 REPLIES 5

Former Member
0 Kudos

Hi

use

POPUP_TO_DISPLAY_TEXT

POPUP_DISPLAY_TEXT

POPUP_TO_CONFIRM_VALUES

there are so many fun modules for popup

in SE37 enter popupconfirm you will see many

Regards

anji

Message was edited by:

Anji Reddy Vangala

Former Member
0 Kudos

POPUP_TO_CONFIRM

0 Kudos

I want to know if any download f/m has this parameter of confirmation.

0 Kudos

FM DOWNLOAD is marked as obsolete but does what you want.

Rob

former_member208856
Active Contributor
0 Kudos

Hi,

Please use code as below :

DATA: header(30),

Question(30),

answer(20),

button1(10),

button2(10).

header = 'Confirm for SAVE'.

question = 'Do you want to SAVE'.

button1 = 'Yes'.

button2 = 'No'.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

TITLEBAR = header

TEXT_QUESTION = question

TEXT_BUTTON_1 = button1

TEXT_BUTTON_2 = button2

DEFAULT_BUTTON = '1'

IMPORTING

ANSWER = answer

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 answer eq '1'.

*SAVE................................

ENDIF.

Regards,

Sandeep Kaushik