on 09-29-2005 11:43 AM
Hello friends,
i have written a program that sends smartforms via email. It works properly. But the smartforms will be send as an attachment as a pdf file.
How can i switch from attachment mode to a mode that sends the smartform directly as mail, without attachment?
<<help>>
daniel
Hi
When you print the smartform insted of PRINT as device, you should use MAIL.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
Which FM are u using for sending a mail?
If you are using 'SO_NEW_DOCUMENT_ATT_SEND_API1',
FREE : i_objbin.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = i_objpack[]
object_header = i_objhead[]
contents_bin = i_objbin[]
contents_txt = i_objtxt[]
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = i_reclist
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.
Regards,
Anjali
Hi Anjali, i'm send emails by using the smartform build in functionality. Have a look at the following:
CALL FUNCTION lv_formname
__EXPORTING
*___ARCHIVE_INDEX______________=
*___ARCHIVE_INDEX_TAB__________=
*___ARCHIVE_PARAMETERS_________=
____CONTROL_PARAMETERS_________=__lv_cont_par
____MAIL_APPL_OBJ______________=__lv_mail_app_obj
____MAIL_RECIPIENT_____________=__vlv_mail_rec_obj
____MAIL_SENDER________________=__lv_mail_sen_obj
____OUTPUT_OPTIONS_____________=__lv_output
____USER_SETTINGS______________=__'_'
____T_INFOTAB_FORUSR___________=__P_INFOTAB_FORUSR
*___USER_SETTINGS______________=_'X'
*_IMPORTING
*___DOCUMENT_OUTPUT_INFO_______=
*___JOB_OUTPUT_INFO____________=
*___JOB_OUTPUT_OPTIONS_________=
*_EXCEPTIONS
*___FORMATTING_ERROR___________=_1
*___INTERNAL_ERROR_____________=_2
*___SEND_ERROR_________________=_3
*___USER_CANCELED______________=_4
*___OTHERS__________________= 5
____.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
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.