Skip to Content
avatar image
Former Member

Webdynpro abap - Unable open uploaded files in browser window

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 06, 2017 at 06:35 AM

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

    Add comment
    10|10000 characters needed characters exceeded