XI payload attachments

Hi All,
I have a small query is their a way to access payload attachment or main payload of document through xml url reference, but not as CData or directly referencing in xml.
Is this possible? I need this input as I have a unparseable data which i need to write as attachment to mail adapter.
Thanks In Advance
Nik

Hi
If you have a unstructured data then you can read it from File adapter without using IR objects and can send to mail using keep attachment options in ID itself.
When you are not doing any mapping you dont need to worry about unstructured data like Image, PDF etc
refer
How to send any data (even binary) through XI, without using the Integration Repository
Thanks
Gaurav
Edited by: Gaurav Bhargava on Oct 9, 2008 5:57 AM

Similar Messages

  • SAP PI7.31 : Mail with multiple attachments - how to process via UDF

    Hi
    wondering how I can approach this problem.   I have to read an Email with any number of attachments  - it can have between 1 and 4 or maybe more of different types (CSV,XLS,PDF,ZIP).  I need to read this email and extract the attachments to a folder.
    Just to let you know I have done this OK for an email that I know only has 2 attachments ! Works perfectly - just no good for ?n? attachments !
       Mail Sender has AF_Modules/MultipartHeaderBean to add payload Attributes
       The message is sent to 2 Receivers
       Each Receiver File adapter then uses AF_Modules/DynamicConfigurationBean and AF_Modules/PayloadSwapBean
    Problem is that when I do not know how many attachments there are.  So I will have to write a Java UDF mapping, perhaps using the classTransformationInput.
    My question is : To create a Java UDF what should be structure of a sent Email message Type look like so I can feed that into a UDF to check what payload attachments there are etc ?.

    As long as you use java mapping, you can have any dummy structures for your interfaces.
    But, if you prefer to use graphical mapping with UDF, then you should have some valid structures for your mail and file interfaces. e.g., mail pack XSD for mail interface as metioned by Indrajit Sarkar
    and again the same structure for the file interface as well so that you can have one to one mapping an then make use of UDF code from the article. Use payload swap bean in the receiver file channel to replace xml payload with Zipped attachments and then finally use script to unzip this zip file.
    Rgds,
    Praveen Gujjeti

  • Debug an abap-mapping

    Hi,
    how can I debug an abap-mapping?
    I cannot take the test-tool of Michal Krawczyk or SXMB_MAPPING_TEST, because I need the original payload of the mail-sender (with dynamic configurations and all payload-attachments).
    I have to debug it realy inside the intergration engine.
    ... but how can I set breakpoints to debug the mapping session?
    thanx a lot!
    regards
    Wolfgang Hummel

    In your SE80 settings you can define for which user you want to activate the external break point. maybe you will temporarily have to change the user type form service to dialog.
    if you are unsure about the user you can find out the user in your abap mapping program by reading sy-uname and then throw a type X message with userid as message parameter.
    Regards,
    Volker

  • Xi payload as attachments in http adapter

    hi,
    we have the requirement to send comma separated text file as attachemnt over http. is it possible to send and receive payload as attachments in http/s adapter in XI? if yes, how?
    regards,
    Rashmi

    dont think HTTP supports attachment.....at least in sender mode.....correct me if worng....
    For some reading: http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    From above link:
    The plain HTTP adapter only evaluates the main payload of a received XML message. Additional attachments are ignored and not forwarded.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jul 3, 2009 3:15 PM

  • Base64 encode attachments but not xml payload

    Hi Everyone,
    Using the soap adapter I know that I can use an adapter module and base64 encode everything. Is it possible to base64 encode the attachments but leave the soap/xml payload as text/xml?
    Regards,
    Joe

    > Using the soap adapter I know that I can use an adapter module and base64 encode everything. Is it possible to base64 encode the attachments but leave the soap/xml payload as text/xml?
    Do you want to have attachments of type base64, or do you want to have transfer-encoding base64? The latter is not possible with adapter modules.
    Regards
    Stefan

  • Multiple Attachments in Email Payload declaring with Application Types

    Hi XI Experts,
    I am currently working on an Email Module to handle multiple attachments. I have read all forum entries to this topic but I got know answer to my question.
    My question:
    Is it technically possible to declare more than one Atttachment of the Payload with the tag <Application Type>? From the coding point of view I know that it is possible like this
    for ( int  i = 0; i < XMBMessageOperator.numberOfPayloads(message); i++){
    XMBPayload payload = XMBMessageOperator.getPayload(message, i);
    payload .setPayloadType(PayloadType.APPLICATION);
    but does the XI then also process all application attachment messages correctly as separate messages?
    So from the coding point of view does the XI iterate over all application attachments and processes the messages?
    best regards,
    Dries

    Hi Dries,
    I would suggest to do it using SAPConnect instead of ccBPM.Check this blog.
    It splits the payload and sends it as multiple attachment.https://weblogs.sdn.sap.com/pub/wlg/3007.Source [original link is broken] [original link is broken] [original link is broken] [original link is broken] code sends multple attachments as an email.
    You have to use the viceversa.Read the thomas jung blogs for further info /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher .
    vasanth

  • Sender Mail Adapter Configuration - Process Multiple Attachments

    Dear sirs,
    I need to process several attachments at the same mail message as individual payloads.
    In default configuration of sender mail adapter only the body of message is used as payload.
    So I added PayloadSwapBean Module at Processing Sequence and it processed the attachment I set in Module Configuration.  I'm not able to process all attachments available, just one attachment is sent to PI pipeline.
    How can I process all attachments of a single mail message?
    Thank you in advance.
    Fabio Purcino

    Hi Jose,
    We are trying to implement reading multiple attachment in sender mail adapter. 
    Our Requirement is : Reading a mail having multiple .xls files. This should be read and converted to payload .
    package multiswap;
    //import com.sap.aii.adapter.xi.ms.XIMessage;
    import com.sap.aii.af.lib.mp.module.*;
    import com.sap.aii.af.lib.trace.Trace;
    import com.sap.aii.af.sdk.xi.mo.Message;
    import com.sap.aii.af.sdk.xi.mo.MessageContext;
    import com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageOperator;
    import com.sap.aii.af.sdk.xi.mo.xmb.XMBPayload;
    import com.sap.aii.af.sdk.xi.util.PayloadType;
    import com.sap.aii.af.service.auditlog.Audit;
    import com.sap.aii.af.service.cpa.*;
    import com.sap.engine.interfaces.messaging.api.MessageDirection;
    import com.sap.engine.interfaces.messaging.api.MessageKey;
    import com.sap.engine.interfaces.messaging.api.Payload;
    import com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.Locale;
    import javax.ejb.*;
    public class MultiSwapRead
        implements SessionBean, Module
        private static final String VERSION_ID = "$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
    "/aii/af/app/modules/PayloadSwapBean.java#1 $"
        private static final Trace TRACE = new Trace("$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
    "/aii/af/app/modules/PayloadSwapBean.java#1 $"
        private static final String SIGNATURE_PROCESS = "process(ModuleContext , ModuleData)";
        protected Hashtable cachedChannels;
        protected SessionContext myContext;
        public MultiSwapRead()
            cachedChannels = new Hashtable();
        public void ejbRemove()
        public void ejbActivate()
        public void ejbPassivate()
        public void setSessionContext(SessionContext context)
            myContext = context;
        public void ejbCreate()
            throws CreateException
        public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
            throws ModuleException
            if(TRACE.beLogged(200))
                TRACE.entering("process(ModuleContext , ModuleData)", new Object[] {
                    moduleContext, inputModuleData
            ModuleData outputModuleData;
            Iterator itr;
            outputModuleData = inputModuleData;
            String chid = moduleContext.getChannelID();
            TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, (new StringBuilder()).append("performing payload swap for channel ").append(chid).toString());
            LookupManager lman = LookupManager.getInstance();
            Channel chan = null;
      try {
      chan = (Channel)LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, chid);
      } catch (CPAObjectNotFoundException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      } catch (CPAException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
            Direction direction = chan.getDirection();
            String swapkey = moduleContext.getContextData("swap.keyName");
            String keyvalue = moduleContext.getContextData("swap.keyValue");
            Object obj = inputModuleData.getPrincipalData();
            Object pivotedObj = inputModuleData.getSupplementalData("mp.pivoted");
            boolean pivoted = pivotedObj == null || !(pivotedObj instanceof Boolean) ? false : ((Boolean)pivotedObj).booleanValue();
            Message mo = null;
            if(obj instanceof com.sap.engine.interfaces.messaging.api.Message)
                mo = (Message)((com.sap.engine.interfaces.messaging.api.Message)obj);
            } else
            if(obj instanceof MessageContext)
                mo = ((MessageContext)obj).getMessage();
            } else
                TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no message found");
            if(mo != null && XMBMessageOperator.numberOfPayloads(mo) > 0)
               // String midstr = XMBMessageOperator.getMessageId(mo).toString();
                MessageKey auditkey = new MessageKey(((com.sap.engine.interfaces.messaging.api.Message) mo).getMessageId(), com.sap.engine.interfaces.messaging.api.MessageDirection.INBOUND);
                itr = (Iterator) mo.getAttachments();
                if(swapkey != null && keyvalue != null)
                    StringBuffer textSwappingbyBuf = new StringBuffer();
                    textSwappingbyBuf.append("Swap: swapping by '").append(swapkey).append("' ? '").append(keyvalue).append("'");
                    String textSwappingby = textSwappingbyBuf.toString();
                    TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textSwappingby);
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, textSwappingby);
                   while (itr.hasNext()){
                    boolean swappedp = swapPayloads(mo, swapkey, keyvalue);
                    String swappedStatus = swappedp ? "Swap: successfully swapped" : "Swap: no matching payload found";
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, swappedStatus);
                } else
                    StringBuffer textInvalidBuf = new StringBuffer();
                    textInvalidBuf.append("Swap: parameter missing ");
                    if(swapkey == null)
                        textInvalidBuf.append("swap.keyName");
                    if(swapkey == null && keyvalue == null)
                        textInvalidBuf.append(" and ");
                    if(keyvalue == null)
                        textInvalidBuf.append("swap.keyValue");
                    String textInvalid = textInvalidBuf.toString();
                    TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textInvalid);
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.WARNING, textInvalid);
            } else
                String messageEmpty = "Swap: message is empty or has no payload";
                TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, messageEmpty);
            return outputModuleData;
        private static boolean swapPayloads(Message mo, String swapkey, String keyvalue)
            swapkey = swapkey.toUpperCase(Locale.ENGLISH);
            keyvalue = keyvalue.toUpperCase(Locale.ENGLISH);
            int ifound = -1;
            for(int i = 0; i < XMBMessageOperator.numberOfPayloads(mo); i++)
                XMBPayload pldi = XMBMessageOperator.getPayload(mo, i);
                String pldivalue = null;
                if(swapkey.equals("PAYLOAD-DESCRIPTION"))
                    pldivalue = pldi.getPayloadDescription();
                } else
                if(swapkey.equals("PAYLOAD-NAME"))
                    pldivalue = pldi.getPayloadName();
                } else
                    pldivalue = pldi.getContentAttribute(swapkey);
                if(pldivalue == null)
                    continue;
                pldivalue = pldivalue.toUpperCase(Locale.ENGLISH);
                if(pldivalue.indexOf(keyvalue) < 0)
                    continue;
                ifound = i;
                break;
            if(ifound >= 0)
                XMBPayload pldfound = XMBMessageOperator.getPayload(mo, ifound);
                if(pldfound.getPayloadType() != PayloadType.APPLICATION)
                    XMBPayload pldapp = XMBMessageOperator.getApplicationPayload(mo);
                    if(pldapp == null)
                        pldfound.setPayloadType(PayloadType.APPLICATION);
                    } else
                        pldapp.setPayloadType(PayloadType.APPLICATION_ATTACHMENT);
                        pldfound.setPayloadType(PayloadType.APPLICATION);
                    TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "successfully swapped");
                return true;
            } else
                TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no matching found");
                return false;
    We couldn't go further. Please have a look in highlighted code.
    Regards,
    Kesava.

  • PI 7.11 Receiver SOAP (Axis) Adapter with MTOM (Attachments)

    Hello,
    Iu2019m trying to configure the Receiver SOAP (Axis) adapter for sending SOAP attachments via MTOM to a third-party webservice, but I'm not getting that PI transform the binary encode64 data in an payload element into a MTOM attachment (xop:include).
    The configuration looks like this:
    Transport Protocol: HTTP (Axis)
    SOAP Version: 1.2
    Encapsulation Format: MTOM
    Keep Attchments: enabled
    Payload Extraction: SOAP Body Child
    First of all, could you confirm if this is supported?
    Or Axis only supports MTOM for the transport protocol 'File (Axis)' like it seems refered in [Configuring the Receiver Axis SOAP Adapter|http://help.sap.com/saphelp_nwpi711/helpdata/en/45/a3c48c87cd0039e10000000a11466f/frameset.htm]
    Can you please provide me some guidance here?
    Thanks in advance!
    Kind Regards,
    Alexandre

    Hello,
    I am facing the exact same issue.
    I can't seem to set the cookie in the http header after following the guide.
    Cookie: WSL-credential=MyOwnCookie
    I managed to set the SOAPAction though.
    Anyone has any ideas?

  • How to send the entire process payload as an attachment in the Email

    Hi All,
    I have a requirement in my present project. If is there is any exception while executing the process, we have to send the Error Email notification to the end user with entire process payload as an attachment. we are using the SOA Suite 11.1.1.6 and can any one help me out in this?
    Thanks,
    Hari

    Hari,
      There is tab called Attachments in Email activity where in you can attach the payload from your BPEL variables.
    Thanks
    Veer

  • How to Sender PDF file as attachment in Payload?

    Hi Experts,
         After I done some of PI scenarios, I'm stuck with one of my requirement... In requirement, "Web service" will send request to "SAP ECC 6" in order to get PO document print out in PDF file by call smartform or any form printing as usual.
         In my understand, I'm using SOAP adapter as sender and RFC adapter in receiver side, in  RFC function, I will call form and generate PDF file by using normal ABAP function, but here, how can I send PDF file as response message of SYNC call from web service.
         I try to search and read some of document and blog, some said I can attach file as Payload attachment, but no clear solution or guide to do so.
        Here is example blog that I found, I really useful
           /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
        Please suggest me in my case,
    Thanks in advance...
    Cheers,
    Terry

    Hi,
    >>In my understand, I'm using SOAP adapter as sender and RFC adapter in receiver side, in RFC function, I will call form and generate PDF file by using normal ABAP function, but here, how can I send PDF file as response message of SYNC call from web service.
    as per my blog you can attach PDF to a message only if you use abap proxy on ECC and not RFC
    the code is just copy and paste from my blog:
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    so there is nothing spectacular there
    Regards,
    Michal Krawczyk

  • Mail : Mail Payload doesn't changes to inline (body) still become attachmen

    Hi,
    I have scenario ABAP Proxy (Main Payload + attachment) ---> Mail (XIPAYLOAD + Mail Package + keep attachment).
    =========================== ABAP PROXY OUT ASYN ===========================
        attachment_protocol ?= prxy->get_protocol(
        if_wsprotocol=>attachments ).
        attachment = attachment_protocol->get_attachment_from_binary(
               data = attach_xstring
               type = if_ai_attachment=>c_mimetype_text_plain
               name = 'Outmail' ).
        APPEND attachment TO attachments.
        attachment_protocol->set_attachments( attachments ).
        it-mt_source_proxy-to = 'XXXXXXX'.
        it-mt_source_proxy-subject = 'Test email with attachment'.
        it-mt_source_proxy-content = 'ccccccccccccccccccccccccccccc'.
        CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
        COMMIT WORK.
    =========================================================================
    So the result is both payload become attachment. Now the problem is how to change the main payload to become body of email and still keep the attachment become mail attachment.
    I have configure PayloadSwapBean and MessageTransformBean in mail adapter receiver as below :
    1. localejbs/AF_Modules/PayloadSwapBean             swap1
    2. localejbs/AF_Modules/MessageTransformBean      type2
    3. localejbs/AF_Modules/PayloadSwapBean             swap2
    4. localejbs/AF_Modules/MessageTransformBean      type1
    swap1   swap.keyName                                  payload-name
    swap1   swap.keyValue                                  Outmail
    type2    Transform.ContentDescription             Outmail
    type2    Transform.ContentDisposition             attachment;filename="abc.txt"
    swap2   swap.keyName                                 payload-name
    swap2   swap.keyValue                                 MainDocument
    type1    Transform.ContentDescription            MainDocument
    type1    Transform.ContentDisposition            inline
    But then the main document content still in attachment cannot change to body eventhough i have put inline in Transform.ContentDisposition.
    Please advise, what i am missing in this configuration.
    Thank you and Best Regards
    Fernand

    For all, who searches a way for this scenario:
    you could write a java mapping and use it after the last other mapping in operation mapping. Use this coding for it:
    import com.sap.aii.mapping.api.*;
    import java.util.*;
    import java.io.*;
    public class MappingPayloadAttachment extends AbstractTransformation{
        public void transform(TransformationInput input, TransformationOutput output)
           throws StreamTransformationException {
            getTrace().addInfo("JAVA Mapping Called: MappingPayloadAttachment");
            try{
                InputPayload inpayload = input.getInputPayload();
                InputStream instream = inpayload.getInputStream();
                String instring = this.convertStreamToString(instream);
                InputAttachments inAttachments = input.getInputAttachments();
                OutputPayload outpayload = output.getOutputPayload();
                OutputStream outstream = outpayload.getOutputStream();
                OutputAttachments outAttachments = output.getOutputAttachments();
                //create Output-Payload
                outstream.write(instring.getBytes());
                //copy attachments
                if(inAttachments.areAttachmentsAvailable()){
                    Collection<String> colAttIds = inAttachments.getAllContentIds(true);
                    Iterator<String> attIDsIt = colAttIds.iterator();
                    while(attIDsIt.hasNext()){
                        outAttachments.setAttachment(inAttachments.getAttachment(attIDsIt.next()));
                }else{
                    getTrace().addInfo("MappingPayloadAttachment Information: no attachment available.\n");
            }catch(Exception e){
                StreamTransformationException ste = new StreamTransformationException(e.toString());
                throw ste;
        public String convertStreamToString(InputStream in){
            StringBuffer sb = new StringBuffer();
            try
                InputStreamReader isr = new InputStreamReader(in);
                Reader reader = new BufferedReader(isr);
                int ch;
                while((ch = in.read()) > -1) {
                    sb.append((char)ch);}
                    reader.close();
                }catch(Exception exception) { }
                return sb.toString();
    And don't forget to check the cross for "Read Attachments" in Operation Mapping configuration. Now you should be able to config the payload as mail body (inline).
    Regards,
    Dirk

  • Receiving message after Payload Swap

    Hi All
    I am stuck with a scenario where we have to deliver a PDF as an inline message and not as an attachment. The PDF is sent from an R/3 system through a Proxy as an attachment and then this is sent back into the IE Pipeline using a SOAP Channel. This is where the attachment is swapped as the payload. The Message that we receive from R/3 contains five fields plus the attachments, but once the payloadswap is done the PDF should be the main payload. I have a sender SOAP channel to start the second stage flow, but not sure on what message Interface to use hereu2026
    Flow u2013 Summary
    Stage 1 (R/3 to XI)
    Proxy with PDF as an attachment
    Message routed to a receiver SOAP channel that send the message back on to the IE Pipeline
    The attachment is swapped in this channel
    Stage 2 (XI u2013 Receiver) - Receiver uses FTP
    Receive the payload using a SOAP sender channel
    This is where I am stuck. Do not know how the payload looks like and what message interface to use to receive this PDF message.
    I would really appreciate if you could give me some guidance on this issue. I am not able to find any proper documentation for the payload swap bean, is there one out there??
    Thanks & Regards
    Prav

    Hi,
    This is a nasty little trick but it works great.
    Create any Message Interface with any structure for inbound and outbound interfaces if required... then do your configuration assuming that the Message interface is correct.
    Please note that this will only work if you have no mapping so you should not specify an interface mapping in the interface determination step.
    The trick is based on the fact that XI does not validate the structure of a message.  If a message has an incorrect structure, it gets picked up in the mapping, which is not a problem if you don't use any mapping.
    Sounds strange but trust me, it works...
    Regards,
    Yaghya

  • Payload Swap bean not working

    Hi All,
    We are working on PI 7.11. We are trying to retrieve the attachments from the mails and convert them into files. We have enabled Keep Attachments in sender mail adapter. For swapping the payload we used payload swap bean. We referred the below blog
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    We are just trying with XML attachments.
    The problem now is the payloads are not swapping. The file contains only the body of the mail not the attachment. I dont know what I'm missing. Please advice
    Regards,
    Malini

    Hi abhishek,
    Please find below the config done in adapters
    1     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     1
    2     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    1     swap.keyName     Content-Description
    1     swap.keyName     Content-Disposition
    1     swap.keyValue     MailAttachment-1
    1     swap.keyValue     attachment;filename="MailAttachment-1.xml"
    Regards,
    Malini

  • BPM stops after receiving payloads from sender email channel

    Hi,
    my current situation:
    i have a sender email cc which sends the content plus attachments into the xi. here i map it to an BAPI-request structure and forward it to an BPM-process. this BPM does a sync call to an r/3. i use the payload swap bean to switch the attachment-1 as content.
    -> when i generate the email with e.g. thunderbird the scenario runs
    Problem:
    but if i use outlook or notes the email appears as a multipart message with attachments (that should not be a problem as i still use the attachment-1) the forward to the BPM causes a stuck?
    <b>this one works:</b>
    --SAP_f5e98a51-c25a-11db-8164-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Disposition: attachment;filename="[email protected]"
    Content-Type: text/xml; charset=utf-8
    Content-Description: SOAP
    <SOAP:Envelope>lots of funny stuff</SOAP:Envelope>
    --SAP_f5e98a51-c25a-11db-8164-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: text/html; charset=ISO-8859-1
    Content-Disposition: attachment;filename="MailMessage.htm"
    Content-Description: MailMessage
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    </head>
    <body bgcolor="#ffffff" text="#000000">
    <br>
    </body>
    </html>
    --SAP_f5e98a51-c25a-11db-8164-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: text/xml;charset=iso-8859-15
    Content-Disposition: attachment;filename="MailAttachment-1.bin"
    Content-Description: MailAttachment-1
    <?xml version="1.0" encoding="utf-8"?>
    <ns:salesorderlines_recordset xmlns:ns="http://namespace">
    and so on
    <b>this not:</b>
    --SAP_1ce0ab21-c25b-11db-c38b-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Disposition: attachment;filename="[email protected]"
    Content-Type: text/xml; charset=utf-8
    Content-Description: SOAP
    <SOAP:Envelope>same entries as above</SOAP:Envelope>
    --SAP_1ce0ab21-c25b-11db-c38b-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: multipart/alternative; boundary="=_alternative 002A6CACC125728A_="
    Content-Disposition: attachment;filename="MailMessage.bin"
    Content-Description: MailMessage
    --=_alternative 002A6CACC125728A_=
    Content-Type: text/plain; charset="US-ASCII"
    --=_alternative 002A6CACC125728A_=
    Content-Type: text/html; charset="US-ASCII"
    --=_alternative 002A6CACC125728A_=--
    --SAP_1ce0ab21-c25b-11db-c38b-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: text/xml;charset=iso-8859-15
    Content-Disposition: attachment;filename="MailAttachment-1.bin"
    Content-Description: MailAttachment-1
    <?xml version="1.0" encoding="utf-8"?>
    <ns:salesorderlines_recordset xmlns:ns="http://namespace">
    and so on
    could it be the  "Content-Type: multipart/alternative; boundary..." ??

    Oh yeah...
    found it by myself
    everything with type "multipart/alternative" stucks in SAP XI
    Sender Mail Adapter - html body mail
    at my side the only solution was:
    1. module
    PayloadSwapBean with "swap.KeyName = content-type" and "swap.KeyValue = multipart/alternative"
    to select the problematic part
    2. module
    MessageTransformBean with "transform.ContentType = text/plain; charset=UTF-8"
    to assign the part a standard/readable encoding (for XI)
    3. module
    PayloadSwapBean with "swap.KeyName = content-name" and "swap.KeyValue = Attachment-1"
    to go on with the attachment...
    both conversions "text/plain" and "text/xml" worked fine

  • Receiver file adapter - support for attachments

    Hi,
    Is it possible that the reciever file adapter can process a message with attachment and generate two files, one for the main payload and the other for the attachment?
    Thanks,
    Amol

    Amol,
    Only File Sender adapter is capable of handling attachments not the receiver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
    Regards,
    Jai Shankar

Maybe you are looking for

  • JDBC Realm issue on Tomcat 4.0.1

    Hi folks, Tried this one the Sun forum and haven't had luck yet getting a thorough reply. Trying to establish the JDBC realm config in Tomcat and am getting the following error: Starting service Tomcat-Standalone Apache Tomcat/4.0.1 Catalina.start: L

  • Files. settings, and almost everything has disappeared

    I had my had drive replaced about 2 months ago. Everything seems to have been working fine until now. A few days ago I quit firefox because it froze. When I re-opened firefox, all of my settings were gone, bookmarked websites etc. as if I had just in

  • I have a new Mark3 D 5, I can't open Raw files

    I have a new Mark3 D 5, I can't open Raw files I've shot in LR 3, I read I would be able to in LR 4 or 5. Because my mac is 10.6.8 I prefer to get LR 4 so I don't have to also update my operating system. Will LR 4 open my rw files in Mark3 D5. What a

  • Decode or IF

    Hi all, I only want my query to select vendor name if the vendor id is equal to the vendor id in another table how would I do it and could you give me example please? Fields: pov.vendor_name pov.vendor_id mmt.attribute11 ( is vendor id) Many thanks

  • API for loading favorites in R12

    Hi all, Client would like to add a favorite on all users in R12 instance. The favorite should point to the 'Open Notifications' function. Does anyone know of a way to mass load favorite menu entries using an API or OI? It looks like the favorites end