cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Unable to interpret "*594" as a number." with CONVERT_OTF

Former Member
0 Kudos

Hi folks,

Any ideas on why I might be getting this error?

CONVT_NO_NUMBER: Unable to interpret "*594" as a number.

I'm converting a SAP script OTF to PDF using function module CONVERT_OTF.

I can't figure it out.

Thanks,

Clint

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Clint,

Thanks a ton for the solution..

It really helped my many hours..

Raveesh

Former Member
0 Kudos

Here is the solution. (SAP Note 1042818 pointed me in the right direction...even though I'm not working with CRM.)

CONVERT_OTF export parameter BIN_FILESIZE has no type and is pass by value. You must code this parameter into your importing parameters in the calling program even if you don't use it. The receiving variable should be of type integer.

DATA: BIN_FILESIZE TYPE I.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

IMPORTING

BIN_FILESIZE = BIN_FILESIZE

TABLES

otf = otf

lines = it_pdfdata

EXCEPTIONS

ERR_MAX_LINEWIDTH = 1

ERR_FORMAT = 2

ERR_CONV_NOT_POSSIBLE = 3

ERR_BAD_OTF = 4

OTHERS = 5.

I guess I figured I didn't need bin_filesize, so I didn't include in my original call...

Former Member
0 Kudos

Thanks for taking the time to answer this Clint, I had the same issue and was losing the will to live.