on 12-05-2008 3:25 AM
Hi experts,
A very good morning.
I am dealing with an object, in which I have to send a mail to the User.
The mail should contain the Data that has posted to the Smartform.
But I have to the send the smartform as it is, but not as a PDF attachement.
Please clarify the following questions:
1. Where I have to specify the E-mail parameters in the Tcode smartforms.
2. How to send it to the Web user id, after I populate the Smart form with the data.
3. How to track the status of the mail, whether it has successfullt delivered or not.
I am new to Smartforms, and I have only the basic knowleg\dge on them.
Please guide me in this regard.
( if possible, with an example).
Thank you in advance.
Best regards,
Naveen G
Hi Naveen,
You cannot send smartform as it is coz its in OTF formate,you have to change it to PDF formate.
After the FM 'SSF_FUNCTION_MODULE_NAME' and fm_name,
Change smartform preview formate(OTF) to PDF . call FM.
*---Function module to convert OTF data to PDF data format
call function 'CONVERT_OTF'
exporting
format = 'PDF'
max_linewidth = 132
importing
bin_filesize = l_v_pdf_size "l_v_pdf_size type i,
tables
otf = l_it_otf_data "l_it_otf_data type standard table of itcoo initial size 0,
lines = l_it_pdf_data. "l_it_pdf_data type standard table of tline,
then
*---Function module to chnage width of PDF file to 255
call function 'SX_TABLE_LINE_WIDTH_CHANGE'
exporting
line_width_dst = '255'
tables
content_in = l_it_pdf_data[]
content_out = l_it_pdf[]
exceptions
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
others = 4.
and finelly.
*---Function module to send mail in attachment formate.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
*---Function module to send mail in without attachment.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = l_wa_doc_chng
put_in_outbox = c_check
commit_work = c_check
tables
packing_list = l_it_objpack
object_header = l_wa_objhead
contents_bin = l_it_pdf
receivers = l_it_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
Thanks.
Mona.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mona,
I am very thankful for your resolution.
But my requirement is that it has to be sent in HTML format, just like a normal mail(i.e like the normal mails we send from our mail-boxes like yahoo,gmail etc..).
But not like a attachment.
Please let me know how to change the OTF format to HTML format and to send it like a normal mail.
Thank you in advance.
Regards,
Naveen Kumar G
Hi,
For sending mail, u need to configure settings first in NACE, nothing to do in smartform.
In t-code NACE, while defining output types we need to select the Transmission medium as "External Send" instead of "Print output". This will send mail automatically when the output type selected. Anyhow, this settings will be done by the Functional consultant.
Technically you can to use the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' in your print program for sending mail with attachment when the External send output type is selected.
Hi Team,
Please guide me where to configure the E-mail parameteres, while creating the Smartform.
That is for which part of the smartform ( like windows, attributes etc ... ) I need to give the E-mail parameters...?
Also tell me what are the basic configurations for a smartform to be sent as a e-mail ( not as a PDF attachment).
Thanks in advance.
Regards,
Naveen G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi check this code tutorial wiki.
mail id will be maintained in table adr6-----> pass adrnr(address no ) or pernr (personal no) and get the mail id.......
to retrive the values of smartform....
c_par-no_dialog = 'X'.
c_par-preview = space.
c_par-getotf = 'X'.
out_opt-tddest = 'EPSON-COMMON'.
CALL FUNCTION fm_name
EXPORTING
control_parameters = c_par
output_options = out_opt
user_settings = space
vbeln = it_vbeln-vbeln
pdf = r2
rbiclear = c3
IMPORTING
job_output_info = opt
einv = einv.
i_otf = opt-otfdata.----->smart forms value(o/p of smartform)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.