cancel
Showing results for 
Search instead for 
Did you mean: 

Error while converting OTF to PDF

Former Member
0 Kudos

Hi All,

I am getting an error when i am trying to convert smartform to PDF.

the error is :

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_

not caught in

procedure "USER_COMMAND" "(FORM)", nor was it propagated b

Since the caller of the procedure could not have anticipat

exception would occur, the current program is terminated.

The reason for the exception is:

The call to the function module "/1BCDWB/SF00001293" is in

The function module interface allows you to specify only

fields of a particular type under "JOB_OUTPUT_OPTIONS".

The field "T_OTFDATA" specified here is a different

field type

please tell me how to solve this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Go through link given below :

With Regards

Nikunj Shah

Answers (5)

Answers (5)

Former Member
0 Kudos

Hai ,

you have to declare that field 'T_OTFDATA' as data : output_data TYPE ssfcrescl if u are using the FM

'CONVERT_OTF' or else use the datatype of table parameter 'OTF' in the FM that u r using.

With Regards,

R.dhineshraj.

Former Member
0 Kudos

Hi,

I have created the Smartform to be send in pdf format to external email,where OTF is converted into PDF

following is the SDN link for the same

https://wiki.sdn.sap.com/wiki/display/ABAP/SmartformSendvia+Email

Hope this will help you

Thanks

Jatender Narang

Former Member
0 Kudos

Hi,

I was able to convert to PDF but not able to send a mail.

i am getting an error in 'SO_DOCUMENT_SEND_API1'

The reason for the exception is:

In the function "SO_NEW_DOCUMENT_ATT_SEND_API1", the STRUCTURE parameter

"CONTENTS_HEX" is typed in such a way

that only actual parameters are allowed, which are compatible in Unicode

with respect to the fragment view. However, the specified actual

parameter "I_OBJBIN" has an incompatible fragment view.

please let me know on this.

Edited by: Poonam Naik on Mar 18, 2009 10:19 AM

Former Member
0 Kudos

Hey Poonam,

check out

Mayb this helps you to accomplish your tasks.

Cheers

Edited by: Nayan Kurup on Mar 18, 2009 3:35 PM

Former Member
0 Kudos

Hi,

check the below link it is use ful for u,

Regards,

Madhu

Former Member
0 Kudos

Hi,

You have spool number for the smartform output?

If you have the spool number we have another procedure to convert the otf to pdf

Thanks

Ramakrishna Pathi

Former Member
0 Kudos

Hi Poonam,

Specify the type of T_OTFDATA that you pass to the function module (Smartform Calling Function Module ) of type ssfcrescl i.e

data : T_OTFDATA TYPE ssfcrescl.

Do let me know how it goes.

Thanks

Nayan

Former Member
0 Kudos

yes i have dedfined as you have mentioned.

now ia m getting this error " RAISE ERR_CONV_NOT_POSSIBLE. "unable to convert to PDF"

Former Member
0 Kudos

Hi,

I will tell you the steps to follow. Check if you have done it in the same way.

1. Call the FM for smartforms. The imoirting parameters should contain t_otf_from_fm of the TYPE ssfcrescl ( you have used a diff declaration i guess).

2. Move this work are into an internal table say IT_1 of type itcoo .

3. Call the FM " CONVERT_OTF ", by passing the parameters as

format = 'PDF'

max_linewidth = 132

IMPORTING

bin_filesize = w_bin_filesize

TABLES

otf = t_otf

lines = t_pdf_tab

4. You could then call the method CALL METHOD cl_gui_frontend_services=>file_save_dialog to save this PDF to your desktop

Let me know if you have followed this.

Cheers