on 04-11-2011 10:03 PM
Hallo gurus!
I am trying to send one boleto with barcode from my spool (SAPScript document) to a PDF file. The problem is when I create my PDF file, my barcode is not printed correctly. It gets an image and a baloon on the barcode side with the numbers which should interpreted in barcode.
I read about this and some people said that barcodes from the old technology couldn't be interpreted in PDF files. Is this true?
I am using this piece of code:
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
exporting
src_spoolid = ls_itcpp_line-tdspoolid
no_dialog = abap_true
dst_device = 'LOCL'
pdf_destination = 'T'
importing
bin_file = lv_binfilesize
tables
pdf = lt_pdf_data
exceptions
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 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.
if sy-subrc is not initial.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
call function 'GUI_DOWNLOAD'
exporting
filename = 'C:\bancos\testando.pdf'
filetype = 'BIN'
tables
data_tab = lt_pdf_data
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22.
if sy-subrc is not initial.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Could anyone help me with this issue? I will really apreciate that.
Regards,
Diogo Patriota.
Hi,
At the moment it is not possible to create a PDF with a barcode from SAP via sapscript. This is only possible via smartforms and the new barcode technology as per SAP notes #430887 and #645158.
Regards,
Aidan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.