Application Development and Automation 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: 
Read only

Error in SMARTFORMS while downloading into pdf

Former Member
0 Likes
597

A RAISE statement in the program "SAPLSTXW" raised the exception
 condition "ERR_CONV_NOT_POSSIBLE".                              
 Since the exception was not intercepted by a superior program   
 in the hierarchy, processing was terminated.                                                                                
Short description of exception condition:                                                                                
Conversion not possible/supported                                                                                
For detailed documentation of the exception condition, use      
 Transaction SE37 (Function Library). You can take the called    
 function module from the display of active calls.              

and

OTF end command // missing in OTF data

while runtime

thank you,

Regards,

Jagrut Bharatkumar Shukla

Message was edited by:

Jagrut BaharatKumar Shukla


A RAISE statement in the program "SAPLSTXW" raised the exception
 condition "ERR_CONV_NOT_POSSIBLE".                              
 Since the exception was not intercepted by a superior program   
 in the hierarchy, processing was terminated.                                                                                
Short description of exception condition:                                                                                
Conversion not possible/supported                                                                                
For detailed documentation of the exception condition, use      
 Transaction SE37 (Function Library). You can take the called    
 function module from the display of active calls.              

and

OTF end command // missing in OTF data

while runtime

thank you,

Regards,

Jagrut Bharatkumar Shukla

Message was edited by:

Jagrut BaharatKumar Shukla

1 REPLY 1
Read only

Former Member
0 Likes
449

Hi,

Can you please try using function module 'CONVERT_OTF' which will convert smartform into pdf format.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

max_linewidth = 132

IMPORTING

bin_filesize = ws_bin_filesize

TABLES

otf = i_otf

lines = i_pdf_tab

EXCEPTIONS

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

err_bad_otf = 4

OTHERS = 5.

IF sy-subrc <> c_0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.