Skip to Content
0
Former Member
May 08, 2010 at 12:00 PM

OTF to PDF conversion using the FM 'CONVERT_OTF'

196 Views

Hi,

we are creating the OTF data using a smartform.

In process of converting the OTF data to PDF, we are using the FM CONVERT_OTF. The system is upgraded from 4.6C to ECC6.0. The pdf is visible withou any errors from the portal end in 4.6C but when we try to execute the same in ECC system we are getting the below error in popup

The pdf should begin with '%PDF'

In debug mode, we can see the pdf itab is starting with %PDF in 4.6C but this is not happening in ECC6.0.

On further investegation we noticed that the FM SYSTEM_CODEPAGE is returning 0 (EBCDIC) in 4.6C and returning 4(UNICODE) in ECC6 system.

we tried the other FMs like CONVERT_OTF_2_PDF etc, but did not help.

If anyone has encountered a similar issue, pls respond.

thanks,

teja.