‎2007 Jan 16 2:33 PM
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
‎2007 Jan 16 2:49 PM
‎2007 Jan 16 2:41 PM
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
‎2007 Jan 16 2:49 PM
‎2007 Jan 16 3:29 PM
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
‎2007 Jan 16 3:57 PM
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
‎2007 Jan 16 2:54 PM
Hi,
print the output to an Printer which has driver-Typ PDF1.
Regards, Dieter