Skip to Content

Alert Mechanism Vs Email Adapter? please help!

Hi Experts,

I have requirement where I have to send error info as email. The email has following characteristics:

1. Content is multi-line.

2. Data is dynamic.

3. Content has to be formated. Like header, footer and '---' lines as separaters.

4. Content could be more than 100 lines.

5. More than one email content may be consolidated into one.

6. Content can also be sent in HTML format.

Is email alert mechanism suitable for this requirement? if yes then How?

If all of the above can be satisfied by Alert mechanism then what is the use of Email adapter?

Are there any pros and Cons of using Alert mechanism and Email adapter?

Please help!

Thanks

Gopal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 05:44 AM

    Hi Gopal,

    Please be specific in your question. Do you want to send an error info as an e-mail when your scenario causes an error or Do you want to send an error log which is generated for any other scenario as an e-mail attachment/Error log’s Content as the body of a mail. Both these things are possible in SAP XI 3.0.

    1. We can send an e-mail with multi-line content using E-Mail Adapter.

    2. We can set Dynamic Data as the e-mail content.

    3. The Dynamic Content has to be formatted either in Mapping or in Module and then sent to E-mail Adapter. E-Mail Adapter cannot do the formatting.

    4. Content can be of any number of lines.

    5. The consolidation should be done in Mapping or in a Module program and the consolidated data should be given to the adapter.

    6. Yes Content can also be set in HTML format

    The above said points are possible in SAP XI 3.0’s email adapter. Alert Mechanisms can be used when you want to send an alert on any event occurrence. It has many limitations like the content should be within specified length etc. we cannot use alert mechanism to pick a file and post the content of the file as an Email. Alert mechanism will work only for the alert categories which you have defined.

    Regards

    kausik m

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Kausik,

      I want to send error info as body of email. I am not sending as attachment.

      Actual we are using a BPM to create order. There are various stages before an order is created. So if there are errors in each stage then we are consolidating all the error info into one.

      Moreover there can be error in each line item. Note that there can be multiple line items for an order. So there can be errors for each line item.

      I think you should not worry about my architecture. My idea behind the question is to understand the capabilities of sending email using alert mechanism and compare that with using Email adapter.

      It will be great if you any comparison chart/doc that you send me. I will eb greatefull to you.

      Thanks

      Gopal

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 07:35 AM

    Hi Gopal,

    I will suggest you to go for Alert Framework for sending mail, All your requirements can be met by Alert Framework and there are many advantages like integration with UWL, seperate Alert inbox, forwading, configurable etc.

    For sending multi line dynamic data, you have to use a user defined function

    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

    Hope this is of some help.

    Best Regards,

    Naresh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.