RFC to Mail

Hi all...
I need some help to know, how can I do a mapping from RFC to Mail...
I'll receive some data from RFC, creating a excel file with this. After, I need to pick this file and send by mail...
Anybody has some example, link or something more about this?!
Thanks!

to add more...
Try to use the pre-delivered content message type for Mail adapter.
and fallow these blogs,
https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_weblog&query=mail+adapter&adv=false&sortby=cm_rnd_rankvalue

Similar Messages

  • File to RFC (Error Mail )

    Hi,
    I have a requirement like legacy system details ( flat file ) send to RFC/Bapi and the status ( Success or Error ) should be updated to the concerned people with the mail. How can we achieve this in XI?
    I have done with the File to RFC scenario...need help on update the status (error/ success) with mail.
    Where should we implement mail adapter settings for this scenario?
    Can anybody share their experiences with me.
    Cheers.,
    Esha

    Hi !
    You can make it as a File - Mail scenario, and call the RFC synchronously using JCO during the graphical mapping (or java mapping) using a user defined function.
    Then, based on the response of the RFC, decide what should be the content of the mail or maybe decide not to send it.
    pros: no use of bpm
    cons: need ad-hoc methods for managing connection parameters of the rfc connection.
    other:
    RFC Scenario using BPM --Starter Kit
    Regards,
    Matias
    ps: please award points if helpful.
    Please read the Forum's Rules of Engagement,
    i.e.,
    /thread/117188 [original link is broken]
    and refrain from requesting points
    SDN PI/XI Forum Moderator

  • RFC- JDBC- Mail

    Hi
    I want to send something through RFC adapter to JDBC to update or insert some data and I want to have return code and send it through mail adapter.
    RFC sender interface should be Async, other interface can be sync or aync but as far as I know, in order to get return code from JDBC, the receiver JDBC interface should be sync, actually everything is ok so far, I could handle until this part but when I try to forward the return code from JDBC to Mail adapter, thats where I stuck, how can I handle this scenario with async mail interface?
    Thanks

    hi,
    >>>>I could handle until this part but when I try to forward the return code from JDBC to Mail adapter,
    you have to use BPM in order to do this
    all you have to do is to map jdbc sync response to the mail adapter (message interface) - so just another transformation step in your BPM and then
    you'll have your return code in your mail adapter message
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • RFC - XI - Mail scenario special characters

    Hi Experts,
    I'm developing the mentioned scenario and have one problem.
    In my scenario I have one transformation RFC -> XML that uses graphical mapping one second transformation XML -> Mail package that is a java mapping where I take one of the fields of the XML, and pack all XML in the Content field.
    The process works, but when in the XML I have one text data and it has one special character(in spanish á, é, í, ñ...), the payload and the mail that is sent reflects those characters as ��. For example if the data is 'dirección', in the mail sent appears 'direcci��n'
    Best Regards.
    Alfredo Lagunar.

    Hola Alfredo,
    In deed you have a character encoding mismatch.
    The encoding the browser is expecting and the encoding of your mail message must match or you will see those strange characters instead of á, é, etc.
    So you either change your browser's default encoding (Internet explorer: view->character encoding) or you indicate in the Mail package the type of content and the encoding you are using so your browser or email program knows what is the correct encoding.
    You see the error in SXMB_MONI because it uses embedded browser windows to display the XML messages.
    To fix it you have to put the following string: "text/html; charset=utf-8"
    into the field Content_Type of the Mail package in the message mapping you use to generate the email.
    If you are using XIALL in message protocol instead of Mail package (XIPAYLOAD) you have to add the message transform bean (MTB) to the Mail adapter modules. Using the MTB add the Transform.ContentType parameter with the same string as above.
    You can see how to configure the MTB in the sap online documentation: http://help.sap.com/saphelp_nw70/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
    Hope it helps...
    Saludos!
    -Sam.

  • File2RFC Scenario in XI-want to send and the response of rfc by mail/fil

    I have an File to RFC scenario in PI.The initial requirement was to just pick the file and update the data in sap.its file to rfc sceanrio in XI...
    *Now i need to send the response of the rfc function module via file or could be via mail*
    Please tell me the best way to approach..howdo i handel this scenario.
    Thanks.
    Rohan Patil.

    Hello Rohan,
    In your case you can follow two approaches.
    1. If need to send RFC Response through Mail Use BPM
    2. IF need to send via File
           2.1 you can implement with the  BPM
           2.2 you can implement the same without BPM also(but needed SP10 of PI7.0 for this implementation by using standard modules check wiki for the same )
    Regards
    Rajesh

  • Doubt in file to rfc to mail scenario

    Hi All,
    I have a doubt in configuring File2Rfc2Mail scenario,
    Actually my requirement is to send flat File to RFC, and trigger mail alerts for successfull execution , like after successfully posting the mesg to rfc i need to trigger a mail alert to mailserver,
    For that what i thought to do is file to rfc and from rfc response to mail , i don't know whether i can do like that or not , do anybody help me in this issue,
    Thanks in advance,
    Nousheen.

    Hey,
       Your BPM will be like this.
    recieve step(file)-> sysnchronous send step(rfc)-> send step(mail)
    3 abstract interfaces:-
    abstract asynchronous(file structure)
    abstract synchronous (in this request as file sturcture and response as mail structure)
    mapping between abstract synchronous and rfc(no need for transformation as mapping is outside)
    abstract asynchronous(mail structure)
    create two container variables, one for each abstract asynchronous interface.
    use them in recieve step(file) and send step(file)
    revert in case of any queries.
    reward points if useful.
    regards,
           Milan

  • Send RFC Response by mail -async

    Hi
    I have JMS -> XI -> RFC Secnario ( asynchronous )
    i want to send the response of rfc by mail adapter to a user
    how can this process developed in BPM ? can  u give me any examples?
    thx,Shai

    go through the blog below, which talks about the almost similar concepts
    that blog uses File --> RFC --> File but in your scenario you'll have to use
    JMS --> RFC ---> Mail. But the procedure to follow is the same in both cases.
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    --Archana

  • Mail receiver with attachment

    Hey,
    I have a rfc to mail scenario, it works but i get the payload(data) as an attachment, how do i change it so payload will be in mail body ?
    TX

    Hey Abhishek,
    what do you meen by "HTML formatting", can you please explain how to do that ?
    how can i use both mail package and XSLT ? isnt it one or the other ?
    this is my xslt:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:template match="/">
    <rfc:Y_SD_XI_FEED_BACK_1 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
       <xsl:element name = "COUNTER_E" >
          <xsl:value-of select = "//COUNTER_E" />
       </xsl:element>
       <xsl:element name = "DATUM" >
          <xsl:value-of select = "//DATUM" />
       </xsl:element>
       <xsl:element name = "DELIVERY" >
          <xsl:value-of select = "//DELIVERY" />
       </xsl:element>
       <xsl:element name = "FILE_NAME" >
          <xsl:value-of select = "//FILE_NAME" />
       </xsl:element>
       <xsl:element name = "FUNCNAME" >
          <xsl:value-of select = "//FUNCNAME" />
       </xsl:element>
       <xsl:element name = "INV_DOC_NO" >
          <xsl:value-of select = "//INV_DOC_NO" />
       </xsl:element>
       <xsl:element name = "MANDT" >
          <xsl:value-of select = "//MANDT" />
       </xsl:element>
       <xsl:element name = "PO_NUMBER" >
          <xsl:value-of select = "//PO_NUMBER" />
       </xsl:element>
       <xsl:element name = "SYSID" >
          <xsl:value-of select = "//SYSID" />
       </xsl:element>
       <xsl:element name = "TEXT" >
          <xsl:value-of select = "//TEXT" />
       </xsl:element>
       <xsl:element name = "SYSID" >
          <xsl:value-of select = "//SYSID" />
       </xsl:element>
       <xsl:element name = "UZEIT" >
          <xsl:value-of select = "//UZEIT"/>
       </xsl:element>     
       <IT_RETURN>
       <xsl:for-each select = "//IT_RETURN/item" >
       <item>
          <xsl:element name = "TYPE" >
          <xsl:value-of select = "//TYPE" />
       </xsl:element>
       <xsl:element name = "ID" >
          <xsl:value-of select = "//ID" />
       </xsl:element>
       <xsl:element name = "NUMBER" >
          <xsl:value-of select = "//NUMBER" />
       </xsl:element>
       <xsl:element name = "MESSAGE" >
          <xsl:value-of select = "//MESSAGE"/>
       </xsl:element>  
          <xsl:element name = "LOG_NO" >
          <xsl:value-of select = "//LOG_NO" />
       </xsl:element>
       <xsl:element name = "LOG_MSG_NO" >
          <xsl:value-of select = "//LOG_MSG_NO" />
       </xsl:element>
       <xsl:element name = "MESSAGE_V1" >
          <xsl:value-of select = "//MESSAGE_V1"/>
       </xsl:element>
          <xsl:element name = "MESSAGE_V2" >
          <xsl:value-of select = "//MESSAGE_V2"/>
       </xsl:element>
          <xsl:element name = "MESSAGE_V3" >
          <xsl:value-of select = "//MESSAGE_V3"/>
       </xsl:element>
          <xsl:element name = "MESSAGE_V4" >
          <xsl:value-of select = "//MESSAGE_V4"/>
       </xsl:element>
          <xsl:element name = "PARAMETER" >
          <xsl:value-of select = "//PARAMETER"/>
       </xsl:element>
          <xsl:element name = "ROW" >
          <xsl:value-of select = "//ROW"/>
       </xsl:element>
          <xsl:element name = "FIELD" >
          <xsl:value-of select = "//FIELD"/>
       </xsl:element>
          <xsl:element name = "SYSTEM" >
          <xsl:value-of select = "//SYSTEM"/>
       </xsl:element>   
       </item>
    </xsl:for-each>
    </IT_RETURN>
    </rfc:Y_SD_XI_FEED_BACK_1>
    </xsl:template>
    </xsl:stylesheet>
    Edited by: Zevik Heinoch on Feb 9, 2009 3:07 PM

  • Change "subject" in Receiver Mail Adapter Module

    Hi all,
    following the "How To Guide" I developed a Module for my receiver mail adapter. Everything works fine.
    Now my question: is it possible to change the content of the mail-"subject" in the module?
    Your help is appreciated.
    Carmen

    Hi Stefan,
    maybe I should describe my problem more detailed:
    My scenario is RFC-XI-Mail. I use the mail package to determine the receiver of the mail dynamically. Another thing I want to do, is to attach a file to this mail which is located on the server. So far so good.
    My problem is, that the name of the file (which I need in my adapter module) changes for every mail. So what I need is the possibility to deliver it to the adapter module.
    I found out that it is possible to read the payload. So my idea was to hand it over in one of the fields like "subject". But now I want to change the subject afterwards...(delete the filename).
    Maybe you have another idea?
    Regards
    Carmen

  • Send a mail with a body and attachment

    Hi guys!!!!
    I have a RFC -> XI -> Mail Scenario!
    I'm able to send text in the body of the mail. I'm able to send text as an attachment. But I'd like to send both (text in the body and other text as an attachment). How can I do this?
    thanks in advance
    Julio

    First, I'd like to thank all the replies! And Jagesh, I solved my problem reading the thread you told me.
    I created a message as follow:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
         <Subject>test</Subject>
         <From>test_source @ abc.com</From>
         <To>test_target @ abc.com</To>
         <Content_Type>multipart/mixed; boundary="AaBb--984dfgeSSd3532"</Content_Type>
         <Content>*AaBb984dfgeSSd3532*
    Content-Type: text/plain
    Hello, this is sample data.
    *AaBb984dfgeSSd3532*
    Content-Type: text/plain;name="CSV_data.csv"
    abc
    </Content>
    </ns:Mail>
    In addittion to this, I configured Mail channel as follow:
    Content encondig = none
    Keep Attachments = false

  • Need help with scenario BPM Http-RFC Sync/async bridge

    hi all!
    i've got the following scenario: HTTP-BPM(XI)-RFC synchronous both of them. for that, i'm using S/A bridge in the BPM, but i'm getting the error 'Timeout condition of pipeline reached'. i think the problem is that the process gets lost in the sync/async communication, because in the trace level shows CL_XMS_PLSRV_CALL_BPE-ENTER_PLSRV" and after that every message are 'wait time starting'.
    don't know the reason of the error. Maybe I missed something to configure?
    the BPM is like this:
    Receiver(Open Sync/Async bridge) -> Transformation (mapping from http request to RFC request) -> SyncSend (RFC request and response) -> Transformation (mapping from rfc response to http response) -> Send (Close S/A Bridge)
    the IR is configured like this:
    Message Types u2013 External Definitions u2013 Imported Objects
    mt_cxml_request -> contains xsd of xcml request template.
    mt_cxml_response -> contains xsd of xcml response template.
    zintegracion_pedidos -> imported RFC from R/3
    zintegracion_pedidos.response -> imported RFC from R/3
    Message Interfaces
    mi_cxml_request_async_abs
    mi_cxml_request_sync_abs
    mi_cxml_request_sync_out
    mi_xcml_response_async
    mi_rfc_request_asyn_abs
    mi_rfc_request_sync_abs
    mi_rfc_request_sync_in
    mi_rfc_response_async_abs
    Message Mappings
    mm_cxml_request_to_rfc_request -> mapping from http request (cxml) to rfc request.
    mm_rfc_response_to_cxml_response -> mapping from rfc response to http response (cxml).
    Interface Mappings
    im_cxml_request_async_abs_to_rfc_request_async_abs
    im_rfc_response_async_abs_to_cxml_response_async_abs
    and the ID is configured like this:
    Business system DES -> created business system for RFC adapter with interface mi_rfc_request_sync_in as receiver. Comunication channel u2018RFC Receiveru2019
    Businnes service VW -> created businnes service for HTTP adapter with interface mi_cxml_request_sync_out as sender. Comunication channel u2018HTTP Senderu2019
    Receiver Determination
    two receiver determinations. One for BPM and the other one for RFC(R/3):
    |VW| mi_cxml_request_sync_out:
    |BPM_PO| mi_rfc_request_sync_abs:
    Interface Determination
    two interface determinations:
    |VW| mi_cxml_request_sync_out | | BPM_PO:
    |BPM_PO| mi_rfc_request_sync_abs | * | * :
    Sender Agreement
    VW
    mi_cxml_request_sync_out
    Receiver Agreement
    |BPM_PO| |DES| mi_rfc_request_sync_in

    hi all,
    i've removed the transformations from the BPM, and i've created:
    in IR:
    - interface mapping: im_xcml_request_to_rfc_request_sync_abs
                                    source interface: mi_cxml_request-sync_abs
                                    target interface: mi_rfc_request_sync_abs
    in ID:
    - receiver determination: |VW| mi_cxml_request_sync_abs
                                      sender service: VW
                                      interface: mi_cxml_request_sync_abs
                                      receiver: DES
                                      interface mapping:im_xcml_request_to_rfc_request_sync_abs
    - interface determination: |VW| mi_cxml_erquest_sync_abs ||
                                         sender service: VW
                                         interface: mi_cxml_request_sync_abs
                                         inbound interface: mi_rfc_request_sync_abs
                                         interface mapping: im_xcml_request_to_rfc_request_sync_abs
    - receiver agreement: |VW| |DES| mi_rfc_request_sync_abs
                                   sender service: VW
                                   receiver service: DES
                                   receiver interface: mi_rfc_request_sync_abs
    not sure these are the steps i had to do for mapping xml to rfc. but the result is the same error as before, the timeout.
    i couldn't test with RTW because i'm getting an error 401 unauthorized.
    i'd do it without BPM but the issue is that i wanted to add another step that would be to send the response from rfc to mail too once i got this BPM running. i mean, the response from RFC would be sent to http response and mail both.
    the only way i can imagine to do it is with BPM but i'm really fed up with it.
    thank u very much folks

  • Subject in mail reciver

    Hey,
    I have an rfc-xi-mail scenario, i pass the rfc as a xml file in the mail, i need to pass in the subject of the mail message a filed from the rfc.
    Is that possible? could not find valid info about it in sdn.
    Edited by: Zevik Heinoch on Feb 8, 2009 9:11 AM

    May be try with Using Mail Attributes . Otherwise you need to try with UDF for accessing subject attribute
    Rajesh

  • Configuring Reciever mail adapter

    Hi all
    I am trying to cofigure Receiver Mail adapter and my scenario would be RFC to mail .what are the settings need to be configured for a mail adapter ? i am using 7.0 version and SP16
    can anybody send me some documentation or blogs about the receiver mail adapter
    Full Points will be awarded
    Regards
    Bhasker

    Hi,
    Please check the links below.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Receiver Mail Adapter.
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    eMail Reporting
    eMail Report as Attachment (Excel/Word)
    The specified item was not found.
    The specified item was not found.
    The specified item was not found.
    Regards,
    Phani

  • Xi file to rfc scenario

    hi,
    I have to pass an excel file from  server pass , all the contents and name(both are changing everyday) as a string to a filed of wrapper ZRFC(bapi ),based on return code of zrfc (return code for error )it will shoot mail to concerned person

    If the RFC call is used to insert data in some database, then you will have to use BPM, with async-sync bridge. File - RFCreq - RFC Resp - Mail.
    If just a lookup from RFC is required, then you may avoid BPM by creating file to mail scenario with RFC lookup.
    Regards,
    Prateek

  • Need to send a email alert in PI 7.1 to user outside the intranet network

    Hi,
    How can I forward an alert from my alert inbox to a thirdparty user through email? Thirdparty user belongs to different network.

    Hi Arindam,
    One of the solution to your problem is as mentioned below.
    1) Use RFC lookup in your mapping. Tell ABAP person to create a RFC for mail triggering. Or you can use standard RFC from ABAP for mail sending.
    2) Once the value(Mail ID) will come in Message mapping, call the RFC lookup which will intern call the Mail sending RFC.
    3) This way mail will be triggered from XI and will be sent from the ABAP system where the RFC is located. Just check whether in ABAP SMTP is there so you can send mail to external ID.

Maybe you are looking for