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

OPEN ADOBE READER from ABAP

Former Member
0 Likes
1,385

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

1 ACCEPTED SOLUTION
Read only

MrWhan
Participant
0 Likes
780

Take a look at FM SSFCOMP_PDF_PREVIEW.

3 REPLIES 3
Read only

MrWhan
Participant
0 Likes
781

Take a look at FM SSFCOMP_PDF_PREVIEW.

Read only

awin_prabhu
Active Contributor
0 Likes
780

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.

Read only

Former Member
0 Likes
780

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.