PBR/Distribution List help

Hello,
I have this simple lab to practise filtering traffic so R1 and R2 can't see each other in there routing tables:
I've tried 3 methods and only example 1 seems to work, what am I doing wrong?
Example 1 (Worked)
R3
router eigrp 200
redistribute eigrp 100
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
distribute-list 2 out FastEthernet0/0
distribute-list 1 out Serial0/0
no auto-summary
access-list 1 deny   10.1.2.0 0.0.0.255 log
access-list 1 permit any log
access-list 2 deny   10.1.1.0 0.0.0.255 log
access-list 2 permit any log
Example 2 (Didn't work the can ping each other)
R3
router eigrp 200
redistribute eigrp 100
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
distribute-list 101 out FastEthernet0/0
distribute-list 100 out Serial0/0
no auto-summary
access-list 100 deny   ip 10.1.2.0 0.0.0.255 10.1.1.0 0.0.0.255 log
access-list 100 permit ip any any
access-list 101 deny   ip 10.1.1.0 0.0.0.255 10.1.2.0 0.0.0.255 log
access-list 101 permit ip any any
Example 3 (Didn't work they can ping each other)
R3
interface FastEthernet0/0
ip address 10.1.2.3 255.255.255.0
ip policy route-map pbr2
duplex auto
speed auto
interface Serial0/0
ip address 10.1.1.3 255.255.255.0
encapsulation ppp
ip policy route-map pbr1
clock rate 2000000
access-list 1 permit 10.1.2.0 0.0.0.255 log
access-list 2 permit 10.1.1.0 0.0.0.255 log
route-map pbr1 deny 10
match ip address 1
route-map pbr1 permit 20
route-map pbr2 deny 10
match ip address 2
route-map pbr2 permit 20
Maybe on example 2 I could use 1 route-map and redistribute into eigrp 200?
Hopefully someone with a fresh pair of eyes can help?
Thanks

In example 2 you coded the access lists like you would if you were  going to assign them with access-group on the physical interfaces where  you specify source address and destination address. But you are trying  to use the access list in a distribute list. In a distribute list you  are filtering the advertisement and advertisements do not have source  and destination addresses.
In  example 3 you are using route map deny logic which gets a bit tricky. I  suggest that you start with route maps which use permit in the route  map statement and deny in the access list logic. These are much more  easy to work with. After you get quite comfortable with route map logic  you can come back to the route map deny logic.
HTH
Rick

Similar Messages

  • Cisco Unity Connection 8.6 Distribution list help.

    We have a shared department line on several phones ( say 30  ) with VM and users were accessing the VM  through the telephhone interface.
    Recently we had a request from the leadership team ( say 5  ) , that they need unified messaging ( VM in their emails)  for that department line.
    How do i make it possible so that the leadership team has the unified messaging( VM in their emails ), while the other user still have access to the dept line VM through telephone interface.
    If  I create  distribution list with the the leadership team  as DL members and call handler for the dept line DN with message  setting set to receipients as the distribution list , would that do it ? Will the other users still  be able to access the VM through their phone. how do I make it  possible .?

    Indu,
    I understand you requirement and I'll be upfront and say there are only so many options here as I see it and each has its own caveats/limitations.  Here are a couple:
    1.  You will need an SMTP Smart Host configured for Unity Connection for this solution to work.  The Smart Host is just an SMTP relay server and it needs to be configured to accept messages from and deliver messages to the SMTP domain of Unity Connection.  That also means that you need to configure Unity Connection to allow inbound SMTP from this host (i.e., a trusted address configuration).
    2.  You will need an email distribution list or shared email address that you can forward a copy of voice messages for the mailbox to.  That email distribution list needs to have your special users set as members.
    3.  Once the first 2 items are in place, go to the shared mailbox and set the Message Actions for Voicemail to "Accept and Relay" and then specify the relay address as the address for the distribution list you set up in item 2.
    4.  Leave the configuration for the shared mailbox the same except for the accept and relay configuration above.  All users will continue to have the same phone-based functionality.  The difference is that a COPY of every voicemail will be sent to the special users via the relay to distribution list.  The caveat is that this is not Unified Messaging.  It does get the voicemail into email but there is no synchronization of MWI and/or message status for users that rely on email client to check messages.
    Another option would be an Integrated Messaging solution.  This also is not Unified Messaging but does provide synchronziation between the shared line and email client; however, it requires that each of your special users set up an IMAP connection from their email client to the Unity Connection server.  So, the messages will not be seen in their personal email inbox but rather in a separate IMAP folder in the email client.
    Hailey
    Please rate helpful posts!

  • I am trying to sent an e-mail to a large distribution list, without everyone appearing in the "To" field.  Any help would be appreciated?

    I am trying to sent an e-mail to a large distribution list, without everyone appearing in the "To" field.  I do not want anyone else to see who I am sending the e-mail to.  Any help would be appreciated?

    Mail Preferences, Composing:
    Uncheck the option to show all recipients.

  • Help please - Contacts freezes when I try to edit distribution lists

    When I try to edit the addresses distribution list for a group, Contacts freezes with a spinning beachball. I've tried exporting the group as a CSV file, trashing the entire Address Book folder in Library > Application Support, launching Contacts and importing the CSV file, but this hasn't helped.
    Editing distribution lists in Address Book / Contacts has been problematic since at least Lion. Seems like Contacts development was foisted off on a handful of green interns a long time ago.
    Can anyone suggest an iCloud- & iPhone-compatible third-party contacts manager with some back-end muscle? Cobook is a nice front-end, but it doesn't solve my problem.

    Well, I found that it doesn't actually freeze - it just takes 20 minutes or so to respond. This with a database of about 3,700 contacts. It also takes 5 minutes or so to accept the renaming of a smart group.
    Who in **** built this thing? And, why are they spending more time on simulating fake leather and taking away and then restoring 3-panel view than on making this a halfway decent database?
    Sadly, the only contacts app I can find that seems to have a robust back end is made by - Microsoft. Sad.

  • Since the last IOS update, I still can't drag distribution lists from my contacts to my email.  Apple has been absolutely no help, in spite of contacting them 5 times on this subject.  Any suggestions or help would be greatly appreciated.

    Since the last IOS update, I still can't drag distribution lists from my contacts to my email.  Apple has been absolutely no help, in spite of contacting them 5 times on this subject.  Any suggestions or help would be greatly appreciated.
    I have IOS  7.0.1 and updates are current.
    Pags1970

    No Mac can run any version of iOS, that is for iDevices only.
    Macs run OS X. What version of that do you have?

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

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

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

  • 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

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

  • How do I send e-mail to a distribution list using LabWindows/CVI?

    I need to be able to send e-mail to a user-defined distribution list using LabWindows/CVI? Has anyone done this? Any ideas where I could look?

    I commented on something similar to this awhile back.  My issue was that I had the base version and didn't have the Internet classes.  So this external app worked like a charm
    It has a lot of command-line inputer options to use as well.
    http://forums.ni.com/t5/LabWindows-CVI/Need-Help-for-Sending-Email-with-LabWindows-8-5-or-9/m-p/1095...

Maybe you are looking for

  • Creating Partition in Mac Mini Hard Drive

    i Have buy a mac mini a week ago, but before three days ago, some file got corrupted, and it does not start, only the password screen appears, when i entered the password, the screen appears again. and it continues. Now i want to partition the mac mi

  • Can't get HAL to work properly

    Hello everybody! This is the first distro I've ever tried which gives you substantial control over the installation process, and I like that a lot, but there are some things I probably didn't manage to do well. One of those is getting HAL to work as

  • WARNING: NEW-PAGE PRINT can no longer be used to print dialog box

    i am getting a warning as 'NEW-PAGE PRINT can no longer be used to print dialog box'. Please suggest what method can i use otherwise

  • Front row plays music but will not show photos

    When i try to view my photos in Front Row all that happens is music plays but no photos are shown. Front row says that there are 186 photos to show, however, there is nothing to view once I start the show. Any help with this?

  • Quotation List

    Hi Experts I have  a case where I can get the list of quotations thru va25 either only open Quotaions or all , but here my request here when I wnat see all the Quotations without mentioning the Materiial and the Customer Iam getting this error Only o