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: 

WS_DOWNLOAD

Former Member
0 Kudos

Hello friends,

I am using the WS_DOWNLOAD function Module and it gives me a short dump.



DATA:  BEGIN OF I_PA0002 OCCURS 10.
       INCLUDE STRUCTURE PA0002.
DATA:  END OF I_PA0002.

CALL FUNCTION 'WS_DOWNLOAD'
      EXPORTING
        filename                = p_file
        filetype                = 'ASC'
      TABLES
        data_tab                = I_PA0002
      EXCEPTIONS
        file_open_error         = 1
        file_write_error        = 2
        invalid_filesize        = 3
        invalid_type            = 4
        no_batch                = 5
        unknown_error           = 6
        invalid_table_width     = 7
        gui_refuse_filetransfer = 8
        customer_error          = 9
        OTHERS                  = 10.

IS it because of a lot of data.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Have you tried using gui_download?

6 REPLIES 6

Former Member
0 Kudos

Have you tried using gui_download?

0 Kudos

Thanks Tried GUI and it works.

Former Member
0 Kudos

A basic correction but may help, can you change your internal table as occurs 0 ?

former_member156446
Active Contributor
0 Kudos

Hi

check the types you declared the varialbes you are passing..

file name need to be declares as

datA: p_file type RLGRAP-FILENAME.

Former Member
0 Kudos

it may not be because of huge data.

check the p_file type, it should be RLGRAP-FILENAME.

and check ur SAP version. Above version 5.00, this fm is obsolete.

Former Member
0 Kudos

Hi

what does the dump say?

options: try gui_download..and u can't use this Fm in back ground processing.

Cheers

~Arun