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??
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