07-31-2009 9:04 AM
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
07-31-2009 9:35 AM
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
07-31-2009 9:12 AM
Hi,
yes it will work.
It is not OBSOLETE in ECC 6.0
You can check OBSOLETE function modules in table RODIR.
Thanks.
07-31-2009 9:35 AM
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
07-31-2009 10:10 AM
07-31-2009 11:48 AM
Hi Manish,
I had used CONVERT_OTF on ecc 6.0 and it's working try again it will work.
Regards,
Pavan.