cancel
Showing results for 
Search instead for 
Did you mean: 

CONVERT_ABAPSPOOLJOB_2_PDF - Contains no ABAP list Data

former_member451655
Active Participant
0 Kudos

Hi ,

I'm using 'CONVERT_ABAPSPOOLJOB_2_PDF' function module for PDF conversion for sending mails by calling a smartform. I'm passing the spool ID as given below. But the FM is giving an error as "Spool request XXX contains no ABAP list data". Please help.

CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',

c_no(1) TYPE c VALUE ' ',

c_device(4) TYPE c VALUE 'LP01'.

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = gd_spool_nr

no_dialog = c_no

dst_device = c_device

IMPORTING

pdf_bytecount = gd_bytecount

TABLES

pdf = i_tline

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.

Spool id is generated and data is present for the same. I checked it in sp02.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

PLease check the spool number which you are passing have leading zeros in front.

eg: if spool no is 1, it should pass 0000000001.

Also no_dialog,dst_device are optional parameters . So no need to pass that.

Regards,

Nikhil V.Kumar

Edited by: Nikhil V Kumar on Jul 28, 2010 12:21 PM

Answers (1)

Answers (1)

former_member451655
Active Participant
0 Kudos

Hi ,

Thanks for your reply anyway the i could be able to rectify the problem by using CALL FUNCTION 'RSTS_GET_ATTRIBUTES'

before calling the ABAP Spool to PDF , depending on the out put of RSTS_GET_ATTRIBUTES you need to call OTF or ABAPLIST to PDF functions ,

anyway thanks for u r reply once again

thanks ,

Dilum