Skip to Content
0
Former Member
Nov 07, 2008 at 02:55 AM

Spool number

13 Views

I am have code this and running in the background..

I get

write : itab-del.

write : SY-SPONO.

w_spono1 = SY-SPONO.

call function 'CONVERT_ABAPSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = w_spono1

no_dialog = c_no

dst_device = c_device

IMPORTING

pdf_bytecount = gd_bytecount

TABLES

pdf = it_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.

and do email later in the program

I am doing in the back ground and I am able to get the email with the attachement with with but its not opening but i default the program to some spool number then it comes out well..

Any idea how should I do this.