Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error in PDF Conversion

Hi..am converting spool output to pdf using the FM 'CONVERT_ABAPSPOOLJOB_2_PDF'. But the resultant output table contains just scrap.

My internal output table contains 10 columns and 7 rows.

Kindly let me know a solution for this.

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = i_tsp01-rqident

no_dialog = ' '

dst_device = c_device

pdf_destination = ' '

IMPORTING

pdf_bytecount = v_size

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.

Useful answers will be rewarded.

Regards

Tags:
Former Member
Former Member replied

>But the resultant output table contains just scrap.

That data will be in binary format, you can't understand that. PDF reader can read/understand those instructions. what ever you are doing is correct. the part which you showed.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question