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

Data loss while converting spool to PDF in background

Former Member
0 Likes
466

I am using CONVERT_ABAPSPOOLJOB_2_PDF to convert spool information to PDF.The bytecount in background is 1000 less than what i get by running the program forcibly in foregroud.I am very confused,any suggestions

2 REPLIES 2
Read only

sridhar_k1
Active Contributor
0 Likes
433

When you run the program in BG, are you writing the pdf file to appserver? and in FG, are you writing the file to your PC?

There will be small difference in bytcount if your appserver is unix and pc is windows.

Regards

Sridhar

Read only

0 Likes
433

i am doing this...

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = l_spool_nr1

no_dialog = 'X'

dst_device = 'LOCL'

IMPORTING

pdf_bytecount = l_bytecount

LIST_PAGECOUNT = l_page1

TABLES

pdf = itab_pdf_output

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 l_bytecount stores the total number of bytes in the internal table itab_pdf_output. The value of this differs when i run in foreground nad background seperately