on 03-18-2009 4:50 AM
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.