How to refer MessageID in email receiver adapter

Hi All,
We are using module configuration in Receiver Mail adapter to send emails. Below is my configuration. (We are using SAP PI 7.11). Emails are being sent. However I am trying to include messageID in the email body however I could not.
I have defined MessageID as a param in my XSLT  However i still don't see messageID. Do i need to do anything extra in Module configuration?
Any pointers is greatly appreciated..
<xsl:param name="MessageId"/>
<Subject>
          <xsl:value-of select="concat($subject, $MessageId)" />
</Subject>
Below is my configuration..
Parameter/General tab:
Message Protocol : XIPAYLOAD
Use Mail package option is selected.
Content Encoding = none
Module tab:
Processing Sequnce:
AF_Modules/MessageTransformBean : XSLT
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean : mail
Module Configuration:
XSLT Transform.Class com.sap.aii.af.sdk.xi.adapter.XSLTConversion
XSLT Conversion.XSLTFileName /tmp/GL_POST_RESPONSE_EMAIL.xsl

Hi Chirag,
Thanks for the response. I am having MessageId above the template match tag. But message ID is still not accessible within the XSLT. It is probably because XSL is used in the mail adapter module configuration. Is there any way to include the message ID in the receiver email adapter setup?
<xsl:param name="MessageId"/>
<xsl:param name="RefToMessageId"/>
<!<xsl:param name="inputparam"/>>
<xsl:template match="/">

Similar Messages

  • HT4847 How does one prevent all email received from emigrating to the cloud at the time of receipt?

    How does one prevent all email received, from being sent to the cloud at time of receipt?
    leisurestreet

    Welcome to the Apple Community.
    That's how it's supposed to work, you can't stop it. If this isn't what you want you should get yourself a POP based email account.

  • How to handle Directory in File receiver adapter

    Hi
    I have a Mail (attachment) to File scenario in PI 7.11, where I need to send the message to one directory, if a certain condition is meet and an other direktory if that condition i not meet.
    More specifically, then my initial java mapping picks up 2 files and if the files cover the same period, then they should be merged and then sent to the following message mapping in the Operation mapping and after that sent to "Folder1". I have specified this Folder one in the receiver file communication channel.
    If the two files are not covering the same period, then the message should be sent to "Folder2" (which works as a trash folder). This Folder2 is specified in the javamapping by using dynamic configuration.
    In the receiver file communication channel I have ticked the "Directory" under Adapter-Specific Message Attributes.
    However, it all works fine, when the two files are NOT covering the same period, cause then the "Directory" variable is set under dynamic configuration by the java mapping, but when the two files DO cover the same period, then the file adapter errors cause I have ticked the "Directory" under ASMA but not assigned the variable under dynamic configuration.
    Of cause, one solution would be to assign the value for Folder1" in the java mapping, e.g. via a value mapping lookup, but I would like to avoid this.
    Is there a smart way to solve this challenge?
    Some code extracts:
    if (samePeriod(sb6157,sb6158))
                        StringBuffer sboutput = mergeFiles(sb6157, sb6158);
                        os.write(sboutput.toString().getBytes());
                   else
                        updateDynamicConfiguration("http://sap.com/xi/XI/System/File","Directory","
    test$
    MILUN
    trash");
                        copyStream(is,os);
    private boolean samePeriod(StringBuffer sb6157, StringBuffer sb6158)
              int startText6157 = sb6157.indexOf("<PROCESSING_PERIOD_START>");
              int endText6157 = sb6157.indexOf("</PROCESSING_PERIOD_START>");
              String date6157 = (sb6157.substring(startText6157 +25, endText6157));
              int startText6158 = sb6158.indexOf("<PROCESSING_PERIOD_START>");
              int endText6158 = sb6158.indexOf("</PROCESSING_PERIOD_START>");
              String date6158 = (sb6158.substring(startText6158 +25, endText6158));
              return (date6157.equalsIgnoreCase(date6158));
    Mikael

    Hi,
    Why dont you use dynamic configuration for both Directory 1 & Directory 2???
    I had  a similar scenario where we have to define a directory name based on source file names. The sample code is as follows. You can modify this as per your requirement. Let me know if you have any issues.
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    and
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    conf.put(key, arg)
    String fileName = conf.get(key);
    if(filename.equals("file1.txt")){
         conf.put(key1, Directory1)
    else
         conf.put(key1, Directory2)
    return "";
    Warm Regards,
    Gouri

  • EMail Receiver adapter.

    Hi All,
    Please send me documents for File to Mail Scenario.
    1. If I want to send mail content as attachment then do I need to select Message Protocol as XIPAYLOAD or XIALL ?
    2. If I want my mail content should come as message format in my mail and not as attachment then do I need to select Message Protocol as XIPAYLOAD or XIALL ?
    Regards

    Hi Rick,
    Mail Adapter Scenario:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Messages with Attachments:
    The specified item was not found.
    The specified item was not found.
    eMail Report as Attachment (Excel/Word)
    http://www.riyaz.net/blog/index.php/2008/02/23/xipi-sending-emails-using-xi-mail-adapter/
    http://****************/Tutorials/XI/IDoctoMail/demo.htm
    The specified item was not found.
    Regards,
    Vinod.

  • How to Change Subject of Emails Received

    Me again. On Outlook, I could do something called "in-line editing" in the list mode. This feature allowed me to change the subject of emails that I received to something that made sense to me before I filed them in a folder. Make sense? If someone sent me an email and they called it "Hello" and I wanted to keep it and rename it, "Info on Cats," so I would know what was in the email.
    I don't want to create a smart folder for individual emails, but I would dearly love to revise the subject to be meaningful to ME.
    BTW: Does everyone use Mail or are there more flexible programs that you like?

    Hi folks,
    I have experienced frustration with this as well. Last year I wrote an Applescript. It works fine if you're running 10.3. For some reason I haven't been able to run it in Tiger. If anyone knows Applescript and can help I'd appreciate it. Here it is if you're interested:
    -- This little script basically allows you to change the subject heading any e-mail.
    tell application "Mail"
    set theSubjectList to {}
    set themessages to selection as list
    repeat with msg in themessages
    set thisSubject to (subject of msg as string)
    -- I haven't been able to find a more efficient and direct way to select the message than the above four lines. I copied and pasted from another script. For some reason I can't do it without the "repeat" command.
    set ChangeSubject to display dialog "What do you want to rename this e-mail?" default answer "" buttons {"OK", "Cancel"} default button "OK"
    if the button returned of ChangeSubject is "OK" then set NewSubject to text returned of ChangeSubject
    display dialog "The subject is now known as " & NewSubject
    set subject of msg to (NewSubject)
    end repeat
    end tell
    PowerBook G$   Mac OS X (10.4.4)  

  • How to use DCJMSReplyTo in JMS Receiver Adapter

    Hi,
    I was trying to send the message to TIBCO JMS dynamically to a queue name based on the value in the message.
    I followed the steps as in the SAP Note: 8563461
    1) Set the queue name to DCJMSReplyTo in udf under the namespace "http://sap.com/xi/XI/System/JMS"
    2) Ticked the ASMA in JMS reciver Adapter
    3) additional paramter with the name 'JMS.Message.DynamicDestination' and value 'true' (without quotes for both
    strings) in JMS 'Additional Parameters' table.
    4) configure the module as below:
    i) Module key HEADER
    Parameter name key.0
    Parameter value write http://sap.com/xi/XI/System/JMS DCJMSReplyTo
    Module key HEADER
    Parameter name value.0
    Parameter value JMS DCJMSReplyTo
    ii)Module key HEADER
    Parameter name key.0
    Parameter value write http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
    Module key HEADER
    Parameter name value.0
    Parameter value JMS DCJMSMessageProperty0
    Messages are not going to the required queue.
    Please let me know what am I missing?
    Thanks,
    Aravind
    Edited by: ajnayak on Feb 8, 2012 4:15 PM

    Hi Shakthi,
    Yes, this issue is solved now.
    Check the question number 2.8 and 2.9 in the SAP note: 856346. This works.
    http://scn.sap.com/message/11061913
    Steps:
    1) set the DCJMSReplyTo in UDF
    2) configure the Communication channel:
    No need of any extra modules in the module processing.
    Thanks,
    Aravind

  • How to modify oracle stored procedure for JDBC Receiver Adapter?

    Hi all.
    This is Urgent.
    Scenario is
      SELECT a TABLE with procedure and update column with it,
      then send data to SAP System with RFC Adapter.
    When I executed a sync bpm, scenario was finished internal error.
    Pls, let me know how to correct procedure using JDBC Receiver Adapter?
    Regrds all.
    Procedure Code -
    SET SERVEROUTPUT ON
    CREATE OR REPLACE PROCEDURE zwtn2
    IS
       v_seller_company      wtnivhd.seller_company%TYPE;
       v_invoice_no      wtnivhd.invoice_no%TYPE;
       v_report_date     wtnivhd.report_date%TYPE;
       v_customs_date     wtnivhd.customs_date%TYPE;
       v_ap_post_date     wtnivhd.ap_post_date%TYPE;
       v_gr_date          wtnivhd.gr_date%TYPE;
    CURSOR l_cursor IS
       SELECT seller_company,
              invoice_no,
              report_date,
              customs_date,
              ap_post_date,
              gr_date
         FROM wtnivhd
        WHERE wtn_send_flag = 'N'
          AND rownum < 31
    FOR UPDATE;
    BEGIN
       OPEN l_cursor;
       LOOP
         FETCH l_cursor
          INTO v_seller_company,
               v_invoice_no,
               v_report_date,
               v_customs_date,
               v_ap_post_date,
               v_gr_date;
         EXIT WHEN l_cursor%NOTFOUND;
         UPDATE wtnivhd
            SET wtn_send_flag = 'Y' 
           WHERE CURRENT OF l_cursor;
       END LOOP;
    CLOSE l_cursor;
    END zwtn2;

    Hi Alex,
    plz have a look to Runtime Workbench / Adapter Monitoring to find an error message.
    Regards,
    Udo

  • Problems with Seeburger FTP Receiver adapter

    Hello,
    I am working on a scenario sending ORDERS05 Idocs to EDI vendors.
    For this i have configured Seeburger Receiver FTP adapter with 2 modules to convert XML-EDI format. Since this is the test, I have pointed Seeburger to local FTP server with following settings
    Hostname <Hostname of our FTP server>
    Port <Port # of our FTP server>
    Host Path/VAN partner id <some local directory of FTP server>
    Payload mode: Maindocument.
    At runtime i received following exception
    Message could not be forwarded to the JCA adapter. Reason: Fatal exception: javax.resource.ResourceException: >> Description: com.seeburger.jftp.app.exception.FtpExceptionSoftProcessingError: Unexpected reply: 500 'SITE system 1': command not understood>> Details: com.seeburger.jftp.app.exception.FtpExceptionRethrowError: Error in session: {type:FTPConnectionId}{binding:82ea8d3089dc3e898ae2e608d9d8487d}{channel:a52d1aaa8dd63ff59c2f590e78586a77}{toparty:TestEDIParty} CAUSED BY: com.seeburger.jftp.app.exception.FtpExceptionOpenConnectionError: Error while connection to remote host CAUSED BY: com.seeburger.jftp.app.exception.FtpExceptionRethrowError: Error while executing command QUOTE site system 1 CAUSED BY: com.seeburger.jftp.app.exception.FtpExceptionSoftProcessingError: Unexpected reply: 500 'SITE system 1': command not understood>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: true>>Fatal: true
    Few questions related to this
    1] can we use Seeburger adapter to generate EDI files on local FTP server
    2] If not Seeburger can we use normal File adapter to do the same. I tried the same by configuring BIC module in File adapter so that it would convert XML to EDI format and was hoping file to be generated on FTP server. It generated one line XML file with following text "<info>Converted message locates in a attachment</info>". Any idea how to retreive attachments in File receiver adapter (as far as i know no attachments are supported in File receiver adapter).
    Any idea how to generate EDI files with Seeburger FTP on test server?
    Thanks in advance.
    Regards
    Rajeev

    Hi Rajeev,
    > 1] can we use Seeburger adapter to generate EDI files on local FTP server
    Yes we can use.
    > Any idea how to generate EDI files with Seeburger FTP on test server?
    It is like a normal process, how to generate the EDI files in normal means without FTP. Check this link
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10b17369-9522-2c10-84a6-d75d8a8ace22
    BIC
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00b66651-eeea-2b10-e5a6-8459ec30d948
    Regards
    Ramesh

  • Receiver Adapter configuration to put several file

    Hi Experts,
    I want to treat several file in one « step ». For that I configured sender file adapter to pick several file by check Additional file(s).
    Additional file appear in payload correctly but I donu2019t know how to configure receiver adapter to add them to output directory.
    How can I configure Receiver Adapter to do that?
    Thank you.

    In sender adapter it works fine, but I don't know how to add them in the receiver adapter.
    As per documentation, you need a receiver that supports attachments to make use of this functionality.
    For example you can send the additional files from file sender as attachments to mail receiver.
    Unfortunately, the attachments are supported only for file sender and you can't add attachments in file receiver.
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    Check the 'attachment' column to know the adapters that supports attachments.

  • How to configure RFC receiver adapter

    HI,
    I have a Proxy-to-RFC scenario. But I have no knowledge in RFC receiver adapter. Could you please provide me the step-by-step guideline or sample about how to configure RFC receiver adapter.
    Thanks in advance.
    Best regards, Johnney.

    Hi,
    Refer these links which will help you understand the concept and configure the Scenario.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    The specified item was not found.
    Refer this blog for synchronous scenario
    RFC Scenario using BPM --Starter Kit
    Sender RFC Adapter:
    The specified item was not found.
    Troubleshooting - RFC and SOAP scenarios *** Updated on 20/04/2009 ***
    RFC -> file scenario: application stopped
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfctofile&cat=sdn_all
    RFC to file
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    Send RFC to SAP XI – Asynchronous
    The specified item was not found.
    ABAP Proxies in XI(Client Proxy)
    Regards,
    Nithiyanandam

  • How to Share File to specific receiver email address

    I'm develop a windows store app using winRT C++. I can share a file through email but it cannot specific a receiver
    email address. Bellow is a part of my code to sharing a file:-
    DataRequest^ request = e->Request;
    request->Data->Properties->Title = "Testing";
    request->Data->Properties->Description = "Email With Attachment";
    DataRequestDeferral^ deferral = request->GetDeferral();
    create_task(Windows::ApplicationModel::Package::Current->InstalledLocation->GetFileAsync("testing.pdf")).then([this, request, deferral](task<StorageFile^> getFileTask)
    try
    auto pdfFile = getFileTask.get();
    auto storageItems = ref new Platform::Collections::Vector<IStorageItem^>();
    storageItems->Append(pdfFile);
    request->Data->SetStorageItems(storageItems);
    deferral->Complete();
    catch (Exception^ ex)
    // Calling FailWithDisplayText() also calls Complete on the deferral.
    request->FailWithDisplayText(ex->Message);
    How can I send the attachment file to a specific email receiver without fill in the email address manually.

    Hi Tonberry,
    Based on my knowledge, you are using the correct way to share files in windows store app. The share app provides some frequent Contacts as the following image. But there is no options to set the recipients programmatically. If you want this feature, I would
    recommend you feature a request on
    UserVoice.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • How can I change my email address in iMessages so that I can receive messages. My apple seems to have two different email identities and I cannot figure out how to change the wrong one.

    My email address in the imessage part of my ipad is incorrect. How can I change the email address to conform with the email address on the rest of my apple products? I can get messages on my iphone, mac but not on my ipad because of the incorrect address.

    Go on to settings> Messages > send and receive
    this should give you the opportunity to edit email adressed
    Hope it helps.

  • How do I add multiple email addresses i have received (900) to my address book instead of doing it one by one?

    how do I add multiple email addresses i have received (+ -900) to my address book instead of having to do it one by one?

    Grab them all and drag them to the Address Book.
    Roger

  • How to attach Excel file in Mail Receiver Adapter?

    Hello Experts,
    In R/3 coding I have Internal Table data available for which i have to generate an Alert mail with Excel file attachment.
    This is the scenario of Proxy sender to Mail Receiver. but I don't know how to convert the Internal Table data into Alert mail excel File attachment.
    Please suggest me.
    Regards,
    Jagesh

    Hi Santhosh,
    Thanks for your suggestion.
    But without using XSLT mapping also, I have generated the Excel File attachment.
    Throgh R/3 coding I am passing following.
    G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-FROM = From Mail Address.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-TO = TO Mail Address.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-SUBJECT = 'Test Alert mail'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-DATE = SY-DATUM.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_TYPE =   'text/plain;name="CSV_data.csv"'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT = 'Testing1,Testing2,Testing3'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_DISPOSITION = 'attachment'.
    And in the Mail Receiver Adapter i have configured as following.
    Use Mail package and Keep Attachment both options are selectd.
    So I am getting the data in different columns in the excel file But How to set the Next ROW in Excel file?
    I thnk i am missing something in CONTENT value.
    Regards
    Jagesh

  • Q? how to change filename of receiver adapter includeing payload attribute?

    hi all.
    our scenario is IDOC - XI - FILE.
    IDOC is standard type .xml"
    Despite of searching help library, just read about how to change using payload value.
    How to change the filename using payload attribute?
    Message was edited by: ChangSeop Song

    Hi,
    You can create the file name dynamically from the payload of the receiver adapter as follows.
    From the requirement you have stated, you want your file to be named as,
    TPSDLS<shipmentid>.
    For this, in the reciver file adapter, give your filename as <b>TPSDLS%var%</b> and under variable name substitution,
    <b>var</b> --> <b>payload:IDOCTYPE,1,Shipments,1,ShipmentID,1</b>
    here, var acts as your variable name and it first looks for IDOCTYPE and its first occurence, shipment and its first occurence and finally, shipmentID and its first occurence. There by generating the filename dynamically.
    For more info on this, check the topic <b>variable substitution</b> under this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    hope this helps,
    let me know if you have any clarification,
    regards,
    bhavesh

Maybe you are looking for