10-04-2007 3:53 PM
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.
10-04-2007 4:06 PM
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
10-04-2007 4:06 PM
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
10-04-2007 4:07 PM
10-04-2007 4:16 PM
I want to know if any download f/m has this parameter of confirmation.
10-04-2007 4:22 PM
10-04-2007 4:12 PM
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