Skip to Content
avatar image
Former Member

smartform to Mail PDF file

Hi Guys,

I have created smartform and then sent it to pdf format on mail. It is showing me error on opening PDF file " Contact your administrator". Data is not completely coming on this pdf file. it it only showing me header part.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 19, 2017 at 08:36 AM

    Hi,

    Make sure the client Application is installed on your system. Secondly, If try to debug and check why the data is not completely moved to Smart form. Finally use the below code to convert OTF to PDF

       CALL FUNCTION 'CONVERT_OTF'
     EXPORTING
     format = lc_pdf "'PDF'
     IMPORTING
     bin_filesize = w_bin_filesize
     TABLES
     otf = lt_otf
     lines = lt_pdf_tab
     EXCEPTIONS
     err_max_linewidth = 1
     err_format = 2
     err_conv_not_possible = 3
     err_bad_otf = 4
     OTHERS = 5.

    Thanks, Pavan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 11, 2017 at 05:03 AM

    I have tried this but it is not working. well i found the solution of this problem. so i will share that.

    Thank you Sir for you kind help.

    Add comment
    10|10000 characters needed characters exceeded