2006 Jan 09 8:04 AM
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
2006 Jan 09 8:32 AM
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
2006 Jan 09 8:32 AM
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
2006 Jan 09 8:45 AM
Hi Manfred.
I am able to open only URLS from this program.How to open,pdf or ppt..
Abdul
2006 Jan 09 9:14 AM
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
2006 Jan 09 9:19 AM
Hi Frank,
Documents are stored in the hard drives(s:\,c:\ etc).
Can you give an example for opening pdf,ppt,email..
Thanks,
Abdul
2006 Jan 09 9:22 AM
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
DOCUMENT = 'S:\temp\test.ppt'
OPERATION = 'OPEN'.
2006 Jan 09 9:32 AM
2006 Jan 09 9:37 AM
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