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: 

OTF files from Non-unicode system to Unicode System

Former Member
0 Kudos

Hello:

Currently we store our SAP output as an OTF file on our non-unicode unix server system, to be displayed in PDF when requested from our customers.

I've read note 1349413 which speaks to the termination of the OTF document when the system attemps to convert the OTF to PDF, post Unicode migration.

Has anyone found a workaround for this? Potentially doing some sort of automatic conversion at the Unix level prior to the migration to have it ready for the post unicode migration? Also, is there some way to store the OTF files now, in our non-Unicode system, such that the OTF will work post Unicode migration?

I would appreciate any help or suggestions.

Thanks,

Emily

1 ACCEPTED SOLUTION

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Emily,

unfortunately as far as I know, there is no such conversion tool for this task.

Possible workarounds are described in SAP note 842767.

Best regards,

Nils Buerckel

3 REPLIES 3

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Emily,

unfortunately as far as I know, there is no such conversion tool for this task.

Possible workarounds are described in SAP note 842767.

Best regards,

Nils Buerckel

Former Member
0 Kudos

Hi Emily,

Below is a scenario i worked on between a Non Unicode and Unicode system,

Unicode system calls an RFC on the non unicode system, the RFC on the Non Unicode calls a SMARTFORM gets the OTF data and uses the FM CONVERT_OTF as shown below.


data: l_bin_size TYPE i,
          l_bin_file TYPE xstring.

    CALL FUNCTION 'CONVERT_OTF'
     EXPORTING
       format                      = 'PDF'
     IMPORTING
       bin_filesize                = l_bin_size
       bin_file                    = l_bin_file
      TABLES
        otf                         = ssfcrescl-otfdata[]
        lines                       = li_pdf.

The xstring l_bin_file contains the PDF rendition in Binary format, this is sent back to the Unicode system to be displayed on the user's screen (and stored in the content server too).

Your scenario looks more or less on the above lines, if it differs please update the post accordingly.

Regards,

Chen

0 Kudos

Hi Chen:

Yes, I did end up using this function you had suggested above to store my otf files in a PDF format.

Thank-you and Nils as well as for the OSS note that pointed me this way.

Emily