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 end command // missing in otf data

Former Member
0 Kudos

Hi,

I am able to see the smartform output in pdf format in development server.

But i am getting error as otf end command // missing in otf data in production server.

I used the FM CONVERT_OTF_2_PDF for conversion.

I had searched in forum and even google also,but not found the exact solution.

Please let me know whether any configuration is required to set for this or else its just coding issue.



    CALL FUNCTION 'CONVERT_OTF_2_PDF'
      IMPORTING
        BIN_FILESIZE           = V_BIN_FILESIZE
      TABLES
        OTF                    = ST_JOB_OUTPUT_INFO-OTFDATA
        DOCTAB_ARCHIVE         = IT_DOCS
        LINES                  = IT_LINES
      EXCEPTIONS
        ERR_CONV_NOT_POSSIBLE  = 1
        ERR_OTF_MC_NOENDMARKER = 2
        OTHERS                 = 3.

Thankls,

Sri

4 REPLIES 4

Former Member
0 Kudos

Hey

There should not be any issue in code as it is working fine in Dev server with same data , it should work fine in PRD .

I think it has to do with some configuration. Are you mailing it , then see is scott have output file format set to PDF.

Regards,

Uma Dave

0 Kudos

i had checked in SCOT.it is set to PDF format only.

Former Member
0 Kudos

HI Sri,

Please refer to report RSTXPDFT2. This will help you .

Look at this thread also

Regards,

Pravin

Edited by: pravin s. on Jun 28, 2010 8:57 AM

Former Member
0 Kudos

I have come across the same error message when using FM

  CONVERT_OTF

I found out that the reason the error occurred was because I had cleared the tables before calling the function module -

     clear: t_otf[], t_pdf_tab[].

    call function 'CONVERT_OTF'
    exporting
      format                = 'PDF'
      max_linewidth         = 255
    importing
      bin_filesize          = w_bin_filesize
    tables
      otf                   = t_otf
      lines                 = t_pdf_tab
    exceptions
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      others                = 4.

Solution was to NOT clear the tables before!!

Not sure if it is relevant to the problem you had but it might be useful to others.

Jay