Application Development 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: 

Opening pdf,ppt,email documents?

abdul_hakim
Active Contributor
0 Kudos
267

Hi Friends,

I need to open these documents ppt,pdf,email from my program when when user press view button.

How to open these documents from program.Is there any FM available for this?

Abdul

1 ACCEPTED SOLUTION

manfred_oster
Explorer
0 Kudos
164

Hi!

Try class 'C_OI_DOCUMENT_VIEWER'. There is also an example program 'SAPRDEMOVIEWING'. This should cover at least pdf and ppt (I didn't try email documents).

Best regards, Manfred

7 REPLIES 7

manfred_oster
Explorer
0 Kudos
165

Hi!

Try class 'C_OI_DOCUMENT_VIEWER'. There is also an example program 'SAPRDEMOVIEWING'. This should cover at least pdf and ppt (I didn't try email documents).

Best regards, Manfred

0 Kudos
164

Hi Manfred.

I am able to open only URLS from this program.How to open,pdf or ppt..

Abdul

0 Kudos
164

Hello Adbul,

where are the documents stored(file server,KM,Content Server)? If the frontend has access to the documents you can use CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE.

Regards

Frank

0 Kudos
164

Hi Frank,

Documents are stored in the hard drives(s:\,c:\ etc).

Can you give an example for opening pdf,ppt,email..

Thanks,

Abdul

0 Kudos
164

CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE

EXPORTING

DOCUMENT = 'S:\temp\test.ppt'

OPERATION = 'OPEN'.

0 Kudos
164

Thanks Frank.

Problem solved..

Abdul

0 Kudos
164

Hi Abdul,

It's true. You have to call the method with an URL.

Local files on the presentation server can be addressed by URL "FILE://" followed by the full pathname of the document. I am not sure which kind of path separators to use ("/" or "\" on a Windows systems). Obligatory is "FILE://" ("FILE:
" doesn't work!).

Best regards, Manfred