cancel
Showing results for 
Search instead for 
Did you mean: 

show document content from webdynpro abap

former_member193202
Participant
0 Kudos

hi folks,

i already posted such a question, now i try again - maybe someone has a hot tip for me.

i hat der content of a document (e.g. JPG oder TIFF or WORD) in a table of type binary data.

Now my first suggestion was create a url with dp_create_url and dne navigate with element "link_to_url" to that generated url, which is in format sapr3:// , but that won't work.

has anyone an idea how to show this file-content in a webdynpro abap application.

kind regards oliver

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Oliver,

You can show files of all kinds by using an iframe and placing the file at some place inside of the MIME repository. If the file is somewhat static, just add it to the component (right mouse click at the component in the tree at the left side in se80). Just enter name of the file (if the file is part of the component) or the path within the mine repository inside of the URL field. If you don't add http:// something like that in front of the URL we assume that it is a path in the mime repository. This should work for LinkToURL as well.

Another nice option is to add the file to the response. Just call method cl_wd_runtime_services=>attach_file_to_response() and specify all the parameters.

Kind regards,

Thomas