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: 

smartform to Mail PDF file

0 Kudos

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.

2 REPLIES 2

bpawanchand
Active Contributor
0 Kudos

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

0 Kudos

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.