2011 Aug 29 11:28 AM
Hello Friends,
I have a query in sending mail through dynamics actions . How we can send an mail through dynamics actions .
Actually i call a subroutine in dynamics actions . subroutine is called but mail not send. How could i acheive this
solution.
Regards,
Anish
2011 Aug 29 11:38 AM
If your code is executed but you never receive the email you may need a COMMIT at the end of your code,
2011 Aug 29 11:41 AM
HI,
When your sub routine is being called successfully, then there could be error in calling the Mail sending function module or in E-mail configuration done by your basis team.
- Check sy-subrc after the Mail sending function module call. If it is not equal to "0" problem is in passing correct data to FM.
- If sy-subrc is equal to "0" then go to SCOT transaction and check whether the email you have sent is appearing in that output messages list or not. If it is appearing then contact your basis guys.
- If sy-subrc is equal to "0" and message is not appearing SCOT transaction, then check whether you are submitting RSCONN01 program after mail sending FM call or not.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.
SUBMIT rsconn01 AND RETURN.
Thanks,
Sai Ramesh
2011 Aug 29 11:55 AM
Hi Ramesh,
When we run subroutine without calling in dynamics actions , then mail will be trigger. Is there any settings required in dynamics actions for sending an mail.
Regards,
Anish
2011 Aug 29 3:44 PM
Please explain what you mean with "dynamic actions", even if just for me...
Thomas
2011 Aug 29 11:40 PM
Can you please explain the words 'dynamic actions'.
by chance if your code is working fine and emails are not going to user inbox then can you check in sost
If emails are coming in SOST then you have run one job.
Thanks
Subhankar