Skip to Content

show document content from webdynpro abap

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 03, 2006 at 03:02 PM

    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

    Add comment
    10|10000 characters needed characters exceeded