cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in converting smart form into PDF

Former Member
0 Kudos

HI Experts,

I am using a Function Module CONVERT_OTF for converting smart form into pdf file for send it to with attachment.

But i got a error when i am using that FM.

Runtime Errors CONVT_NO_NUMBER

unable to interpret *292 as a no.

Is that because my file size too large about 13 pages of PDF?

and when i run it for other smart forms which have 2 or 3 pages of PDF, its working perfectly.

can anyone tell what is problem with that FM?

Thanks

Shakun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try using FM CONVERT_OTF_2_PDF

brad_bohn
Active Contributor
0 Kudos

Try using FM CONVERT_OTF_2_PDF

Surely, you realize that CONVERT_OTF_2_PDF calls CONVERT_OTF?

To the poster, the OTF convert functions are good for 99 pages in the foreground, so it's not a size issue with 13 pages. Where is that *292 vale coming from? It sounds like you haven't used a proper integer definition for the size?

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for replying me

Former Member
0 Kudos

hi ,

i tried this program with my system . i t is working fine for more than 15 pages , just try it. u have to convert pdf from 132 to 255.

<<Copy-paste from http://www.sap4.com/index.php?title=Envio_smartform_por_mail>>;

Moderator Message: Second and Final Warning. DO NOT copy-paste

Edited by: kishan P on Nov 18, 2010 11:51 AM

Former Member
0 Kudos

Hi,

I had the similar issue and after analysis I have that this is the issue by not passing the IMPORTING parameter of the Function Module "BIN_FILESIZE". Please try to pass some variable to this paramter and then this will be completely rectified.



DATA ; v_filesize     TYPE i.

*--Convert OTF data to PDF data
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
    IMPORTING
      bin_filesize          = v_filesize
    TABLES
      otf                   = it_otfdata
      lines                 = it_pdfdata
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      OTHERS                = 5.

Please verify whether this reolves the problem for you.

Regards,

SRinivas