Mail using BPM

Hi All,
is it possible to send a mail with content of the body(based on mapping b/w error record and Mail package)
and payload attachment(error record Source payload) from bpm using mail adapter?
My Scenario is JDBC to SOAP scenario. The flow of BPM is used as below:
1) Receive step to receive the records
2) Transformation(Source structure to SOAP request) step to transform the records into multiple orders
3) Block step is to send the orders one after the other(parforeach)
      In Block step 1) Sync send(Req,Res,Fault) step is to send the order synchrously.
    if the order is failed at webservice side, as per to my knowledge bpm can not handle the fault message and it throws the system error, then i need to send a mail using mail adapter to the sender with the source payload.
    In the control step i used the transformation to map between the SOAP request and mail package and then i used the send step to send mail.
Here my question is that whether it is possible to send the source payload(the message in the first receive step) as an attachment and the mail content based on the transforamtion between SOAP request and Mail package?
If this case is possible! Can you please explain the steps to be follwed to achive this requirement.
Thanks In Advance!
Edited by: SAPPI116 on Oct 17, 2011 11:48 AM

Hi,
I  don't know each steps to acheive your goal, but here some ideas:
see this Michal's blog [The specified item was not found.] for the attachment of your payload, else if it's not enough, then do some search with word "PayloadSwapBean".
After that, in BPM, you can merge two messages in only one, so yes I think it's possible by using a multi-mapping:
   - Source 1 = Payload of the 1st receive step
   - Source 2 = Payload dedicated to your SOAP.
   - Target = a Mail-package based on your Source 2 with the Source 1 in attachment.
Regards.
Mickael

Similar Messages

  • Dynamic text in PI Alerts without using BPM

    Hello everyone,
    Is it possible to have dynamic text in alert mail subject or mail details without using BPM in PI?
    If I want to configure generic single alert category for all interfaces in my project , and in the subject line of Alert mail, I need to have the Interface ID (unique identifier for that interface) or integration directory scenario name for which this alert has been raised, then is it possible to use some custom alert container for this purpose?  Or is there any other way to have these dynamic texts ?
    We are using PI7.1 in project landscape.
    Thanks in advance,
    Minal

    Hi,
    >>I need to have the Interface ID (unique identifier for that interface) or integration directory scenario name for which this alert has been raised
    those two are not available in the container:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
    Regards,
    Michal Krawczyk

  • Multi Mapping - Receiver IDOC & Mail with BPM

    Hi,
    Is it possible to use BPM with Multi Mapping for IDOC & Mail receivers sent parallely..
    Appreciate your help ..
    Thanks,
    vasanth.

    Hi Michal,
    Thanks Michal,
    We are using PI 7.1, Our Scope to do File to IDOC & Mail scenario in between we have to do RFC Lookups..
    Could you pls guide me thru the steps fo BPM,
    1 SA -> OB to AA
    2 ID  -> OB to AA & AA to Recv
    3.RD -> OB to AA & AA to Recv
    4.RA -> AA to IB & AA to IB
    Correct me if i'm wrong..
    Clarification : Is there is any way out to implement this scenario with out BPM.
    We already implemented this scenario with 2 MM & 2 OM, Scenario works fine...but we have to use 1 Mapping..
    Appreciate your help in advance..
    Thanks,
    vasanth.

  • ** File to Mail through BPM - Holding Messages

    Hi Friends,
    We are running File to Mail scenario in our PRD server. We use BPM design to collect messages and grouping it send to mail id with XL attachments.
    Some of the messages are in Holding state i.e from the BPM to Mail adapter.  I have compared the successful messages payload similar to the holding messages payload. There is no difference. Both payload are correct.
    When I resend the holding message, it tries to resend and again going into holding state. I am not able to trace out the reason. Because, the 'To' address is same, body of the content is same (except value).
    Do I need to check anything in BPM side ?
    Can you help me to identify this problem.
    Kind regards,
    Jegathees P.

    Hi,
    Does the messages are gng to hold state in the Mail Adapter Receiver??
    If so nthng needs to be done in BPM..
    But instead u need to check the Mail adapter Receiver.....
    In message monitoring fr this interface and namespace please check if any previos messages are struk in queue..
    Check by changing the dates of previos also and delete them....
    Once u delete all the messages previos error status... now run end to end.. u will get all the mails...
    If still any prblm.. do post
    If any question you are closing, please do also post the resolution you found..... So that others can benifit from that
    and we can avoid repeated question
    Babu
    Edited by: hlbabu123 on Sep 28, 2010 4:54 PM
    Edited by: hlbabu123 on Sep 28, 2010 4:57 PM

  • Send Mail in BPM 11g

    Hi.
    I´m using BPM 11g and i want to send mail to different roles.
    Someone knows how to implement a service to send mail..?

    Human tasks in 11g have some out of the box capabilities for notifications (email being one of the transport mechanisms). For details refer to the documentation:
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/bp_hwfmodel.htm#BABICIAH
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/bp_designtf.htm#CHDJBIDE
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10226/ns_config.htm#BABJFFAF
    If the out of the box capabilities don't do what you need, then you can use the User Messaging Service API or javax.mail API to implement your custom functionality.
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/partpage_vii.htm#BCIHAJJI

  • Doubt regarding Multiple recervers without using BPM

    Hi Experts,
    Our  RFC<->XI<->SOAP asynchronous scenario is working fine,  in this case RFC is sender, SOAP is Receiver,  i want to send some fields form the response of SOAP to be send it as mail using Mail adapter.
    My existing asynchronous scenario is like this:
    R3 (rfc-sender) <-> XI <-> WebService ( soap-receiver)
    i) R3-> sends the request to-> WebService via xi
    WebService -> sends the response to the R3 via XI
    ii) WebService (Rfc-sender) sends response to WebService (SOAP-Receiver) via XI.
    now i need to modify above scenario like this:
    I want to send WebService response to Mail and R3 as well at the same time. in this case i need to use Receiver Mail adapter fields need to be send it as e-mail using mail.
    in this case : RFC adapter configured as sender
    SOAP adapter configured as Receiver
    Mail adapter configured as Receiver
    Please advice me how should go aobut this scenario with out using BPM.
    Thanks,
    Dhanush.

    Hi,
    If you are using ZRFC as sender,
    then create a outbound proxy for triggering message
    ti XI and mail receiver.
    Call this proxy in your ZRFC to avaod BPM.
    Your SOPA system is configured as Receiver so it won't work as sender for mail to trigger it. So proxy would be better case.

  • Handling ALEAUD using BPM

    Hi Gurus,
    I have a scenario File -> PI -> Idoc (PI and R/3). Here Idoc sent from PI to PI itself and R/3 (6.0 and 3.1i). Once the Idoc received at target systems then all the target systems needs to send ack (status code) back to PI. If the Ack is 51 then PI needs to send an alert mail. If Ack is 53 then no need to send an alert mail. Any one can please give an idea how to implement this scenario. Is i need to use BPM for this scenario? if yes please provide the step by step solution. 
    Thanks,
    Koti

    hi,
    see this document on handling IDOC acknowledgements. This might give you some pointers.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    coming to sending alerts for status codes...u need to go for BPM
    regards.

  • Alerts through Email Using BPM

    Hi Friends,
                    can anybody help me on BPM as i am new to BPM.I need a help from you , i want to send an alert through Email using BPM can any body send me a sample scenario related to this one.

    In BPM you create the Alerts. In Alert Configuration (in RWB) you can define for each Alter Category whether it is to be forwarded via Email.Prerequisites for that:
    1. XI/PI must have been configured to send Mails (SMTP)
    2. All receivers must have maintained an Email Adress in SU01
    3. Only users defined in XI/PI can get the mails.
    4. Schedule the regular sending of Emails out of the XI/PI system using transaction SCOT
    5. The Mail Server (Lotus Domino or Exchange Server) must accept Mails from XI/PI system (Server and Port). Ask your Mail Guys.
    6. If you do not define the Mail Server as IP address in SMTP configuration take care that the XI/PI is able to resolve Server Name to IP Address (e.g. by maintaining local hosts ob XI/PI).
    Hope this helps!
    Regards,
    Volker

  • Alert by mail without BPM

    I am new for Alert Configuration, no idea how to configure an alert ?
    My Scenario is file to RFC.I am doing this scenario with out bpm.
    If any case any error comes, i need to send a mail which contains the material number also.
    With out BPM how can i achieve this ?
    Study SAP

    hi,
    yes u can configure alert without using BPM.
    use the FM  'SALERT_CREATE'.
    steps,
    1) define ur alert category in ALRTCATDEF tcode.
    2) import that category in alert configuration at RWB.
    3)define the Rule for that category like sender interface receiver interface..
    4)define the fixed recipient (username of the recipient)
    5) now define a udf in which call the FM ''SALERT_CREATE'.
    for reference please go through the bhavesh kantilal blog in sdn.
    regards,
    navneet.

  • Can not find some messages in Mail using search

    I have some problems with Mail.app I can not find some messages in Mail using search, the strange thing is that sometimes mail search finds some messages, but after rebuilding spotlight index the search displays other messages with the all messages searched using same search criteria. I have also tried to delete Envelope index file from the Mail folder in usr/library and forced mail to import all mailboxes but it started to crash importing some of mailboxes - I deleted the messages from that mailboxes, imported remaining mailboxes and tried to rebuild mailbox, but everything without a successes. Any ideas how to solve it?

    Hi lnaki vila
    I'm using pi 7.0 version
    i can see the other scenarios like SOAP to RFC, SOAP to IDOC,FILEto IDOC
    in sender side i'm not using any communication channel and adapter engine i'm just using http client tool for testing purpose
    i'm getting the response that's fine because its a synchronous communication
    i checked sxmb_adm in that -->integration configuration LOGGING parameter of category RUNTIME is set to  ENGINE_TYPE and current value is HUB(Integration server)
    thanks in advance
    regards
    Satish

  • Problems to SEND MAIL using WWV_FLOW_MAIL.SEND - APEX_MAIL

    I tried send mail using the code below
    DECLARE
    l_body      CLOB:= EMPTY_CLOB;
    l_body_html CLOB:= EMPTY_CLOB;
    BEGIN
    wwv_flow_api.set_security_group_id;
    l_body :='<html>
    +<head>+
    +<style type="text/css">+
    +body{font-family: Arial, Helvetica, sans-serif;+
                                   +font-size:10pt;+
                                   +margin:30px;+
                                   +background-color:#ffffff;}+
    +span.sig{font-style:italic;+
    font-weight:bold;
    color:#811919;}
    +</style>+
    +</head>+
    +<body>+
    +</html>';+
    l_body_html := '<html>
    +<head>+
    +<style type="text/css">+
    +body{font-family: Arial, Helvetica, sans-serif;+
                                   +font-size:10pt;+
                                   +margin:30px;+
                                   +background-color:#ffffff;}+
    +span.sig{font-style:italic;+
    font-weight:bold;
    color:#811919;}
    +</style>+
    +</head>+
    +<body>+
    +</html>';+
    wwv_flow_mail.send('[email protected]','[email protected]',nvl(l_body,'Texto com erro'),nvl(l_body_html,'erro2'),'K','[email protected]',
    +'[email protected]','[email protected]');+
    wwv_flow_mail.push_queue;
    END;
    +/+
    This code return the message:
    Mail To From Subject CC BCC Created On Created By Error Created
    CHECK$01 [email protected] [email protected] K [email protected] [email protected] 08/23/2010 03:05:00 PM SYS
    ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
    Follow my mail settings
    SMTP Host Address : POP.SLE.TERRA.COM.BR
    SMTP Host Port 110
    Administration Email Address [email protected]
    Notification Email Address [email protected]
    what´s wrong ?

    I would try sending just basic text first, then move on to getting your other pieces dynamics. The very last step to me would be the email body.
    Here is an example of a basic text email I use:
    declare
      e_id        NUMBER;
      c_id        NUMBER;
      emp_nm      VARCHAR2(100);
      clrk_id     NUMBER;
      e_clrk      VARCHAR2(47);
      e_org       NUMBER;
      e_sender    VARCHAR2(50);
      e_recip_lst VARCHAR2(255); 
      e_cc        VARCHAR2(100);
      e_bcc       VARCHAR2(100);
      e_subj      VARCHAR2(50);
      e_msg_ln1   VARCHAR2(100);
      e_msg_ln2   VARCHAR2(100);
      e_msg_ln3   VARCHAR2(100);
      e_msg_ln4   VARCHAR2(100);
      e_msg_ln5   VARCHAR2(100);
      e_msg       VARCHAR2(1000);
      CRLF        CHAR(2) := CHR(13) || CHR(11);
      tmp_flag    NUMBER;
    begin
       if :P2_INJURY_FLAG = 1 then
       -- find out if it has changed first so we don't keep sending emails
        select injury_flag, VEH_LOC
          into tmp_flag, e_org
          from APPS.tc
         where tc_id = :P2_TC_ID;
       if :P2_injury_flag <> tmp_flag then
        begin
           select FN_GET_USER(nvl(v('APP_USER'),user))
             into clrk_id 
             from dual;
          select ADMIN_USERNAME
             into e_clrk
            from APPS.APEX_ACCESS_CONTROL
           where ID = clrk_id;
        exception
           when others then null; -- in case we cannot find the user
        end;
        e_id          :=  :P2_EMP_ID;
        c_id          :=  :P2_TC_ID;
        select EMP_FNAME ||' '|| EMP_MNAME ||' '|| EMP_LNAME into emp_nm
          from APPS.EMPLOYEES
         where EMP_ID = e_id;  --
        select RECIPIENTS, CC, BCC
          into e_recip_lst, e_cc, e_bcc
          from APPS.SAFETY_NOTIFICATIONS
         where ORG_ID = e_org;  --
          e_sender    :=  '[email protected]';
          e_subj      :=  'Loss Reported';
          e_msg_ln1   :=  'Employee: ' || emp_nm || ' (' || e_id || ')'  
                          || CRLF;
          e_msg_ln2   :=  'Was reported as sustaining a loss' || CRLF;
          e_msg_ln3   :=  'by ' || e_clrk ||CRLF;
          e_msg_ln4   :=  CRLF;
          e_msg_ln5   :=  'Sent ' || to_char(sysdate,'MONTH DD,YYYY HH:MI AM');
          e_msg       :=  e_msg_ln1 || e_msg_ln2 || e_msg_ln3 || e_msg_ln4 || e_msg_ln5 || CRLF || e_recip_lst;
         utl_mail.send(
           sender => e_sender,
           recipients => e_recip_lst,
           cc => e_cc,
           bcc => e_bcc,
           subject => e_subj,
           message => e_msg);
      end if;
    end if;
    end;

  • Cannot Send Mail using AIM account.

    I can receive mail fine but when I try to send mail I get the following message:
    Cannot send mail using the server smtp.aim.com:EmilyLozano.
    Use the pop-up menu below to try a different outgoing mail server. All messages will use this server until you quit Mail or change your network settings.
    Message from: Emily Lozano <[email protected]>
    I left for a trip a few days ago, came back and now for no apparent reason cannot send mail as I always have. I have reconfigured the port to 587 and that did not help. Any suggestions? (I can send and receive fine via the web, but I really hate it.)

    I'm glad you got it figured out. So many times people on this forum sit around waiting for help when they could have retraced their steps, like you did, to figure out the source of the problem.

  • If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    OUtlook was already set as the mail client for FF, and is my operating system (XP)'s default mail programme. therefore problem not solved at all. what I get whenever I follow a link in a webpage to send an e-mail is a little pop up window asking me to sign in to gmail or open an account. any other suggestions?

  • How to update the sent mail using SO_NEW_DOCUMENT_ATT_SEND_API1

    I have a requirement to update/ append the sent mail like a trail.Since i am sending mails using SO_NEW_DOCUMENT_ATT_SEND_API1, how can i update new contents to sent mails using this RFC???Please help me.

    you may have to store content of each time mail send then only, you can send with history.

  • How can send mails using hotmail/rediffmail domain name?

    I have used the below code to send a mail using javamail API?Even when I am sending my application does not have notified any of error/exceptions,But the message is not reached to I have given receipient's address in the to field.
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class Sendmail1 extends HttpServlet {
    private String smtpHost;
    // Initialize the servlet with the hostname of the SMTP server
    // we'll be using the send the messages
    public void init(ServletConfig config)
    throws ServletException {
    super.init(config);
    smtpHost = config.getInitParameter("smtpHost");
    //smtpHost = "sbm5501";
    smtpHost = "www.rediffmail.com";
    public void doGet(HttpServletRequest request,HttpServletResponse response)
    throws ServletException, java.io.IOException {
    String from = request.getParameter("from");
    String to "[email protected]";
    String cc = "[email protected]";
    String bcc ="[email protected]";
    String smtp ="www.rediffmail.com";
    String subject = "hai";
    String text = "Hai how r u";
    PrintWriter writer = response.getWriter();
    if (subject == null)
    subject = "Null";
    if (text == null)
    text = "No message";
    String status;
    try {
    // Create the JavaMail session
    java.util.Properties properties = System.getProperties();
    if (smtp == null)
    smtp = "www.rediffmail.com";
    properties.put("mail.smtp.host", smtp);
    Session session = Session.getInstance(properties, null);
    //to connect
    //Transport transport =session.getTransport("smtp");
    //transport.connect(smtpHost,user,password);
    // Construct the message
    MimeMessage message = new MimeMessage(session);
    // Set the from address
    Address fromAddress = new InternetAddress(from);
    message.setFrom(fromAddress);
    // Parse and set the recipient addresses
    Address[] toAddresses = InternetAddress.parse(to);
    message.setRecipients(Message.RecipientType.TO,toAddresses);
    Address[] ccAddresses = InternetAddress.parse(cc);
    message.setRecipients(Message.RecipientType.CC,ccAddresses);
    Address[] bccAddresses = InternetAddress.parse(to);
    message.setRecipients(Message.RecipientType.BCC,bccAddresses);
    // Set the subject and text
    message.setSubject(subject);
    message.setText(text);
    Transport.send(message);
    //status = "<h1>Congratulations,</h1><h2>Your message was sent.</h2>";
    } catch (AddressException e)
    status = "There was an error parsing the addresses. " + e;
    } catch (SendFailedException e)
    status = "<h1>Sorry,</h1><h2>There was an error sending the message.</h2>" + e;
    } catch (MessagingException e)
    status = "There was an unexpected error. " + e;
    // Output a status message
    response.setContentType("text/html");
    writer.println("<title>sendForm</title><body bgcolor= ><b><h3><font color=green><CENTER>CALIBERINFO.COM</CENTER></h3>Your message was sent to recepient(s).<br><font color=red>"+"\n"+to);
    writer.println("<br><br><a href=e:/mail/javamail/mail.html>back to compose</a>");
    writer.close();
    Please any one help me out from this probs.
    Awaiting for yours reply,
    or give me a reply to: [email protected]
    Regards,
    @maheshkumar.k

    Hi,
    how can send mails using hotmail/rediffmail domain name?In your java application,you specified www.rediffmail.com as your
    smtp server.But that is the address of that website.Try will a smtp
    server instead.For a list of free smtp servers,please visit http://www.thebestfree.net/free/freesmtp.htm
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

Maybe you are looking for

  • HT204088 How to know the rest of money in a credit card and the total of purchase amount?

    How to know the rest of money in a credit card and the total of purchase amount?

  • Replacement transaction for AFBD in ECC 6.0

    We upgraded our system from 4.6C to ECC 6.0.  The AFBD tcode was eliminated.  It RE-created a BDC Session for Depreciation Posting Run.  Does anyone know how this may be done differently in ECC 6.0?  Thank you in advance.

  • Apps not showing as updated

    My First GeniPad had problems syncing.  It stayed at Step 1, backing upiPad for over three hoursand would not continue. My iTunes is on a Windows PCrunning XP. I previously created a backup with noapparent problem and updated to OS 4.33. But then I n

  • Making Settlement rule mandatory for creating any WBS element

    Hello All, We have an requirement that system should not allow us to save any WBS element until the settlement rule is maintained. This we want only for WBS elements where Investment rule is not assigned. Can alyone help me to find out if this is pos

  • Manuel slide timing with an audio track

    My wife is a professor and she is wanting to post podcasts of her lectures. I am trying to figure out how to include her Keynote '08 slides in those podcasts. Is there any way in Keynote '08 to add an audio file and still have manuel timing of the sl