Skip to Content
avatar image
Former Member

otf end command // missing in otf data

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 28, 2010 at 06:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 28, 2010 at 06:53 AM

    HI Sri,

    Please refer to report RSTXPDFT2. This will help you .

    Look at this thread also SF 2 PDF - CONVERT_OTF_2_PDF is returning subrc 1(err_conv_not_possible)

    Regards,

    Pravin

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 22, 2012 at 01:03 PM

    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

    Add comment
    10|10000 characters needed characters exceeded