Skip to Content
0

Webdynpro abap - Unable open uploaded files in browser window

Jul 05, 2017 at 08:41 PM

30

avatar image

Hello Experts,

Need some help.

I have an application that uploads files to commvault - upload is successful.

When user clicks on attached files (displayed in table control) to view them. they should be opened in new browser window. browser window is opened but it is displaying nothing.

Here is what i am doing in the code.

CALL METHOD cl_fitv_gos=>get_content
EXPORTING
iv_atta_id = lv_atta_id
iv_objtp = lv_objtp
IMPORTING
ev_content = lv_content_str
ev_content_hex = lv_content.

CALL METHOD
cl_wd_runtime_services=>attach_file_to_response
EXPORTING
i_filename = l_file
i_content = lv_content
i_mime_type = lv_mftyp. "l_mime.

I am passing doc GUID to the lv_atta_id of get_content method.

Help is appreciated.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mike Pokraka Jul 06, 2017 at 06:35 AM
0

The obvious thing to check is if there is any content at runtime. Have you debugged & verified this?

Share
10 |10000 characters needed characters left characters exceeded