on 07-28-2010 5:36 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.