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 Pdf on report execution

Former Member
0 Likes
794

Hello All,

I want to open the pdf file Whenever I execute the report.

but Without saving that file to my system. that is the main issue.

<b>I donot want to save the file on my system.</b>

eq.

Select * from sflight into table itab_sfight.

Data in the itab_sflight table get displyed in the pdf file when i execute the report.

Points must be rewarded.

Regards,

Aashish Garg

Message was edited by:

aashish garg

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

Hi,

look at the OSS note 317851 and 323736

Regards

Sudheer

5 REPLIES 5
Read only

Former Member
0 Likes
741

Hi ,

There were two alternatives

1.This is possible if you are using ADOBE FORMS

2. Download the pdf file , open it using gui_run or ws_execute on closing the file delete it using again with the same FMS

Regards,

Raghav

Read only

Former Member
0 Likes
742

Hi,

look at the OSS note 317851 and 323736

Regards

Sudheer

Read only

0 Likes
741

Hello All,

Thanks for all valuable information.

I have got the data in the pdf_table table using following FM.

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
      src_spoolid              = mi_rqident
      no_dialog                = space
      dst_device               = mstr_print_parms-pdest
    IMPORTING
      pdf_bytecount            = pdf_fsize
    TABLES
      pdf                      = pdf_table
    EXCEPTIONS
      err_no_abap_spooljob     = 1
      err_no_spooljob          = 2
      err_no_permission        = 3
      err_conv_not_possible    = 4
      err_bad_destdevice       = 5
      user_cancelled           = 6
      err_spoolerror           = 7
      err_temseerror           = 8
      err_btcjob_open_failed   = 9
      err_btcjob_submit_failed = 10
      err_btcjob_close_failed  = 11
      OTHERS                   = 12.

Now my problem is pdf get opens without using Following function in sequence.

CALL FUNCTION 'GUI_DOWNLOAD'

CALL FUNCTION 'SO_PROGNAME_GET_WITH_PATH'

CALL FUNCTION 'WS_EXECUTE'

Because by using these Function pdf file first get save in the local system and then display.

Please provide some alternative to do this.

Regards

Aashish Garg

Read only

0 Likes
741

Hi,

which release do you have.

I think you can user driver-typ PDF1 from 4.7 when you use

SAPGUI for HTML.

Look at OSS.

Can you tell why you don't want to use

CALL FUNCTION 'GUI_DOWNLOAD'

CALL FUNCTION 'SO_PROGNAME_GET_WITH_PATH'

CALL FUNCTION 'WS_EXECUTE'

Perhaps there another way?

Regards, Dieter

Read only

Former Member
0 Likes
741

Hi,

print the output to an Printer which has driver-Typ PDF1.

Regards, Dieter