Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

send mail through dynamic actions

Former Member
0 Kudos
147

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

5 REPLIES 5

arseni_gallardo
Active Participant
0 Kudos
106

If your code is executed but you never receive the email you may need a COMMIT at the end of your code,

Former Member
0 Kudos
106

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

0 Kudos
106

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

0 Kudos
106

Please explain what you mean with "dynamic actions", even if just for me...

Thomas

0 Kudos
106

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