2009 Dec 04 7:52 AM
i am getting dump while downloading file to presentaion server .
please suggest me .
code is like below.
PARAMETERS : p_dwn TYPE dxfile-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwn.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME =
DYNPRO_NUMBER =
FIELD_NAME =
IMPORTING
file_name = p_dwn.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_dwn
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = t_zvtpmheader.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2009 Dec 04 11:28 AM
Hi Veeru,
This dump you are getting because of type mismatch, just change the file path as follows :-
data declaration should be like this.
PARAMETERS : p_dwn TYPE STRING. <<<----
it will surely work.
cheers
Dhirendra
2009 Dec 04 8:30 AM
Hi!
1. What is the dump message?
2. You can't download to presentation server, if you run your program in background.
3. You might try out class CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD method
Regards
Tamá
2009 Dec 04 10:15 AM
Are you calling FM GUI_DOWNLOAD in at selection screen event .???
Call it in start-of-selection.
2009 Dec 04 11:28 AM
Hi Veeru,
This dump you are getting because of type mismatch, just change the file path as follows :-
data declaration should be like this.
PARAMETERS : p_dwn TYPE STRING. <<<----
it will surely work.
cheers
Dhirendra