Configure Ext. mail sending based on distribution channel automatically !

Hi,
Is it possible to configure external mail sending based on distribution channel automatically whenever a sales order is created without adding output type in Extras-output u2013 header-Edit.
I have created output type to send mail whenever a sales order is created and is working fine but for this the concerned team has to add output type, sometimes they are ignoring this process, I want this process to be automated and also based on distribution channel, for ex- mail should be send only when distribution channel is 10 and not for all.
Regards,
Nishant Bhargava

HI
Try to Create a Access Sequence with Distributional Channel and maintain the Condition record (or)
Give the logic to the ABAP like at the time of creating the sale order if distribution Channel is 10 then system will automatically send E- mail to customer
Regards,
Prasanna

Similar Messages

  • Dynamic Configuration of Mail-Sender does not work

    Hi,
    we use XI 3.0 SPS 19.
    In my szenario I have a mail sender and I have receiver determination with conditions depending on the mail subject.
    In the condition editor, I selected the context object "SHeaderSUBJECT" to build my condition.
    In the mail communication channel I turned on the Checkbox "adapter specific message attributes".
    But the condition doesn't work!!!
    I wrote a small UDF to get the dynamic configuration of my mail sender-message - but it's NULL.
    If I change my scenario from Mail-Sender to a file-sender, everything works fine (I can select the filename, etc.).
    Is there a problem with dynamic configuration of a mail sender?
    Thx all for your help!
    Regards
    Wolfgang Hummel

    Check also "Variable Transport Binding".
    You see in the SXMB_MONI whether the ASMA is available or not.
    Regards
    Stefan

  • Xi mail sender adapter for outlook express configuration

    hi,
    can somone please tell me how to configure xi mail sender adapter for reading from inbox of outlook express?
    i keep getting errors in communication channel monitor:
    "exception caught during processing mail message; java.io.IOException: unexpected user response; read -ERR Command is not valid in this state."
    Thanks
    Tomer

    Hi,
    use below link,finish the configuration of sender mail adapter,many documents available on the same in sdn,search your self
    http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
    Cheers,
    Raj

  • Mail sender channel

    Hi,
    we have a problem configuring the mail sender channel. We want to realize a mail->xi->file scenario. No messages arrive at the xi server (sxmb_moni). In the adapter monitoring the sender adapter seems to be fine (green led,   text: running).
    The mail address is a web.de address. How should the URL in the adapter look like? We tried imap://imap.web.de, imap://imap.web.de/username, but no messages arrived.
    Btw we read in an other topic, that there exists a monitor (url: http://xihost:port/mdt/amtServlet). The server replies a 404 (not found) http error. How can we get this monitor?
    Thanks

    Thanks for your answer,
    yes, web.de does allow imap, I get my mails with thunderbird with the imap protocol. I tried also an other mail server, without success.
    I describe my scenario, perhaps there is an error in my configuration:
    In the Integration Directory I have imported the following xsd file
    <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
      xmlns:xi="http://sap.com/xi/XI/Mail/30"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--
    Mail
      -->
      <xs:element name="MailReceipt">
        <xs:annotation>
          <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Server" type="xs:string"/>
            <xs:element name="Format" type="xs:string"/>
            <xs:element name="UseMailPackage" type="xs:boolean"/>
            <xs:element name="Encoding" type="xs:string"/>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    I have imported the xsd file in myNamespace into External Definition. Then I made a Messege Interface (outbound asynchronous)out of the imported data type (name--> MailReceiver).
    In the configuration of the mail sender channel I have following settings:
    message-protocol: XIPAYLOAD
    Use mail package: True
    Content Encoding: base64
    Keep attachment: False
    Interface Namespce: myNamespace
    Interface Name: MailReceiver
    Quality of service: Best effort
    In my scenario I have made a sender agreement which uses the mail sender adapter, interface and namespace of the sender are myNamespace an MailReceiver.
    hope anybody can help me...

  • Mail sender adapter POP server not configured for URL access

    Hi Experts,
    I have a Mail --> PI --> R/3 scenario and I am configuring the Mail sender adapter for POP3. The issue is that the POP server is not configured to be accessed via a URL and hence the URL pop://hostname/ is causing the following error at runtime:
    _1. When I use pop://Fully qualified host name/
    _Error: exception caught during processing mail message; java.net.UnknownHostException
    _2. When I use pop://IP address of host/
    _Error: exception caught during processing mail message; java.net.SocketException: Connection timed out:could be due to invalid address
    I am able to ping the POP3 server from the PI server using both the FQDN and IP address.
    Can someone please help.
    Thanks,
    Shobhit
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM

    Hi Shobhit
    Check with these notes:
    804102
    xi 3.0 mail adapter with pop3 user authentication problem
    810238
    XI 3.0 Mail Adapter for POP3 may not report some errors
    also check mailserver security settings ...
    Connection refused occures when XI cannot connect
    in most cases so try checking it again , maybe some ports are not opend on the firewall
    Thanks
    Edited by: Abhishek Agrahari on Jul 14, 2009 11:44 AM

  • MAIL Sender adapter going in to error

    Hello Experts ,
    We have configured one mail sender adpater with a custom module to read the attachements in the email message. This was working fine before.
    We recently had a restart of the PI servers. After that the channel is going in to error. The first error as per NWA logs is :
    failed to call the adapter engine; caused by javax.ejb.EJBException: Exception in getMethodReady() for stateless bean sap.com/com.sap.aii.adapter.mail.app*xml|com.sap.aii.adapter.mail.ejb.jar*xml|XIMailAdapterBean; nested exception is: com.sap.engine.services.ejb3.util.pool.PoolException: javax.ejb.EJBException: Exception raised from invocation of public void com.sap.aii.adapter.mail.ejb.XIMailAdapterBean.ejbCreate() throws javax.ejb.CreateException method on bean instance com.sap.aii.adapter.mail.ejb.XIMailAdapterBean@243be1e1 for bean sap.com/com.sap.aii.adapter.mail.app*xml|com.sap.aii.adapter.mail.ejb.jar*xml|XIMailAdapterBean; nested exception is: javax.ejb.CreateException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Failed to load messages into Queue AFWSend from database. Reason: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException occurred in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection. Reason: the thread of component "ejbContexts/sap.com/com.sap.aii.adapter.mail.app/com.sap.aii.adapter.mail.ejb.jar/XIMailAdapterBean" in application "sap.com/com.sap.aii.adapter.mail.app" is currently associated with a restricted resource set and it is not allowed to get connection within it.
    After that whenever it is trying to process a message its throwing the below error :
    exception caught during processing mail message [588]com.sap.aii.af.lib.mp.module.ModuleException
    Has anybody faced thsi error before? Please help!!!
    Thanks

    Hi VR
    Have you tried swapping by Payload name?
    Please try it out with the following configuration, and remove any extra lines - there are duplicate key names and values in your configuration.
    You should be able to see the successfully swap by payload name in the audit log as shown below.
    Rgds
    Eng Swee

  • Mail Sender Adapter for Exchange 2007 IMAPS account

    Hi everybody,
    I have the following todo:
    I configured a Mail Sender Adapter that is supposed to fetch mails from an IMAP account.
    The mails contain text files with data to be processed by XI 3.0 SP 22.
    The mail server is Exchange 2007 and requires IMAPS. IMAP is not enough. I read the notes
    - 893590 - XI 3.0 Mail sender adapter with IMAP or POP with SSL problem
    - 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
    and configured the sender apapter as follows:
    URL:                     imaps://<ip address>/owa
    Authentication method:     Plain
    User:                    <domain>\<user>
    Password:                       topsecret
    Poll Interval: 5
    The first challenge is to setup the adapter with SSL. To do so, I added the Exchange server's
    root SSL certificate in the default truststore service-ssl via the KeyStorage service.
    This is necessary, as far as I know, to successfully validate the Exchange server's trusted
    certifacate which is being transfered to XI during SSL handshake.
    Since the communication channel in RWB is in status error with following message:
    mail client job stopped completly
    exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO owa doesn't exist.
    mail client job scheduled,
    I do not know how to setup SSL for IMAPS. I successfully tested a PING to the Exchange server.
    Are there already experiences with Exchange 2007?
    What I have to do to fetch mails from an Exchange 2007 IMAPS folder/account with a Mail Sender Adapter?
    Kind regards,
    Andreas

    Hi,
    It should be imap and not imaps.
    You can try imap://xxx.xxx.de:993/Inbox
    Make sure that port 993 is correct. If you have doubt, then you may try 143 which is default port instead of 993 in the above url.
    regards,
    ganesh.

  • SD: Change distribution channel in sales order.

    Hello,
    I have a situation where my end users has mistakenly entered a foreign distribution channel for a domestic sales order. The order have been saved and the goods issue posted. Is there a way to change the distribution channel at this stage?
    Thank you in advance,
    Anisah

    No, it is not possible to change it now. Best option will be to cancel the delivery and sales order if this order is big one because if you have sales/management reporting based on distribution channel then it will be shown uder foreign channel rather than domestic.
    If order is small and goods have already left the factory then you can leave this as it is and may be you don't want go through all the pains.

  • Picking mails from a particular sender using mail sender adapter

    Hi Everyone,
    I want to create a scenario in which i want to pick mails from a particular sender and send it to XI.
    I don't want all the unread mails to be sent to XI but only those belonging from a particular sender.
    How should i configure the mail sender adapter to achieve the same.
    Thanks and Regards
    Rahul Nawale

    Hi,
    there are two ways to do that:
    not standard:
    create a java proxy which will check your maibox for mails
    from only one particular sender and then send messages
    to the xi
    more standard:
    create a new accound and redirect your mails from a particular sender from the main mailbox to this new one
    and poll from this new one only...
    this way you'll be able to use atandard mail adapter
    with no changes at all
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Log Incompleteness for a distribution channel.

    Hi Experts,
    I have a change request because I have to assign a log for Incompleteness but just for a distribution channel.  I have seen that is possible assign to a Document Type, Item Category, schedule line categories, however I want to know if there is any way to assign for a specific distribution channel.
    Thank you and best regards.

    Dear Alberto
    May be if you can explain what exact control you require based on distribution channel,  we can explore the possibilities.
    thanks
    G. Lakshmipathi

  • Profit center in sales order .... WRT to Distribution channel

    Dear Folks,
      Here is a strange requirement to my client...based on distribution channel profit center needs to be derived in sales order  needs solution in  Standard SAP if available...typical example Mat X serves from 3 Distribution channels.....3 different profit centers needs to be derived in sales order based on DC ....I suggested the Substitution rule in FICO...but client is denying that....he  needs solution in SD only..if there is any wayout please let me know .
    Best Regards,
    SGR

    hi
    Defaulting PC from the material master is just one of the ways that SAP can do it, but since I can't currently remember anything about PCA I can't tell you what the others are!
    However, I did find the following documentation which looks to be the "standard" way of doing what you want. This is the IMG documentation of transaction 0KEM (menu path SPRO-Controlling-- Profit Center Accounting-- Assignments to Profit Centers-- Sales Orders-- Sales Order Substitutions).
    Define Substitution Rules
    In this activity you define substitution rules for finding the default profit center for sales order items. It makes sense to use substitution rules if the profit center proposed from the material master does not meet your requirements.
    Example
    You want to use a sales office or a distribution channel as a profit center.
    Standard Settings
    No predefined substitution rules exist.
    Activities
    Proceed as described under Maintain Substitutions in Customizing for FI-SL Special Purpose Ledgers. The following are predefined in
    Customizing for Profit Center Accounting:
    o The application area (Profit Center Accounting)
    o The callup point (Create Sales Order)
    o The field to be substituted (Profit Center)
    You can substitute the profit center with a constant value or by assigning a table field. It is also possible to use a user exit.
    Additional Information
    For more information on substitution rules, see the documentation for Financial Accounting on the component "FI-SL Special Purpose Ledgers" (in the chapter "Basic Functions"). Also, read the notes in the online documentation under Financial Accounting -> Special Ledgers ->Validation and Substitution -> Substitution.

  • Distribution channel in org model

    Hi Gurus,
            I assighned Ditribution channel 10 as attribute in Sales org,Sales off,Sales group.and for determination i used region and country,Based on region and country the Organizational unit is getting determined in the quotation correctly,But i am unable to get the values of sales org & Distribution channel automatically.
    Can u please help on this
    Regards
    Narayana
    Message was edited by:
            manam narayana

    Thanks shalini,
             I have done that yesterday and it is working fine,The problem is because when i press F4 in attributes for divisions in  org model,i am not getting two digits as i  done in SPRO.i am getting first one digit in division and the other digit and describtion is coming in describtion,so i forced the division with 2 digits,and my problem is solved
    The quostion is why i am getting one digit in F4 of division,For distribution channel it is fine .and when i didnt enter the division as attributes in org model,the determination of sales org and distribution channel is not taking in the order,only the responsible org unit is taking in order.
    Is that division important to be given in attrbutes of org model for determination of sales org and distribution channel.
    Please give me some clarification
    Regards
    Narayana
    Message was edited by:
            manam narayana

  • Error in mail sender channel : invalid sequence number

    Hello all,
    I'm having the following issue.
    I'm using the mail adapter to get messages from a mail server, which are attached to the mail.
    This interface is already productive, and is working fine most of the time.
    Only frequently I get the following error, which can be found in the java log.
    exception caught during processing mail message[630];
    java.io.IOException: the specified message not found: -ERR invalid sequence
    number
    This error seems only to appear when there are a lot of mails to be fetched.
    All the mail is read into PI and processed succesfully, only I also get a lot these errors.
    Does anyone know what causes this error?
    I also don't know where this sequence number is coming from, and what's the meaning of this.
    Is it possible it's trying to read the same mail more then once?
    The settings in the mail sender channel are:
    - transport protocol : POP3
    - message protocol : XIPAYLOAD
    - Use mail package : enabled
    - content encoding : none
    - Keep attachments : enabled
    - QOS : exactly once
    - Set adapter specific message attibutes : enabled
    The PI version is 7.01
    Thanks a lot in advance for the replies on this question.
    Kind regards,
    Marco van Iersel

    Hi
    Well we have used it with POP3 and it is working in the way as it should be.
    This feature is recommended  by sap when the number of emails to be read is large.
    You can set this additional parameter to restrict the number of mails fetched by sender mail adapter in one polling interval.
    Sometimes the mailbox configured for the sender mail adapter contains large number of unread mails, which exceeds the average expected number of mails in one polling interval. In such a case, processing of all the unread mails in the same polling interval by sender mail adapter degrades the system performance. To avoid this, set value of this parameter to the maximum number of mails to be fetched and processed in one polling interval. The remaining mails exceeding the limit would be processed in the next polling interval.
    That's why I have asked you to give it a try.

  • Dynamic Configuration of Mail receiver Communication Channel

    Hi,
    like in /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping for http receiver CC, i am trying to do header customisation, with XHeaderName1 for mail header fields like content-type, content-disposition, but it doesn't works ...
    in my mapping i've added :
    > (...)
    > DynamicConfigurationKey cDisposition = DynamicConfigurationKey.create("http:/""/sap.com/xi/XI/System/Mail", "XHeaderName1");+
    > dynaConf.put(cDisposition, "attachment;filename=myFile.txt");
    in Communication Channel ASMA i've added variable header : XHeaderName1 --> Content-Disposition
    in monitoring i see that XHeaderName1 is filled with attachment;filename=myFile.txt
    but in the mail send like this, this configuration has no effect
    Someone can help me ?
    Edited by: MedAmine on Aug 19, 2009 3:20 PM

    Only one standard mail header field can be influenced: this is indeed "Content-Disposition".
    You have done halve way, the only thing you have missed is to set the additional parameter 'OMail.AddContentDisposition' to false within 'Advanced Mode'.
    Have a look at this WiKi:
    http://wiki.sdn.sap.com/wiki/display/ESOAInfrastructure/Dynamic+Email+Attachment+name+for+Received+Mails+with+ASMA+and+without+using+mail+package

  • Configuring SMTPPlugin for sending mail to Internet

    Hi I have a WEB 640 system, and i need to send SMTP mails to yahoo and other internet smtp adresses via Lotus Domino server which is on the Internet.
    Steps done to send mail:
    1. In RZ10, Instance profile :- icm/server_port_1 with value: PROT=SMTP,PORT=8025,TIMEOUT=180
    2. go to sicf and enable smtp node (sapconnect)
    3. create a user "smtp_user" as service user and attach profile "s_a.scon"
    4. in sicf, double click the sapconnect node and maintain the service tab for logon data details
    5. under scot, maintain the domain name, and schedule a job for processing the mails
    On trying to send a mail to an internet mail address the following error occurs:
    Internal error: CL_SMTP_RESPONSE ESMTP error code is not known. 505 505Authentic
    I understand that something needs to be done on Lotus domino server. Can anyone suggest if either anything else is required in SAP or something that needs to be done on lotus domino.
    Any inputs / help is highly appreciated.
    Thanks,
    Chetan

    Hello Chetan,
    you have done the configuration for incoming emails to the SAP Server. You have to configure outgoing mail in transaction SCOT.
    To test if the Domino Server accepts SMTP to send emails try "telnet <DominoServerIP> 25" and this commands:
    helo Domino
    mail FROM: <[email protected]>
    rcpt TO: <[email protected]>
    data
    TEst
    Regards
    Gregor

Maybe you are looking for

  • Error After Importing Transport Request ( DEV to QA)

    Hi Experts, I have transported APCO, AREA and IOBJ. Now I'm transporting Infosource for Master Data. For testing purpose I've transported 0EMPLOYEE (transfer rules & transfer structure).Its failed with return code 8. The following log was displayed..

  • Can't install itunes in windows vista

    i'm just upgrade my gf's PC from Windows XP to Vista. I find that I can't install itunes. As it said visualbsic script is missing or disabled. How can i solve it??

  • Adobe Acrobat XI: PDF Portfolios - Nonfunctional Preview Window

    Good afternoon, all. I'm running AA XI Pro on a Dell Inspiron 1764 laptop. Win7/64-bit platform. My question focuses on the creation and viewing of PDF portfolios created from converted email. The conversion itself seems to work fine. I select the de

  • No problem with sdk 1.3- problem with 1.4!!!

    I am trying to make an interface using swing objects.. The buttons are looking like images (2D) when compiling and running the program with sdk 1.4... although if I use 1.3 everything is ok?? even with the new java version I still have the same probl

  • Converting from Adobe Photoshop Album

    I am considering jumping to the MAC platform for my home computers. I think I have all the wireless device and application issues resolved, but one hurdle remains... I have over 5000 photos edited, annotated, and organized in Adobe Photoshop Album. I