Dear Experts,
I have files (any type of file ... example .PDF, .DOCX, .XLS, .JPEG etc.,) stored in SRM AL11, my requirement is to fetch file names and
display in ALV Table using Web Dynpro ABAP.
I have created a custom web dynpro component with ALV Table, fetched file names from AL11 and displayed them in ALV table. When i click on
the file name it has to download/open the respective file.
I have tried using standard function modules and classes and methods but i am not able to download/open the file.
I have used cl_gui_frontend_services=>gui_download, its not working.
I have used FM 'ARCHIVFILE_SERVER_TO_CLIENT'its not working.
I have used cl_wd_runtime_services=>attach_file_to_response, its downloading as text file i.e., I tried to download either a .PDF file or .DOCX file or select any type of file, its converting it into text file and downloading, the file content will be some special characters etc.,.
Can you suggest any FM/Class methods/ any procedure to download/open file from SRM AL11 using web dynpro ABAP.