Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert to PDF doc

Former Member
0 Kudos

Hi ,

I am trying to print the barcode in a PO, using SAP script and then converting it into PDF document using

using the SAP Function module ...CONVERT_OTF_2_PDF.

The PO prints fine when I try to print it from me22n. But I have a problem while converting to PDF.The Barcode doesnot print properly.Anyone please help me solve this problem ASAP.

4 REPLIES 4

Former Member
0 Kudos

hi

good

go through this

TYPES: l_ty_tab_objbin TYPE solisti1 OCCURS 0.

data: l_otf TYPE STANDARD TABLE OF itcoo.

DATA: l_objbin TYPE l_ty_tab_objbin.

DATA: l_docs TYPE STANDARD TABLE OF docs.

data: i_line TYPE STANDARD TABLE OF tline.

CALL FUNCTION 'CONVERT_OTF_2_PDF'

  • EXPORTING

  • USE_OTF_MC_CMD = 'X'

  • ARCHIVE_INDEX =

  • IMPORTING

  • BIN_FILESIZE =

TABLES

otf = l_otf

doctab_archive = l_docs

lines = i_line

EXCEPTIONS

ERR_CONV_NOT_POSSIBLE = 1

ERR_OTF_MC_NOENDMARKER = 2

OTHERS = 3

thanks

mrutyun^

0 Kudos

Thanks for you answer..

But I have tried all the several ways like I tried it through the spool and like you said , but it is the same .

Am I making some mistake even before that?

Or I even have a question regarding the Barcode conversion to PDF ...does it work this way or is there any other way?

0 Kudos

Please check the OSS note 645158 it will solve your problem

0 Kudos

No that did not help