‎2008 Mar 25 2:51 PM
Hi all,
when a new material is created, a mail is sent to the receivers in a ztable (format of the mail address name@society.com).
All is working fine except for one user.
When this user creates a new material, she sends an e-mail with her e-mail address as sender to:
the correct receivers defined in the ztable
herself but she's not in the ztable and in the SU01 she doesn't have the e-mail address defined?
What can it be?
<REMOVED BY MODERATOR>
Thanks
Edited by: Alvaro Tejada Galindo on Mar 25, 2008 11:03 AM
‎2008 Mar 25 3:01 PM
In her user id, system -> user profile -> own data -> address -> check there is an email id for her. Otherwise you need to give her id.
Pranav
‎2008 Mar 25 3:02 PM
hi
Do you mean to say she sends the mail to herself and mail does not deliver...
SU01 only gives the Sender Mail ID when external mail is sent..
explain this so that I can try to answer
‎2008 Mar 25 3:02 PM
Hi Anna,
I guess you are getting the user's id from the Ztable basing upon the sy-uname. If there is no mail id for that user i.e not defined in SU01. then for which mail id the mail should go?
we need to maintain the mail id in the ztable or we need to update communication details of the user.
If possible send me the logic which you are using send the mail..
Regards,
Sagar
‎2008 Mar 25 3:12 PM
If a new material has been created the program select ALL the email addresses in the ZMM_DESTMAIL (without using sy-uname or something like that) and send the email to all of them.
The user I'm talking about doesn't have to receive the mail.
She's not in the table ZMM_DESTMAIL, she hasn't the email address defined in SU01.
When she creates a new material with MM01, in the user exit with this function
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_type = 'RAW'
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
tables
object_content = objcont
receivers = reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.
the emails are prepared and the SCOT Job send them every 10 minutes.
The emails generated are for the correct receivers of the ZMM_DESTMAIL and the USER who created the material (BUT SHE HASN'T TO RECEIVE THE MAIL)
Why does she receive the mail? why does she send the mail to herself? and above all where can be stored her email address?
Thanks for your aswers