cancel
Showing results for 
Search instead for 
Did you mean: 

File downloading issue in web dynrpo

Former Member
0 Kudos

Hello Expert Learners,

I've been trying to download the internal table contents using the following code it's not working,

CALL METHOD lo_nd_vbak1->get_static_attributes_table

   IMPORTING

     table  = lt_download.

*I can see the table values in debugging

loop at lt_download into ls_download.

   concatenate str ls_download-vbeln ls_download-erdat ls_download-erzet ls_download-ernam

   cl_abap_char_utilities=>newline into str separated by cl_abap_char_utilities=>horizontal_tab.

   endloop.

CALL FUNCTION 'SCMS_STRING_TO_XSTRING'

   EXPORTING

     text           = str

  IMPORTING

    BUFFER         = xstr.

*Here I observed  xstr value is getting populated .

CALL METHOD cl_wd_runtime_services=>attach_file_to_response

   EXPORTING

     i_filename      = 'C:\temp\Sales.xls'

     i_content       = xstr

     i_mime_type     = 'EXCEL'.

     .

The file is not getting stored in the path I mentioned above ,even if I mentioned just the file name 'sales.xls' it's not working .

Please some one hlep.

Regards,

Nagendra

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

While executing does Browser opens up a downloading pop-up?

Thanks

KH

Former Member
0 Kudos

Hi KH,

No it does not showing any thing

Thanks

Former Member
0 Kudos

Hi,

Have you tried the same in IE or let me know in which  browser are you testing your application.

Thanks

KH

Former Member
0 Kudos

Hi,

Yes I tried in IE also no change. I'm testing it in Opera browser

Thanks,

Nagendra

Former Member
0 Kudos

Hi,

I tested the same in IE and Chrome and i can able download contents. Try to apply 1093049 - ATTACH_FILE_TO_RESPONSE does not work and check.

Thanks

KK

Former Member
0 Kudos

Hi,

Ok , but after clicking on that link it is asking me some credentials. can you provide them.

Thank you,

Nagenda

Former Member
0 Kudos

Hi,

Check with you TL or concern person who can help you out in your organization regarding service market place credentials.

Thanks

KH