cancel
Showing results for 
Search instead for 
Did you mean: 

error in displaying uploaded file ?

Former Member
0 Kudos

hii hav developed a application to upload and download files in webdynpro abap by following the below link

files are getting uploaded but while downloading it showing unsupported format pls help ...?

actually my req is to upload ms word files and i hav to download and displayed in the same format....

http://wiki.sdn.sap.com/wiki/display/WDABAP/Upload+and+Download+files+in+Webdynpro+ABAP

thanks and regards

  lokesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hii as per this link

http://scn.sap.com/message/10006766#10006766

here it is saying that after downloading we have to save it as per our format required ex : .doc .docx like that ....

but i need to open directly the same format to be opened ....

let me know any solution pls...

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Khushboo Sachdeva....

actually my requiremnt is to upload and download files into a ztable through webdynpro abap .....

uploading is working fine..

while downloading it is downloading but opening different format....

here static string is not possible ...

let me know any other solution pls..

Former Member
0 Kudos

Hi,

While uploading the file to ztable you must be stroing the file name in the Z table. Do you store the Extension of the file in the filename?

My question is - When you display the file in FILE_DOWNLOAD ui element, can you see the extension in file name?

I once faced an issue of the similar nature and it was happening because i was not paasing the extension of the file in the filename though i was passing Mime Type and file type. You still need extension in the filename.

Former Member
0 Kudos

Hi,

Please try one thing and check if it works.

Instead of using statement

  ls_file_upload-FILE_NAME = ls_n_upload-FILE_NAME.

pass a static string in the file name

like

     ls_file_upload-file_name = 'Abc.Doc'.