How to send mail to distribution list and another table list
Hi
I am facing a problem. I need to send mail to the user who is creating the SO/PO and a distribution list.
Problem is only one thing can be used at the same time. ie either Distribution list or list from internal table.
How can we use both in 1 function module. Like it should call the internal table and then the distribution list for sending the mail .
Regards,
Varun
Hi,
Refer to following link,
http://www.sap-img.com/abap/make-e-mail-sender-of-po-the-po-creators-name.htm
http://www.sap-img.com/fu016.htm
Reward pts. if helpfull.
Regards,
Dhan
Similar Messages
-
How to send mail to distribution list ?
Hi Everybody,
Pls let me know how to send mail to distributed list???
Thanks & Regards,
raju<b></b>Hi ,
Use Function Module 'SO_NEW_DOCUMENT_SEND_API1'.
U need to pass Distribution list to Receiver and 'C' to receiver type refer the below code for clarification.
Determine the Distribution List.
gv_rec_list-receiver = gv_distribution.
gv_rec_list-rec_type = 'C'.
APPEND gv_rec_list.
Check if Distribution List is deleted.
SELECT SINGLE objnam
FROM soid
INTO lc_objnam
WHERE objnam = gv_rec_list AND
dlitp = lc_dli.
IF sy-subrc = 0.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = gv_doc_data
document_type = 'RAW'
put_in_outbox = 'X'
TABLES
object_content = gv_obj_cont
receivers = gv_rec_list
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4.
CASE sy-subrc.
WHEN '1'.
message i001(as) with 'TOO MANY RECEIVERS'.
EXIT.
WHEN '2'.
message i001(as) with 'DOCUMENT NOT SENT'.
EXIT.
WHEN '3'.
message i001(as) with 'DOCUMENT TYPE DOES NOT EXIST'.
EXIT.
WHEN '4'.
message i001(as) with 'OPERATION NO AUTHORIZATION'.
EXIT.
ENDCASE.
Hope this might have helped you.
Thanks,
Prashanth -
Monitoring of task - send mail to Distribution list
Dear team,
I have a dynamic action:
01 06 100 P **EXPIRY OF PROBATION**
01 06 102 P T001P-MOLGA='99'/X
01 06 105 M Z0001
Pls check for me. So, do i fill the field name in field name columm?
I created feature Z0001
0001
0002
0006
0019
DISTR ZDL0001
IDTXT Z_Expiry_of_probation
But it does not work. And futher, i don't know how is the result in Distribution list. Could you share me the screen shot?
Thank you very much
QuanglvHelp me plssssssssssssssssss
Edited by: Quang Le Vinh on Sep 21, 2009 10:35 AM -
Sending mail to distribution list
HI guys,
Please look at the coding below..
l_wa_recieve-receiver = '[email protected]'. " this is the distribution list id "with number of mail ids inside it
l_wa_recieve-rec_type = 'C'. "shared dis list
APPEND l_wa_recieve TO l_it_recieve.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = "ERROR'
document_type = 'DLI'
put_in_outbox = c_x
commit_work = c_x
TABLES
object_content = l_it_content "this table contains the body of email
receivers = l_it_recieve " this is above
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.
Can you just tell me whether it works fine.. And if it is correct how much time will it take to get email in my respective email address..
I have run this FM by just giving my mail id (not distribution list just giving doctype = 'RAW instead of DLI)
The FM ran sucessfully without any errors , But I didnot receive any mail in my mail Inbox..
Can you please help me how to sort it out getting mail in less time..
Points will be rewarded
regards,
nazeerHI prabhu,
there is no numbmer in the waitinh list but number 5 is in the error column in SCOT..
Can you please tell me what could be the reason..
regards,
nazeer -
How to send spool to Distribution List using JOB_CLOSE
Please help on sending Distribution list when job defined using JOB_OPEN, JOB_Submit and JOB_CLOSE
Thanks.Hi, this is code:
DATA WA_RECIPIENT LIKE swotobjid.
CONSTANTS: gc_objname TYPE oj_name VALUE 'RECIPIENT'.
PERFORM get_distribucion_list USING 'NAME_LIST' " name of List of distribution
CHANGING WA_RECIPIENT.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_jobcount
jobname = l_jobname
strtimmed = 'X'
recipient_obj = wa_recipient
IMPORTING
job_was_released = l_libero
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
FORM get_distribucion_list USING p_objnam TYPE so_obj_nam
CHANGING p_wa_recipient LIKE swotobjid.
DATA: it_tab LIKE STANDARD TABLE OF soxdl
INITIAL SIZE 0 WITH HEADER LINE.
CHECK NOT p_objnam IS INITIAL.
CALL FUNCTION 'SO_DLI_LIST_READ_XDL'
EXPORTING
dli_generic_name = p_objnam
public = 'X'
subscript = 'X'
TABLES
dli_display_tab = it_tab
EXCEPTIONS
communication_failure = 1
dl_list_no_entries = 2
owner_not_exist = 3
system_failure = 4
x_error = 5
parameter_error = 6
OTHERS = 7
IF sy-subrc = 0.
READ TABLE it_tab INDEX 1.
IF sy-subrc = 0.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = p_wa_recipient-logsys
EXCEPTIONS
own_logical_system_not_defined = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
MOVE gc_objname TO p_wa_recipient-objtype.
CONCATENATE it_tab-dlitp it_tab-dliyr it_tab-dlino
INTO p_wa_recipient-objkey.
ENDIF.
ELSE.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. -
Send mail to distribution list using UTL_MAIL.SEND
Oracle 10.2.0.4.0
Does UTL_MAIL.SEND support sending mail to a distribution list?. The doc says, the recipient mail-id should be separated by a comma. The distribution list has mail-id separated by a comma. I executed a test case sending a mail to a distribution list, I did not receive any error or exception. I did not receive the test mail as well!!.
Has anyone used the UTL_MAIL.SEND to send mails to a distribution list?.
ThanksHas anyone used the UTL_MAIL.SEND to send mails to a distribution list?.Oracle RDBMS does not know or care is email address is single recipient or list.
It sends message to name provided.
It is up to MTA to deliver any message it gets.
Are you 100% certain that message got to MTA & was successfully processed by it? -
How to send mail to portal inbox and user email id in ESS leave workflow ?
Hi
currently i am working on sap ess workflows . i have customized standard workflow (ws12300111) where when manager approvesor rejects the leave in portal, mail has to send to user's portal inbox and email id assigned to user .
in workflow level - i have used 'sendmail' step and given agent as initiator . now mail is going to sap inbox .
can you please guide me (step by step if Posiible) how should i do it.
Regards,
Sreeharsha.
Points will be rewarded.mail has to send to user's portal inbox and email id assigned to user
Not sure if you want a email or SAP mail. Can you clarify the above statement?
If you want to send a notification mail which needs to be displayed in UWL
Search for keyword SONIC in this forum and blogs section. You will get the solution
If you want to send a notification email to the email id of the user
You need to determine the email id of the user and use the sendmail step to send email (your SCOT settings need to be condigured by your BASIS team)
Thanks,
Prasath N -
Is it posible send email to distribution list like group of mails
Hi ,
i need to know if its possible to send email to distribution list via SAP
please let me know the process or program to do so or how to develop it? let me know if its possible by sap or not?
regards
ARORAAgree with Zarko. But when you add contact for that external user and allow only that sender, the DL will not receive emails from any other users (internal or external).
If you added any entries under "Accept mesages only from Only sendes in below list" then only the entries added will be able to send mail to that DL whether the check box "Require that all senders are authenticated" is selected or not. You may check the
below technet article for more details.
http://technet.microsoft.com/en-us/library/bb124405(EXCHG.80).aspx -
Bulk create and mail enable distribution lists
Does anyone know of a decent script to mass create and mail enable distribution lists? Either by excel or csv? Thank you.
Hi,
You can check the repository for pre-written scripts:
http://gallery.technet.microsoft.com/scriptcenter
If you can't find what you're looking for there, there should at least be something you can take to start writing your own.
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
How to send mails to "CC" and "BCC" using receiver mail adapter dynamically
Hi,
Due to business requirement PI need to send mails dynamically to u201CCCu201D and u201CBCCu201D using receiver mail adapter.
We have an option to send mails to u201CTou201D dynamically, but are there any option to send mails u201CCCu201D and u201CBCCu201D dynamically.
Please some help to resolve the issue. Thanks
Regards,
Sreeramulu Konjeti.Hi Sreeramulu,
As mentioned by Lucas, you can use the UDF. Inn addition to that, you need to define the Variable Headers under Variable transport binding after enabling the Adapter Specific Message Attributes.
For the Enabling ASMA, follow the below steps and check for the variable attributes.
Select the Advanced tab page.
To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
The following attributes in the message header are then available for processing:
○ User: (technical name: TServerLocation)
○ Authentication key: (technical name: TAuthKey)
The following mail header fields are available for processing:
○ From: (technical name: THeaderFROM)
○ To: (technical name: THeaderTO)
○ Cc: (technical name: THeaderCC)
○ Bcc: (technical name: THeaderBCC)
○ Subject: (technical name: THeaderSUBJECT)
○ Reference to the mail that is to be replied to: (technical name: THeaderIN-REPLY-TO)
○ Reply to: (technical name: THeaderREPLY-TO)
○ Mail client program: (technical name: THeaderX-MAILER)
○ Send confirmation of receipt: (technical name: THeaderDISPOSITION-NOTIFICATION-TO)
○ Priority: (technical name: THeaderPRIORITY)
○ Importance of message: (technical name: THeaderIMPORTANCE)
To transfer further header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, and XHeaderName3.
The parameters are included in the mail header under the names specified here.
The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
Thanks, -
How can send mails using hotmail/rediffmail domain name?
I have used the below code to send a mail using javamail API?Even when I am sending my application does not have notified any of error/exceptions,But the message is not reached to I have given receipient's address in the to field.
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class Sendmail1 extends HttpServlet {
private String smtpHost;
// Initialize the servlet with the hostname of the SMTP server
// we'll be using the send the messages
public void init(ServletConfig config)
throws ServletException {
super.init(config);
smtpHost = config.getInitParameter("smtpHost");
//smtpHost = "sbm5501";
smtpHost = "www.rediffmail.com";
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException, java.io.IOException {
String from = request.getParameter("from");
String to "[email protected]";
String cc = "[email protected]";
String bcc ="[email protected]";
String smtp ="www.rediffmail.com";
String subject = "hai";
String text = "Hai how r u";
PrintWriter writer = response.getWriter();
if (subject == null)
subject = "Null";
if (text == null)
text = "No message";
String status;
try {
// Create the JavaMail session
java.util.Properties properties = System.getProperties();
if (smtp == null)
smtp = "www.rediffmail.com";
properties.put("mail.smtp.host", smtp);
Session session = Session.getInstance(properties, null);
//to connect
//Transport transport =session.getTransport("smtp");
//transport.connect(smtpHost,user,password);
// Construct the message
MimeMessage message = new MimeMessage(session);
// Set the from address
Address fromAddress = new InternetAddress(from);
message.setFrom(fromAddress);
// Parse and set the recipient addresses
Address[] toAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.TO,toAddresses);
Address[] ccAddresses = InternetAddress.parse(cc);
message.setRecipients(Message.RecipientType.CC,ccAddresses);
Address[] bccAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.BCC,bccAddresses);
// Set the subject and text
message.setSubject(subject);
message.setText(text);
Transport.send(message);
//status = "<h1>Congratulations,</h1><h2>Your message was sent.</h2>";
} catch (AddressException e)
status = "There was an error parsing the addresses. " + e;
} catch (SendFailedException e)
status = "<h1>Sorry,</h1><h2>There was an error sending the message.</h2>" + e;
} catch (MessagingException e)
status = "There was an unexpected error. " + e;
// Output a status message
response.setContentType("text/html");
writer.println("<title>sendForm</title><body bgcolor= ><b><h3><font color=green><CENTER>CALIBERINFO.COM</CENTER></h3>Your message was sent to recepient(s).<br><font color=red>"+"\n"+to);
writer.println("<br><br><a href=e:/mail/javamail/mail.html>back to compose</a>");
writer.close();
Please any one help me out from this probs.
Awaiting for yours reply,
or give me a reply to: [email protected]
Regards,
@maheshkumar.kHi,
how can send mails using hotmail/rediffmail domain name?In your java application,you specified www.rediffmail.com as your
smtp server.But that is the address of that website.Try will a smtp
server instead.For a list of free smtp servers,please visit http://www.thebestfree.net/free/freesmtp.htm
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
How do I email a distribution list in Entourage?
I would like to share some of my distribution lists with friends.
How can I email the distribution list? I can't drag a group icon into the mail message like in Outlook.
Any help is appreciated.
JeremyThanks. I was hoping to find something other than Groups, because when you sync with a mobile device, it maps the groups to Categories in the device. This adds a lot of complexity to data and many mobile devices have some limitations on categories.
But thanks for the quick response!
-MJSTEELEGA -
Sender Mail Adapter - CC list limitation
Hi All,
Is there a way to receive the CC list in the MailPackage in stead of receiving it in the message Header?
If the above is possible, please specify the sender mail channel configurations required and the changes required to the standard SAP Mail Package XSD structure.
Background of the issue: Mail adapter restricts the CC list in the message Header to 200 characters.
Many thanks,
AldoHi, Aldo:
What I mean is that you need to created scenario:
In my previous reply, I mean we need to use HTTP in sender side, probably we need HTTP receiver to call the serverlet to get the list of the CC.
Then you can design a BPM scenario:
Any Sender adapter (which can be trigger thed process) - BPM (Sync call to get response which has CC list) -> to Mail receiver which can deliver to any mail inbox.
Just a idea since I never have done this.
Regards
Liang -
Access - How to create Mail Address only list?
Printing envelopes from mail lists - via Microsoft Excel? Access - How to create Mail Address Only list?
Bearing my "new boy" status, step by step instruction would be appreciated.Hi
This is a question only about the Microsoft products and has nothing to do with Toshiba notebooks but I have investigated a little bit in the net and found this useful sites:
http://support.microsoft.com/kb/q141991/
https://www.nahu.org/member/using%20excel%20to%20create%20lists%20and%20labels .pdf -
How to send mail in html format in jsp???
Hello everybody,
I have two jsp pages.In one page I have the heading like Date,Transaction.I am retriving data from my second jsp page.And I hae included the second jsp page to my first jsp page.How to send mail this content in html format.
Thanks
SrikantMimeMessage m = new MimeMessage(session);
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(content, "text/html");this if u need to send a mail content as html
Maybe you are looking for
-
Unable to Edit Imported Jpeg files.
I'm currently using iPhoto 9.6 and OS 10.10. I have created jpg stills from .mov projects using QT Pro and imported them successfully into a previous version of iPhoto where I was able to crop them and make rudimentary color and exposure adjustment
-
Access date to a date in labview
I am trying to read in a date field from an access database into my labview program i want to be able to display the exact date from my access database onto my front panel but every time i try and do this it doesnt give me what i am expecting for exa
-
Apache POI Word support - workaround for a write bug
Hi all, Just finished battling with the bugs in POI HWPF component. When searching forums, I found more questions than answers so I wanted to save others a significant effort until POI guys implement all the fixes. Basically, the synopsis is, all the
-
I can't get wifi in my ipod touch 3g
Dear all, I have a problem with the surfing through wifi. The device shows the signal icon completly, but I can't surf in internet. I have the rigth pass and the ipo shows a message like "Safari cannot open the page because it is not conectedto the i
-
Premiere Pro Cropping end of sequence
When I place a clip on the time line it gets cropped on its right side, if I place another clip then the first clip is fine but the last clip gets cropped on the right. Am I missing something here? And yes if I render it appears in the final render.