Skip to Content
author's profile photo Former Member
Former Member

Need to open a DMS document using Webdynpro ABAP

Hi Friends

I need to open a DMS document ( for eg. a PDF file) using webdynpro abap, stored on some server location whose path I have retrieved using FM BAPI_DOCUMENT_CHECKOUTVIEW2 .

CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'

EXPORTING

documenttype = lwa_alv_result-doc_type

documentnumber = lwa_alv_result-doc_no

documentpart = lwa_alv_result-doc_part "'000'

documentversion = lwa_alv_result-doc_ver

documentfile = lwa_doc_files

getstructure = '1'

getcomponents = lc_x

getheader = lc_x

pf_ftp_dest = 'SAPFTPA'

IMPORTING

return = lwa_ret2

TABLES

documentfiles = lit_doc_files.

Can someone please guide me further regarding the same as in what FMs or Classes can be used??

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2010 at 10:26 AM

    Hi Vishal,

    Get the URL of the document you want to open.

    There are various API/FM of DMS available for this.

    You can use ACFexecute UI elemnet for opening the document ( lIke PDF, word etc ) with this URL{ Available with NW Ehp 1}.

    or you can try using LinktoUrl element.

    Warm regards,

    Atul

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.