Application Development and Automation 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: 
Read only

Query in Function Module !!!!

Former Member
0 Likes
300

Hi all,

Can anyone please tell me as to why we use the Function Module 'CONVERT_OTF'.

I use the function Module 'CONVERT_OTF' as follows:

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

MAX_LINEWIDTH = 132

IMPORTING

BIN_FILESIZE = V_LEN_IN

TABLES

OTF = I_OTF

LINES = I_TLINE

EXCEPTIONS

ERR_MAX_LINEWIDTH = 1

ERR_FORMAT = 2

ERR_CONV_NOT_POSSIBLE = 3

OTHERS = 4.

But I get the contents of the table I_OTF in some Language like Japanese.

Can anyuone please tell me how to resolve the above issue please.

Kindly reply immediately as this is bit urgent.

Regards,

Vijay

1 REPLY 1
Read only

Former Member
0 Likes
283

Hi,

Plz try the following.

CALL FUNCTION "CONVERT_OTF"

EXPORTING

FORMAT = "PDF"

IMPORTING

BIN_FILESIZE = FILE_LEN

TABLES

OTF = OTFDATA

LINES = PDFDATA

EXCEPTIONS

ERR_MAX_LINEWIDTH = 1

ERR_FORMAT = 2

ERR_CONV_NOT_POSSIBLE = 3

OTHERS = 4.

The IMPORTING parameter BIN_FILESIZE should be Number of bytes in LINES.

TABLES parameter OTFDATA must be of type ITCOO.

PDFDATA must be of type TLINE.

EXPORTING parameter FORMAT is the Target Format.

Reward if Helpful.