Send email to distribution list.

i have a problem in sending email to a distribution list.
distribution list can be private or shared folders distribution list.
how to get all email id from the distribution list.
how the SO_NEW_DOCUMENT_ATT_SEND_API1 function module can be used in this scenario.
i have send email to multiple receivers using this function module SO_NEW_DOCUMENT_ATT_SEND_API1 but content or information are same. this scenario information i am going to send differs for each email ids.
plz help me in this scenario.
regards,
suresh

Suresh
In short, here are the steps:
Before you Call function 'SO_NEW_DOCUMENT_ATT_SEND_API1' in your internal table passed for "receivers" i.e. for email ids set:
receivers-rec_type = 'C' for Shared distribution list or
receivers-rec_type = 'P' for Private distribution list.
and
receivers-receiver = <Distribution list name>
append receivers internal table.
Thats it..all email ids within your distribution list should get the email. This will work.
Let us know if any problems.
Thanks
Anand

Similar Messages

  • 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
    ARORA

    Agree 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

  • Error while sending email to distribution list

    Hello All,
    I am not able to send the email to Shared & Private distribution list.
    It is giving an error "Function <Send> not possible"
    I can send the email to users by specyfying their email id & recepient type as Internet address while sending mail from the Business Workplace. But we want to send it to users in shared/private distribution list.
    SCOT, SMTP are properly configured as per SAP Note 455140.
    Interestingly Routing Test in the SAPConnect shows no errors. Also the internal  traces are enabled, but it shows nothing for the outbound traces.
    Response starting with "220", in the telnet results (for both SAP server & Exchange server) confirms that the SCOT configuration is correct for Mail Host & Mail Port.
    We are on ECC6 on Oracle 10g & Windows.
    I have searched this forum but couldnot find relevant answer.
    If anybody has faced such problem, let me know how to resolve this.
    Regards,
    Vivdha

    Hi,
    Check in transaction SCOT. If your mail is in error status in SCOT, you can assure that there is no problem with your code. If your message has not reached till SCOT, then the problem will be with the code.
    If the mail is there in scot with error status tell the BASIS to configure it. I feel this could be the problem.
    Regards,
    Renjith Michael.

  • Send email to distribution list using OOP...

    Hello Experts,
    I currently have a requirement to send email(w/o attachment) to a distribution list or specific user. I have searched the forum and it doesnt suit my requirement as the examples gives only how to send email to specific user/s. Any inputs would be appreciated.
    Thank you guys and take care!

    Hi ,
    For sending mail with attachments in multiple sheets of an excel document please see the
    sample code below:
    REPORT  ZBC_ITAB_TO_EXCEL_NEW                   .
    CLASS: cl_abap_char_utilities DEFINITION LOAD.
    DATA: docdata LIKE sodocchgi1,
          objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
          objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          objbin1 LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          objbin2 LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          objbin_final LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE,
          tab_lines TYPE sy-tabix.
    DATA: gd_sender_type LIKE soextreci1-adr_typ.
    DATA: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
          c_ret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    DATA: c_dev TYPE sy-sysid.
    DATA: BEGIN OF i_data OCCURS 0,
          a(20),
          b(20),
          END OF i_data.
    DATA: BEGIN OF st,
          f1(2) TYPE c,
          f2(2) TYPE n,
          END OF st.
    DATA: itab1 LIKE TABLE OF st WITH HEADER LINE,
          itab2 LIKE TABLE OF st WITH HEADER LINE.
    DATA: n TYPE i.
    PARAMETER: p_email1 LIKE somlreci1-receiver
               p_sender LIKE somlreci1-receiver.
    START-OF-SELECTION.
      itab1-f1 = 'AA'. itab1-f2 = '01'. APPEND itab1.
      itab1-f1 = 'BB'. itab1-f2 = '02'. APPEND itab1.
      itab1-f1 = 'CC'. itab1-f2 = '03'. APPEND itab1.
      itab2-f1 = 'ZZ'. itab2-f2 = '26'. APPEND itab2.
      itab2-f1 = 'YY'. itab2-f2 = '25'. APPEND itab2.
      LOOP AT itab1.
        CONCATENATE itab1-f1 itab1-f2 INTO objbin1 separated BY c_tab.
        CONCATENATE c_ret objbin1 INTO objbin1.
        APPEND objbin1.
      ENDLOOP.
      LOOP AT itab2.
        CONCATENATE itab2-f1 itab2-f2 INTO objbin2 separated BY c_tab.
        CONCATENATE c_ret objbin2 INTO objbin2.
        APPEND objbin2.
      ENDLOOP.
      LOOP AT objbin1.
        MOVE objbin1-line TO objbin_final-line.
        APPEND objbin_final.
      ENDLOOP.
      LOOP AT objbin2.
        MOVE objbin2-line TO objbin_final-line.
        APPEND objbin_final.
      ENDLOOP.
      PERFORM process_email.
      c_dev = sy-sysid.
      IF sy-sysid = c_dev.
        wait up to 5 seconds.
        SUBMIT rsconn01 WITH mode = 'INT'
        WITH output = 'X'
        AND RETURN.
      ENDIF.
      IF sy-subrc = 0.
        WRITE: / 'Email succesfilly delivered'.
      ELSE.
        WRITE: / 'failure'.
      ENDIF.
    *&      Form  process_email
    *       text
    FORM process_email.
      IF p_sender EQ space.
        gd_sender_type = space.
      ELSE.
        gd_sender_type = 'INT'.
      ENDIF.
    *Body
      docdata-obj_name = 'Mail_Excel_File'.
      docdata-obj_descr = 'Excel file attachment'.
      objtxt = 'Attached is the sample Excel file'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      docdata-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'RAW'.
      APPEND objpack.
    *Attachment
      n = 1.
      DESCRIBE TABLE objbin1 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment1'.
      objpack-obj_descr = 'Excel File Attachment1'.
      APPEND objpack.
      n = n + tab_lines.
      DESCRIBE TABLE objbin2 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment2'.
      objpack-obj_descr = 'Excel File Attachment2'.
      APPEND objpack.
    *Create the list of recipients
      reclist-receiver = p_email1.
      reclist-rec_type = 'U'.
      reclist-express = 'X'.
      APPEND reclist.                 "For sending mail to multiple ids append this internal table with your reqd ids
    *Send the e-mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          contents_bin               = objbin_final
          contents_txt               = objtxt
          receivers                  = 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.
      COMMIT WORK.
    ENDFORM.                    "process_email
    Hope it helps,
    Regards
    Mansi
    Edited by: MANSI  ASNANI on Oct 13, 2009 7:56 AM

  • Email to distribution list from SAP Internal Email

    I have a scenario where in I have to send email from sap internal email (T-code:-SBWP) to the distribution list.
    Can some one give me some idea on the same .
    When we go to T-code: - SBWP, for unread email we right click and fwd the email to distribution list, can we achieve the same functionality by a program so that we can automate the process.
    Thanks in Advance.
    Regards,
    Pawan.

    Hi,
    Yes ,one can write an ABAP code to send the mail to a distribution list.
    Please try and use the Function Module 'SO_NEW_DOCUMENT_SEND_API1' and you need to pass the import and export parameters to this FM which needs to be defined and populated before you use this FM.
    The first Exporting parameter is 'document_data' which will be of type 'sodocchgi1'.In order to populate this, you can use the structure of type 'sodocchgi1' and give the name, description, sensitivity and the language by referring to the data type mentioned above('sodocchgi1').
    The next is the document type and you can mention any one of them from 'RAW' to anything again refering to the document type.
    The next are the tables parameters and the first one is "object_content" which would be of type "solisti1" and you need to populate this one as well.This table would contain the contents of the mail.
    The next Tables parameters is "receivers" which would be of type 'somlreci1' and in order to populate this,you need to use the below like code:
    smtp_addr = any valid email id.
          gi_recievers-receiver = smtp_addr.
          gi_recievers-rec_type = 'U'.
          gi_recievers-com_type = 'INT'.
          APPEND gi_recievers.
    once this is done, an email will be sent to the recipient which can be monitored in the T-code SCOT and SOST.It will take sometime for the mail to be sent as there is a fixed timeline after which the R/3 system pushes the mails through it to the recipients.
    I guess, I have tried to answer your question.
    In case of any queries,please let me know.
    Regards,
    Puneet Jhari.

  • 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.
    Jeremy

    Thanks. 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

  • Effective Permissions to send email to distribution group having "only senders in the following list"

    Our environment is a mixed Exchange 2007 and Exchange 2010 server environment, still in transition (after 4 years). Users have Exchange 2007 mailboxes. A recent problem has been reported in a distribution group access model that has been working without
    complaint for several years.
    [email protected] has member John Doe ([email protected]), Jane Doe ([email protected]), "only senders in the following list" is set to GroupA
    [email protected] has member Rob Smith ([email protected]), Diane Smith ([email protected]), "only senders in the following list" is set to GroupB
    [email protected] has members GroupA, GroupB, "only senders in the following list" is set to GroupC
    When designed, we thought that when [email protected] sends an email to [email protected] it would be resolved to the user members of GroupC and delivered to everyone ([email protected], [email protected], [email protected], [email protected]). (While
    it seems unlikely, that this model has functioned for several years without experiencing this problem, it is conceivable that until recently [email protected] and [email protected] have with few exceptions always had the same membership. Recent changes in
    our organizational model have caused this to have some exceptions, and may be the root cause of this problem.)
    What we are experiencing is that users [email protected] and [email protected] receive the original email. Users [email protected], [email protected] do not receive the email. [email protected] receives an email "Undeliverable: test
    Delivery has failed to these recipients or distribution lists:
    [email protected]
    Your message wasn't delivered because of security policies. Microsoft will not try to redeliver this message for you. Please provide the following diagnostic text to your system administrator. Sent by Microsoft Exchange Server 2007.
    Diagnostic information for administrators
    Generating server: mail3.domain.com
    [email protected]
    #550 5.7.1 RESOLVER.RST.NotAuthorized; not authorized ##
    Original message headers:
    Received: from MAIL7.domain.com ([::1]) by mail3.domain.com ([::1]) with
    mapi; Mon 9 Mar 2015 07:00:30 -500
    Content-Type: application/ms-tnef;name="winmail.dat"
    Content-Transfer-Encoding: binary
    From: Jane Doe <[email protected]>
    To: GroupC <[email protected]>
    Date: Mon 9 Mar 2015 07:00:29 -500
    Subject: test
    What is the expected behavior?
    Does Exchange resolve the "To" distribution group to member mailboxes for delivery purposes, or does it walk the subordinate child groups and check security at each level?
    Is this a configurable behavior that may have recently changed as we have a "new" Exchange Admin poking around?
    Might this be related to the mixed Exchange 2007 / 2010 environment?
    Is there a way to obtain "effective permissions" for delivery restrictions?
    emc2

    Hi,
    From your description, I would like to verify if you have done some changes for GroupB distribution group. Ensure that "[email protected]" is added to the "accept list" in GroupB's message delivery
    restrictions.
    What's more, are GroupA GroupB and GroupC Exchange 2010 distribution groups?
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Amy Wang
    TechNet Community Support

  • Email Issue - Can't send to a distribution list/shared mailbox

    Hi,
    I am able to send emails to named email addresses for individuals in my company but when I add a distribution list or a shared mailbox, I get the following error:
    ORA-29279: SMTP permanent error: 550 5.1.1 : Recipient address rejected: User unknown in local recipient table
    Can someone please help me with this issue?
    Thanks
    LCHIMC

    Hello,
    In general I'd recommend you should always use a full address for your email recipients. Your mail server should handle a fully qualified address even for local delivery, however by using the fully qualified version you protect yourself from any configuration changes on the mail server that would stop local addressing working.
    Just my thoughts.
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • 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?.
    Thanks

    Has 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?

  • Cannot "Send As" a distribution list in Exchange 2010

    I'm trying to enable some of our users to send email as one of our distribution lists in Exchange 2010, and I cannot get it to work. 
    I have granted the users "send as" permissions on the distribution group in ADUC, both individually and as members of a security group. I also did the same using the "Add-AdPermission" PowerShell cmdlet.
    I have ensured that the distribution list is visible to the GAL.
    I have cleared Outlook's nickname cache.
    I have tried waiting the specified two hours for Exchange settings to update, and I have also rebooted the Exchange server itself. 
    I continue to get bounce messages with "You can't send a message on behalf of this user unless you have permission to do so."
    What can I try next? 
    Thanks,
    Jason

    Hi Jason,
    I have a test in my lab. Here is the steps for your reference:
    1. Open Active Directory Users and Computers on Domain Controller. Click Users -> right click the distribution group -> click Properties -> click Security.
    2. Add the user that you want to grant "Send As" permission to the list. Allow the "Send As" permission.
    3. Click Apply, and then Ok.
    Besides, we need to wait some minutes to take it effect.
    Hope it helps.
    If you need further assistance, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Email Problem (Distribution lists)

    Hi Experts,
       I have a program which sends emails using the FM 'SO_OBJECT_SEND' to a single email id and a distribution list.
    When any one of the distribution list recieves the mail, he/she is unable to see who are all the reciepients for this mail(As is the case in BCC).
    Peculiarly, this problem is not there in my DEV system but exists in Production system.
    Can you please help me out in  this regard.
    Thanks,
    Ravi

    hi
    good
    can you just go through this link,i hope you will get some more idea.
    http://www.thespot4sap.com/articles/SAP_Mail_UNIX.asp
    http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
    thanks
    mrutyun

  • Sending emails from a list

    I would like to send emails to contacts in a contact list that I created. I would like to be able to check multiple contacts and then choose to email them. How can I make this possible without creating a distribution list as a contact?
    Thanks for the help in advance!

    As I know, SharePoint contacts dont allow to send email OOTB, however you can use SharePoint security group as you can select user(must listed in UPS) and send email which open outlook email with their email address in to field. If you have external email
    address, this may not work. For that you need to build custom solution.
    Regards Sudip Misra [email protected] +1-412-237-5435 Pittsburgh, PA

  • Can someone help me email to distribution list on my iPhone that I created in Address Book?

    I use a Macbook Pro and have no problem emailing to a distribution list I created in Address Book using Mail.  However, iPhone Mail does not seem to recognize the "group"...instead I have to enter each person's email address separately in the Send To box.  Does anyone know why or what I need to do?

    That's not a feature of the iPhone. The phone can not address distribution lists.

  • 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.

  • 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

Maybe you are looking for

  • How to create new .dat file and its contents?

    Hi There Can anybody let me know the procedure of how to create new .ctl or .dat file to load data to tables. i working on 2day dba chapter 8. it shows me how to creat table and use .dat file to load data. but doesnot giv any clue how new .dat file a

  • Download links for beta releases and release notes

    All Where is the download links for all the beta-release packages and their release notes?

  • How to get the desire output from sql query

    Consider an Order Table: ... Order Table: Order Id Item Qty O1 A1 5 O2 A2 1 O3 A3 3 Please provide SQL which will explode the above data into single unit level records as shown below Desired Output: Order Id Order Id Qty O1 A1 1 O1 A1 1 O1 A1 1 O1 A1

  • Can I seek a web designer on this forum?

    If it's allowed, I would like to hear from someone in the PHX area. If not, sorry for the bad manners. G5IMac   Mac OS X (10.4.7)   IBook800

  • Redistribution thru SCUL.

    Hi all, We have CUA implemented in our systems. I would like to have few clarifications. 1) Is it advisable to redistribute the data from SCUL? 2) is it possible to trace old idocs related to user master changes? I believe the idoc related to a user