2005 Sep 12 2:40 PM
Hi ,
I am using function module CONVERT_ABAPSPOOLJOB_2_PDF. I have successfully created a PDF file . Now i want automatically this PDF file to be open.
My requirement is On the click of push button,
1. system generates some spool. - I have done this.
2. Convert this to PDF. - Done this too.
3. Launch a acrobat to open this PDF. ???
Please help me to acheive the point 3.
Thank you
Best Regards
Ankush
Hi ,
I am using function module CONVERT_ABAPSPOOLJOB_2_PDF. I have successfully created a PDF file . Now i want automatically this PDF file to be open.
My requirement is On the click of push button,
1. system generates some spool. - I have done this.
2. Convert this to PDF. - Done this too.
3. Launch a acrobat to open this PDF. ???
Please help me to acheive the point 3.
Thank you
Best Regards
Ankush
2005 Sep 12 2:45 PM
If your file has been saved to the frontend, use the following code.....
CALL METHOD CL_GUI_FRONTEND_SERVICES->EXECUTE
EXPORTING
DOCUMENT = <the_file_path_HERE>
MAXIMIZED = 'X'
SYNCHRONOUS = 'X'
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
BAD_PARAMETER = 3
FILE_NOT_FOUND = 4
PATH_NOT_FOUND = 5
FILE_EXTENSION_UNKNOWN = 6
ERROR_EXECUTE_FAILED = 7
OTHERS = 8.
Regards,
RIch Heilman
Message was edited by: Rich Heilman
2005 Sep 12 2:52 PM
or use: interface I_OI_DOCUMENT_VIEWER
(sample: SAPRDEMOVIEWING)
Andreas
2005 Sep 12 3:05 PM
Hi
Between step 2 & 3 save document to Frontend PC.
Then you can use the method mentioned by Rich.
Cheers
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |