Distribution List in SO_SEND_*?

Hi All,
I am using 'SO_NEW_DOCUMENT_SEND_API1' to send email notification But I am getting x_error in return when I am using Distribution list.
I have created Dist.List in SO23 but still no succeess however when I am sending it by hard coding the email address and changing the receiver type it is working fine.
Can any one suggest solution or sample code for the same.Its urgent
REgards

Hi,
Check the sample program to send Mai using the FM you used.
REPORT  zvenkat_mai_simple.
*  Mai related declarations
"Variables
DATA :
     g_sent_to_all   TYPE sonv-flag,
     g_tab_lines     TYPE i.
"Types
TYPES:
     t_document_data  TYPE  sodocchgi1,
     t_packing_list   TYPE  sopcklsti1,
     t_attachment     TYPE  solisti1,
     t_body_msg       TYPE  solisti1,
     t_receivers      TYPE  somlreci1.
"Workareas
DATA :
     w_document_data  TYPE  t_document_data,
     w_packing_list   TYPE  t_packing_list,
     w_attachment     TYPE  t_attachment,
     w_body_msg       TYPE  t_body_msg,
     w_receivers      TYPE  t_receivers.
"Internal Tables
DATA :
     i_document_data  TYPE STANDARD TABLE OF t_document_data,
     i_packing_list   TYPE STANDARD TABLE OF t_packing_list,
     i_attachment     TYPE STANDARD TABLE OF t_attachment,
     i_body_msg       TYPE STANDARD TABLE OF t_body_msg,
     i_receivers      TYPE STANDARD TABLE OF t_receivers.
parameters:p_mai(99).
"start-of-selection.
START-OF-SELECTION.
  PERFORM send_mai.
  "Form  send_mai
  " PACKING LIST table requires information about how the data in the
  " tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are to be
  " distributed to the documents and its attachments. The first row is
  " for the document, the following rows are each for one attachment.
FORM send_mai .
  "Subject of the mai.
  w_document_data-obj_name  = 'MAI_TO_HEAD'.
  w_document_data-obj_descr = 'Simple mai using SAP ABAP'.
  "Body of the mai
  PERFORM build_body_of_mai
    USING:space,
          'Hi,',
          'I am fine. How are you? How are you doing ? ',
          'This program has been created to send simple mai',
          'with Subject,Body with Address of the sender. ',
          'Thanks and Regards,',
          'Venkat.O,',
          'SAP HR Technical Consultant.'.
  "Write Packing List (Body)
  DESCRIBE TABLE i_body_msg LINES g_tab_lines.
  w_packing_list-head_start = 1.
  w_packing_list-head_num   = 0.
  w_packing_list-body_start = 1.
  w_packing_list-body_num   = g_tab_lines.
  w_packing_list-doc_type   = 'RAW'.
  APPEND w_packing_list TO i_packing_list.
  CLEAR  w_packing_list.
  "Fill the document data and get size of attachment
  READ TABLE i_body_msg INTO w_body_msg INDEX g_tab_lines.
  w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( w_body_msg ).
  "Receivers List.
  w_receivers-rec_type   = 'U'.  "Internet address
  w_receivers-receiver   = p_mai.
  w_receivers-com_type   = 'INT'.
  w_receivers-notif_del  = 'X'.
  w_receivers-notif_ndel = 'X'.
  APPEND w_receivers TO i_receivers .
  CLEAR:w_receivers.
  "Function module to send mai to Recipients
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = w_document_data
      put_in_outbox              = 'X'
      commit_work                = 'X'
    IMPORTING
      sent_to_all                = g_sent_to_all
    TABLES
      packing_list               = i_packing_list
      contents_txt               = i_body_msg
      receivers                  = i_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.
  IF sy-subrc = 0 .
    MESSAGE i303(me) WITH 'Mai has been Successfully Sent.'.
  ELSE.
    WAIT UP TO 2 SECONDS.
    SUBMIT rsconn01 WITH mode = 'INT'
                 WITH output = 'X'
                 AND RETURN.
  ENDIF.
ENDFORM.                    " send_mai
"      Form  build_body_of_mai
FORM build_body_of_mai  USING l_message.
  w_body_msg = l_message.
  APPEND w_body_msg TO i_body_msg.
  CLEAR  w_body_msg.
ENDFORM.                    " build_body_of_mai
Regards,
Venkat.O

Similar Messages

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

  • Creating distribution lists in SAP CRM 5.0 business workplace

    Hi Experts,
    We have CRM 5.0 and I have tried to create distribution lists for
    mailsending.
    After defining a name and a folder (that is then created) for the
    list the recipient list insertion is a following task.
    I can search for partners of different type by F4 help but no
    matter the type of the partner searched - the type that is
    automatically entered to the lists recipents table is "shared
    distribution list". even though the desired type is among others
    in a list other values cannot be selected.
    Please help, is this a setting that can be undone or what might
    be a problem in the procedure that i use in creating a list?
    has anyone else had similar problems?
    Thank You so much,

    i have received an answer from SAP:
    "The reason for the error is a wrong entry in table TBCS_RECIP. To removethis entry, please use the report which is entered in the description
    of note 735795 or delete the wrong entry direct on table TBCS_RECIP.
    After the run of the report or the deletion on table TBCS_RECIP you willnot find further the selection option 'Business Partner' on the F4 help."
    The entry was removed and for Lists business partners cannot be selected at all - as a standard. really sad endeed.

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • In the upgrade to Yosemite, the distribution list feature in mail appears to have been eliminated.  Any suggestions?

    Prior to upgrading to Yosemite, mail allowed you to select all from a contact group and paste the e-mail address of the group to an e-mail send field.  This "distribution list" feature does not seem to work in this new system.  Any suggestions?

    You can see a detailed comparison between MobileMe and iCloud, plus general information and some links to Apple Help pages, here:
    http://rfwilmut.net/icloud
    Question 2 would be best asked as an individual question in the hope of attracting the attention of someone who is in the same situation and can give you a practical answer: question 3 would best be asked in the iPhone forum.

  • Setting up Contacts "groups" or "distribution lists" on Treo Pro??

    Is there any way to set up a "group" or "distribution list" on Treo Pro w/ Windows Mobile so that I can send a text message to a group rather than have to put in each phone number individually???
    Post relates to: Treo Pro T850U (Unlocked)

    Hello!
    Windows Mobile devices doe not have this function at least out straight foward of the box, will require the use of a 3rd-party SMS application.  PalmOS smartphones have an upping here with its templates folder but in your case you could try making SMS drafts and use those as a "group template."
    Post relates to: Treo 650 (Unlocked GSM)

  • Distribution list do not appear in TO: field when user wants to send email

    All the blackberry users in the corporate are on BES server. When user enters the first few letters of a person or the # sign and the first few letters for the distribution list in TO: field, the email addresses are showing up from Global Address List (GAL) for example, and they can choose the email address.
    There is a particular issue with one user. His bb does not show any distribution list when he types # sign. The individual contacts from GAL are showing up after typing the first few letters though.
    User has a personal account apart from the corporate account.
    I can not figure out the problem.
    We recently wiped his bb and activated it, because he did not have the option to reply or forward his emails.
    If you know what could be the solution apart from reactivating the bb, please let me know.
    Regards,

    Hello,
    Honestly, from your original description, your users have a function I've never seen. To access the GAL from my BB, I must enter some characters and then use the Lookup function. Your description does not include the Lookup, so I honestly have no idea how your users are configured. From what you describe, it sounds like you are somehow (and for some reason) pushing the entire GAL to each device and this is not working on that one device. But, honestly, with Lookup, I can see no reason to want to push the full GAL out.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to create a rule for distribution list

    I have users in a distribution list that all require a specific rule to be created for them. I have been able to create a a rule to distribute in Exchange management shell which works properly but I have found out that the rule will not be visible to the
    end user in the Outlook 2007 client. I was wondering if there is a solution to distribute a rule to these users without the need tot visit each of their computers while they are signed in (24-hour business but I.T. only works day shift). Any solution would
    be appreciated.

    Hi,
    From your description, I would like to clarify that the rule you create in EMS is the transport rule. Users can't see the transport rules on Outlook side. They can see the Outlook rules on Outlook side. Your understanding will be appreciated.
    Hope this can be helpful to you.
    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

  • Is there an easy way of creating a distribution list from an email with multiple addresses? Those addresses are not in your contacts already, and don't need to be.

    I want to be able to take all the email addresses someone else has used to distribute an email and create the same distribution list for myself for future use.  I don't want to add all those people to anywhere in my contacts list.  I just want them to be in my "new distribution list", like "soccer families", etc.  I tried to copy and paste, but didn't get anywhere. Maybe I was close, or maybe it isn't possible.  Thoughts?

    Ed on iPad wrote:
    I don't want them in contacts because they are simply a related group (like my sons current soccer team).  People I may never need to email again after a sports season.  I don't want to have to have these people in my contacts permanently. 
    You don't. When the season is over, delete them.
    But, the text clipping should work.
    The next IOS should have a feature "create mailing list from distribution list".  A fast and simple way to retain a distribution list from an email you received.  People get copied all the time using distribution lists they may want to reuse easily, like school, sports or work groups.  Oh well.
    How is that any different from adding them to Contacts? Here's the feedback page: http://www.apple.com/feedback/
    There is a set of Mail Scripts that has a function to Add Addresses from an email to any group. But, it doesn't work with Mountain Lion.

  • Email ALV report to a distribution list

    Hi all,
    I have scheduled an alv report (uses ALV Grid) to run in the background using SM36.I put the spool list to be delivered to a set of people whose addresses are in the distribution list. The mails are being received by the users. But the problem is : <b>There are around 20 columns in the report but only info upto 15 columns are being sent as a PDF. There is no problem with the number of rows being sent. It's only the width of the report has been shortened. Can anyone help me out with this please, it is a urgent requirement.</b>
    Satish

    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

  • How can I use a distribution list to send an email or an invitation

    I would like to know if I can have a distribution list (several people that belongs to a group) that at the moment that I would like to send them the same email or invitation, I just wnat to recall the name of my distribution list, as I do in Microsoft outlook, and then the mail or invitation goes directly to everyone that belogs to this distribution list

    Apologies. I should have said Ignore. I can't answer the question as it relates to an iPhone.

  • How to send a Weekly E-mail to a Distribution list from Sharepoint by collecting all the events available in all Sharepoint calendars

    Hi,
        I have created many Calendars in my Sharepoint site like Meeting Calendar, Downtime Calendar etc. I will be creating some events in these calendars every week. My requirement is to collect all the events available in the calendar for that week
    and send a weekly mail with all this events to the distribution list
         Is this requirement can be done using the Sharepoint designer workflow or does it require any code related activities to accomplish this? If so can you please provide me the Steps by step process to complete this and can you also share
    the code in case if you have it
    Thanks in Advance

    Hi,
    Try with worklfow timer control and send mail to weekly.(Performance good)
    http://infomoss.blogspot.in/search/label/Workflow2010
    one more option try with Timerjob..(if no way use it)
    http://infomoss.blogspot.in/2013/05/companymicrosoft-todo-update-copyright.html
    http://infomoss.blogspot.in/2013/01/webclient-sharepoint-2010-read-image-uri.html
    Thanks
    Jaison A
    http://infomoss.blogspot.in

  • How to send mail to all the receipients in distribution list

    Hi All,
    As per my requirement I need to send error log in doc format.
    I am using the help of following code suggested by someone in sdn.
    Mehr Beispile unter BCS_EXAMPLE_* mit se38
    Mehr Beispile unter BCS_TEST*     mit se38
    DATA: SEND_REQUEST       TYPE REF TO CL_BCS.
    DATA: SUBJECT            TYPE SO_OBJ_DES.
    DATA: ATT_TYPE           TYPE SOODK-OBJTP.
    DATA: IT_TEXT            TYPE BCSY_TEXT.
    DATA: WA_TEXT            LIKE SOLI.
    DATA: IT_BIN             TYPE SOLIX_TAB.
    DATA: WA_BIN             TYPE SOLIX.
    DATA: DOCUMENT           TYPE REF TO CL_DOCUMENT_BCS.
    DATA: SENDER             TYPE REF TO CL_SAPUSER_BCS.
    DATA: RECIPIENT          TYPE REF TO IF_RECIPIENT_BCS.
    DATA: BCS_EXCEPTION      TYPE REF TO CX_BCS.
    DATA: SENT_TO_ALL        TYPE OS_BOOLEAN.
    Bytes der Datei
    DATA: IT_LENGHT          TYPE SO_OBJ_LEN.
    DATA: N10(10)            TYPE N.
    START-OF-SELECTION.
      PERFORM MAIN.
      PERFORM RSCONN01_EXECUTE.
    END-OF-SELECTION.
    FORM MAIN.
      TRY.
    Dokument erstellen (mit Anhang)
          SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
          PERFORM HEAD_CONT.
          PERFORM RAW_ATT.
    Dokument (mit Anhang) setzen
          CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
    Absender setzen
          SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
          CALL METHOD SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = SENDER.
    Empfänger setzen
          RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
                                            'email@address' ).
          CALL METHOD SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT = RECIPIENT
              I_EXPRESS   = 'X'.
    Dokument senden
          CALL METHOD SEND_REQUEST->SEND(
            EXPORTING
              I_WITH_ERROR_SCREEN = 'X'
            RECEIVING
              RESULT              = SENT_TO_ALL ).
          COMMIT WORK.
    Sende-Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "main
    FORM HEAD_CONT.
      CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
      ATT_TYPE = 'RAW'.
      SUBJECT = 'Betreffzeile'.
      WA_TEXT = 'First Line'. APPEND WA_TEXT TO IT_TEXT.
      WA_TEXT = 'Second Line'. APPEND WA_TEXT TO IT_TEXT.
      DESCRIBE TABLE IT_TEXT LINES N10.
      N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
      IT_LENGHT = N10.
      TRY.
          DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                    I_TYPE    = ATT_TYPE
                    I_TEXT    = IT_TEXT
                    I_LENGTH  = IT_LENGHT
                    I_SUBJECT = SUBJECT ).
    Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "HEAD_CONT
    *&      Form  RAW_ATT
          text
    FORM RAW_ATT.
      CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
      ATT_TYPE = 'RAW'.
      SUBJECT = 'Text Anhang'.
      WA_TEXT = 'First Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
      WA_TEXT = 'Second Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
    Lenght of Att_Text
      DESCRIBE TABLE IT_TEXT LINES N10.
      N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
      IT_LENGHT = N10.
      TRY.
          CALL METHOD DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = ATT_TYPE
              I_ATT_CONTENT_TEXT   = IT_TEXT
              I_ATTACHMENT_SIZE    = IT_LENGHT
              I_ATTACHMENT_SUBJECT = SUBJECT.
    Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "ATT_RAW
    But From this method I am not able to send the mail to the distribution list created.
    Please suggest How this can be done.
    I dont want to chang

    Hi Smriti,
    You can make changes like shown below. The changes are shown in the code format for your easy reference. You can remove the code in bold. This will work.
    Mehr Beispile unter BCS_EXAMPLE_* mit se38
    Mehr Beispile unter BCS_TEST* mit se38
    DATA: SEND_REQUEST TYPE REF TO CL_BCS.
    DATA: SUBJECT TYPE SO_OBJ_DES.
    DATA: ATT_TYPE TYPE SOODK-OBJTP.
    DATA: IT_TEXT TYPE BCSY_TEXT.
    DATA: WA_TEXT LIKE SOLI.
    DATA: IT_BIN TYPE SOLIX_TAB.
    DATA: WA_BIN TYPE SOLIX.
    DATA: DOCUMENT TYPE REF TO CL_DOCUMENT_BCS.
    DATA: SENDER TYPE REF TO CL_SAPUSER_BCS.
    DATA: RECIPIENT TYPE REF TO IF_RECIPIENT_BCS.
    DATA: BCS_EXCEPTION TYPE REF TO CX_BCS.
    DATA: SENT_TO_ALL TYPE OS_BOOLEAN.
    Bytes der Datei
    DATA: IT_LENGHT TYPE SO_OBJ_LEN.
    DATA: N10(10) TYPE N.
    data: it_recipients type standard table of ad_smtpadr.
    data: w_recipients type ad_smtpadr.
    START-OF-SELECTION.
    PERFORM MAIN.
    PERFORM RSCONN01_EXECUTE.
    END-OF-SELECTION.
    FORM MAIN.
    TRY.
    Dokument erstellen (mit Anhang)
    SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    PERFORM HEAD_CONT.
    PERFORM RAW_ATT.
    Dokument (mit Anhang) setzen
    CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
    Absender setzen
    SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
    CALL METHOD SEND_REQUEST->SET_SENDER
    EXPORTING
    I_SENDER = SENDER.
    Empfänger setzen
    LOOP AT it_recipients into w_recipients.
    RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(w_recipients).
    CALL METHOD SEND_REQUEST->ADD_RECIPIENT
    EXPORTING
    I_RECIPIENT = RECIPIENT
    I_EXPRESS = 'X'.
    ENDLOOP.
    RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS('email@address' ).
    CALL METHOD SEND_REQUEST->ADD_RECIPIENT
    EXPORTING
    I_RECIPIENT = RECIPIENT
    I_EXPRESS = 'X'.
    Dokument senden
    CALL METHOD SEND_REQUEST->SEND(
    EXPORTING
    I_WITH_ERROR_SCREEN = 'X'
    RECEIVING
    RESULT = SENT_TO_ALL ).
    COMMIT WORK.
    Sende-Error abfangen
    CATCH CX_BCS INTO BCS_EXCEPTION.
    WRITE: 'Fehler aufgetreten.'(001).
    WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
    EXIT.
    ENDTRY.
    ENDFORM. "main
    FORM HEAD_CONT.
    CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
    ATT_TYPE = 'RAW'.
    SUBJECT = 'Betreffzeile'.
    WA_TEXT = 'First Line'. APPEND WA_TEXT TO IT_TEXT.
    WA_TEXT = 'Second Line'. APPEND WA_TEXT TO IT_TEXT.
    DESCRIBE TABLE IT_TEXT LINES N10.
    N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
    IT_LENGHT = N10.
    TRY.
    DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
    I_TYPE = ATT_TYPE
    I_TEXT = IT_TEXT
    I_LENGTH = IT_LENGHT
    I_SUBJECT = SUBJECT ).
    Error abfangen
    CATCH CX_BCS INTO BCS_EXCEPTION.
    WRITE: 'Fehler aufgetreten.'(001).
    WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
    EXIT.
    ENDTRY.
    ENDFORM. "HEAD_CONT
    *& Form RAW_ATT
    text
    FORM RAW_ATT.
    CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
    ATT_TYPE = 'RAW'.
    SUBJECT = 'Text Anhang'.
    WA_TEXT = 'First Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
    WA_TEXT = 'Second Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
    Lenght of Att_Text
    DESCRIBE TABLE IT_TEXT LINES N10.
    N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
    IT_LENGHT = N10.
    TRY.
    CALL METHOD DOCUMENT->ADD_ATTACHMENT
    EXPORTING
    I_ATTACHMENT_TYPE = ATT_TYPE
    I_ATT_CONTENT_TEXT = IT_TEXT
    I_ATTACHMENT_SIZE = IT_LENGHT
    I_ATTACHMENT_SUBJECT = SUBJECT.
    Error abfangen
    CATCH CX_BCS INTO BCS_EXCEPTION.
    WRITE: 'Fehler aufgetreten.'(001).
    WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
    EXIT.
    ENDTRY.
    ENDFORM. "ATT_RAW
    where the internal table "it_recipients" contains all the e-mail addresses.

  • How to send a broadcast message to public distribution list?

    I set up a Pulic distribution list in Unity system, but what extension number should I dial to send a publick distribution list? What is the public distribution list number?
    Thanks for any input.

    Log to Unity (press the Messages button and type your password). It will prompt you what is the button that you need to press to send a message (by default is 2), press that number, now it will prompt you to spell the name of the person or the distribution list. You can press ## (# key twice) to change to enter the extension.
    If you go to the SAWEB and search for your Distribution List you will see that you can add and extension.
    So by following the above instruction you can send a message by spelling the name of the DL or entering the extension of the DL.
    HTH
    //Jorge

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

Maybe you are looking for