2009 Aug 24 11:54 AM
Hi guys,
we have a requirment has follows , please help me with your inputs.
We have list of documents available in the DMS server....(XLS,DOC,PDF)
1. How to get the list of file names ( available in the DMS server ) into the internal table.
2. i need to open these documents by clicking - into the same sap session itself. (it should not open in windows)
Please Note : Many of our forum friends earlier to open the file in windows.
regards
Giri
Hi guys,
we have a requirment has follows , please help me with your inputs.
We have list of documents available in the DMS server....(XLS,DOC,PDF)
1. How to get the list of file names ( available in the DMS server ) into the internal table.
2. i need to open these documents by clicking - into the same sap session itself. (it should not open in windows)
Please Note : Many of our forum friends earlier to open the file in windows.
regards
Giri
2009 Aug 24 4:22 PM
Hi,
You can show any doc that is uploaded in DMS using the URL of the doc . the doc will be shown in a container. You can refer the std prog . SAPRDEMOPIVOTINTERFACE.. or some thg like that ( i dont remember the exact name ) .
You need to pass the Class name . object type and object name to find the URL. Check transaction OAER and enter class as SSOFFICEINTEGRATION , type as OT and name as SSOFFICEINTEGRATION.
Hope this helps.
2009 Aug 25 7:58 AM
Hi Mr.Saxena.
Thank you very much for exact understanding of my requirment. It was very helpful.
I just started debuging the code of the program which you sent.
In the mean time - if possible send me the sample code for opening a DMS document ( .doc / .xls ) file in one new sap screen.
regards
Girish
2009 Aug 25 9:04 AM
Are your documents stored in BDS (OAER) or in DMS (BDS is just one of the various layers using DMS). If your documents are stored in an external document management system, you must use DMS.
According to the initial 2 questions, you can achieve it with SDOK_LOIO_FIND_BY_QUERY (for example) to search documents, SDOK_PHIO_LOAD_CONTENT to load a given document, and class CL_GUI_HTML_VIEWER to display it in a SAP GUI screen. You will find examples in the forum (there are also demo programs in your sap system and documentation also).
2009 Aug 25 4:04 PM
Hi,
I dont have any sample code , but you can choose class as 'SSOFFICEINTEGRATION' , obj type as OT and upload your document by giving any name , and copy the code from the standard prog to find the URL , creating custom container on screen and opening that doc using that URL.
2009 Aug 24 9:50 PM
For question 1 : [sap library - DMS APIs|http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/4d26696ab411d3aece0000e82deb58/frameset.htm]
2009 Aug 25 8:45 AM
Hi, In the past I used the function module SKTX_DIRECTORY_FILE_LIST_GET to get the files in a directory. But maybe this FM is not available in your system. Succes.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |