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: 

regarding CONVERT_OTF

Former Member
0 Kudos

hi guus,

iam doing uicode checking, in 1 program iam using FM CONVERT_OTF . This FM will work on ecc 6.0 or not... if not what fm i will use to get the functionality of CONVERT_OTF.. BECAUSE IN THIS IAM PASSING TABLE, BIN_FILESIZE , LINE...

I WANT THIS.. SO HELP ME

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Yes this FM will work in ECC6.0. i have created a code using this and it is working fine.

Pasting the code for reference.

TABLES: likp, lips,itcpo.

DATA: pdftab type standard TABLE OF tline,

datab TYPE standard TABLE OF itcoo.

itcpo-tdgetotf = 'X'.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'Z_PRAC'

LANGUAGE = SY-LANGU

OPTIONS = itcpo

// call script using start_form and write_form.

CALL FUNCTION 'END_FORM'

IMPORTING

RESULT = gi_ofc

CALL FUNCTION 'CLOSE_FORM'

TABLES

OTFDATA = datab

EXCEPTIONS

UNOPENED = 1

BAD_PAGEFORMAT_FOR_PRINT = 2

SEND_ERROR = 3

SPOOL_ERROR = 4

CODEPAGE = 5

OTHERS = 6

.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

IMPORTING

BIN_FILESIZE = BINFILE

TABLES

otf = datab

lines = pdftab

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = binfile

filename = 'D:\MYFILE.PDF' //give the address where u want output.

FILETYPE = 'BIN'

tables

data_tab = pdftab

Regards

Rajesh Kumar

4 REPLIES 4

Former Member
0 Kudos

Hi,

yes it will work.

It is not OBSOLETE in ECC 6.0

You can check OBSOLETE function modules in table RODIR.

Thanks.

Former Member
0 Kudos

Hi,

Yes this FM will work in ECC6.0. i have created a code using this and it is working fine.

Pasting the code for reference.

TABLES: likp, lips,itcpo.

DATA: pdftab type standard TABLE OF tline,

datab TYPE standard TABLE OF itcoo.

itcpo-tdgetotf = 'X'.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'Z_PRAC'

LANGUAGE = SY-LANGU

OPTIONS = itcpo

// call script using start_form and write_form.

CALL FUNCTION 'END_FORM'

IMPORTING

RESULT = gi_ofc

CALL FUNCTION 'CLOSE_FORM'

TABLES

OTFDATA = datab

EXCEPTIONS

UNOPENED = 1

BAD_PAGEFORMAT_FOR_PRINT = 2

SEND_ERROR = 3

SPOOL_ERROR = 4

CODEPAGE = 5

OTHERS = 6

.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

IMPORTING

BIN_FILESIZE = BINFILE

TABLES

otf = datab

lines = pdftab

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = binfile

filename = 'D:\MYFILE.PDF' //give the address where u want output.

FILETYPE = 'BIN'

tables

data_tab = pdftab

Regards

Rajesh Kumar

0 Kudos

ok

Edited by: Manish Sharma on Jul 31, 2009 12:46 PM

Former Member
0 Kudos

Hi Manish,

I had used CONVERT_OTF on ecc 6.0 and it's working try again it will work.

Regards,

Pavan.