Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

reading a document from application server / opening in SAP session

Former Member
0 Likes
1,114

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,013

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.

Read only

0 Likes
1,013

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

Read only

0 Likes
1,013

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).

Read only

0 Likes
1,013

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.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,013

For question 1 : [sap library - DMS APIs|http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/4d26696ab411d3aece0000e82deb58/frameset.htm]

Read only

Former Member
0 Likes
1,013

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.