ā2010 Nov 08 4:26 PM
Hello,
with function module convert_otf we create a PDF from sapscript
with function module gui_download we are able to save this PDF-document on the file system.
But we don“t want to save it, we just want to open it directly in ADOBE reader. Is this possible with some ABAP function modules?
If yes, how?
thanks a lot.
Kind regards
Manfred
ā2010 Nov 08 4:53 PM
ā2010 Nov 08 4:53 PM
ā2010 Nov 08 4:55 PM
Dear Manni,
Follow below steps,
Set output parameters and open the spool job using FM FP_JOB_OPEN like below,
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
Determine the name of the generated function module using below FM,
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = p_tnapr_sform
IMPORTING
e_funcname = p_func_module_name.
Call the generated functional module like below,
CALL FUNCTION ls_function
EXPORTING
/1bcdwb/docparams = fp_docparams
......
Close the spool job using FM FP_JOB_CLOSE
CALL FUNCTION 'FP_JOB_CLOSE'
Thanks.
ā2010 Nov 09 1:51 AM
option 1,
save in a temp location like sapworkdir and display it using demo code SAP_PDF_VIEWER_DEMO. then while coming out from the program, delete the temp file.
option 2, store it in app server and display it using webdynpro.