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

I am getting dump while downloading

Former Member
0 Likes
638

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.

1 ACCEPTED SOLUTION
Read only

dhirendra_pandit
Active Participant
0 Likes
564

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

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.

3 REPLIES 3
Read only

Former Member
0 Likes
564

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á

Read only

Former Member
0 Likes
564

Are you calling FM GUI_DOWNLOAD in at selection screen event .???

Call it in start-of-selection.

Read only

dhirendra_pandit
Active Participant
0 Likes
565

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