Modules for mail adapter

I want to remove attachments from the emails i send out of PI,
is there any modules for this purpose?
by default if i chck: msg protocol as XIALL i get entire messge as an attachment, even if i select XIPAYLOAD i get the payload as an attachment,
i only want to have the body and not the attachment.
Is there any adapter module readily available to remove attachments from emails?

i only want to have the body and not the attachment.
Choose these in your Receiver Mail Adapter:
Message Protocol :XIPAYLOAD
Check Use Mail Package
enter the appropriate URL
No need to check other options...
Using this you cannot enter From, To, Subject and other such fields in the channel....these should be configured in the mapping.....unless it is Parameterized mapping (applicable only to SAP PI7.1)
Regards,
Abhishek.

Similar Messages

  • How to remove a Attachment in Module for Mail Adapter

    Hi together,
    we are trying to remove a Mail Attachment within a outgoing Mail with the help of a new Module executed by the Mailadapter. Since we are using the XI 3.0, we are trying to do that by this statements:
          Message msg = (Message)inputModuleData.getPrincipalData();
          Iterator it = msg.getAttachmentIterator();
          Payload payload;
          do
                payload = (Payload)it.next();
                if(payload.getName().equalsIgnoreCase("MailMessage"))
                      it.remove();
          }while(it.hasNext()); ...
    The statement "it.remove" doesn't work.
    Does anyone have an idea, how we can remove the attachment?
    Thanks & Regards
        Thomas

    I am sorry, the adapter module API does not support the removal of an attachment.
    Regards
    Stefan

  • Data type for mail adapter

    HI
    what type of data will come to mail ??
    or
    which type of data type we should you for Mail adapter ??
    Regards
    Kumar

    Below link would address your doubts on mail adapters.
    Mail Adapter

  • Modules in Mail Adapter

    Hi
    I have read the PDF attachment from the mailbox. Hence i have to create a PARSER in the Netweaver developer studio. But i cannot see the perpective in the same. AM using SAP NetWeaver Developer Studio - Version: 2.0.3. Please tell me if i need to update the version.
    Regards
    Andy

    Anandan-
    You can use a mail adapter with a custom module. Check https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    for creating your own adatper modules
    For reading from PDF, you can use the classes provided by SAP/ADS. I wrote a blog for reading the PDF using an external utility (check /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter) but would suggest you to use the class provided by SAP.
    You might also try Conversion Agent, a third party utility but it comes with a license fee.
    Hope this helps.
    KK

  • How to create a module for File Adapter

    Hi,
    I read somethings about module in Adapters.
    What I need to create a EJB? I need to generate a jar? Where I put it?
    Do they have anything about this or a step by step? I want to create a module fpr File Adapter
    Tks.

    Hi,
       >>>What I need to create a EJB?
           If you have NDS or Ecclipse you can create them automatically.
       >>>I need to generate a jar?
          Yes you need to generate a .Jar for that Ejb.
       >>>Where I put it?
          Put that .Jar in .Ear file. and then deploy it on to the Xi server or PCK or Decentralised Adapter Engine where ever u want to use.
       >>>Do they have anything about this or a step by step?
          Yes.Step by step procedure for creating module is available.You can get them at the links given above by others.
    Regards,
    Gowtham K.

  • Zip module in mail adapter

    Hi,
    I have proxy -> mail scenario and I have to use PayloadZipBean to zip mail attachment.
    I dynamically set from, to, subject, etc fields so I have "Use Mail Package" and "Keep Attachments" checked.
    When I unchecked "Use Mail Package" option I receive mail with zip file.
    Is it possible to use zip module and mail package together?
    How can I do it?
    I tried many options but without success.
    In configuration in Module tab I have PayloadZipBean and XIMailAdapterBean
    and zip.filenameKey -> contentType and zip.mode -> zipOne
    but channel is returning error:
    Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException:
    com.sap.aii.messaging.util.XMLScanException: java.lang.NullPointerException; nested exception caused by:
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error:
    com.sap.engine.lib.xml.parser.ParserException: XMLParser:
    No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)(:main:, row=1, col=3) ->
    com.sap.engine.lib.xml.parser.ParserException: XMLParser
    : No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)
    What I am doing wrong?
    Best Regards,
    Przemek

    Hi Przemek,
    >>Do you suggest to create zip file from content field in XSLT mapping. Could you write something more about this option or provide example?
    What I meant was the XML generated fromt he MailPackage will have the content in the COntent field. Now when you say about zipping the payload, it should be this content. Right?
    Though I have never tried but would have used the following test
    1. I would try to take the value in the Content field of the ouput XML. For this either java module of XSLT code will be used.
    2. Once I get the content I would have used SoapPayload and PayloadZipBean and try to zip the [ayload
    But again this is just an idea from my end, since I have not tried I am not sure about the feasibility
    Regards
    Suraj

  • Adapter Module for File Adapter

    I have a scenario where I have 2 related files (text file and a pdf file) for the message. I need to enhance the payload (content conversion from text file) with the size of the pdf file. I have developed a adapter module for this and it is working fine if there is 1 set of text and pdf file. But if there are more than 1 set of files, it is processing the first set and giving the below error for other files.
    "Error: com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception thrown in method process. The transaction is marked for rollback."
    Regards
    Yogesh

    check this thread :
    BaseTransactionRolledbackLocalException in custom adapter module
    Exceptions in Recievr Communication Channel with Adapter Module

  • Infrastructure required for Mail Adapter

    Hi Experts,
    I need to work on a Mail Adapter B2C scenario where XI sends emails to the client with XML file as attachements.
    Questions:
    1. What is the additional hardware infrastructure required to use the Mail adapter apart from the SAP XI server.
    2. How can the mails be archived somewhere, in case I do not want to store them in my inbox-->sent items folder.
    Appreciate your help.
    Regards,
    Shobhit

    as for my knowledge is concerned...
    there are no more requirements ...
    but check the firewall issue.....and know what is the version and service pack u are using...
    and check wether u require sender,receiver addresses and subject required in the mail...if go with mail package check box in the mail adapter..
    check wether mails are to be sent to two or more receivers...if semicolon( will do to separate them.
    and check wether SLD is done proper or not bcoz,even i was right in my scenario and there was an issues in SLD and i traced it after few days...where i delayed my work..
    hmm.....if any i will get back to u shobit....

  • XSLT Mapping with Dynamic Configuration for Mail Adapter

    Hi Guys,
    I am wondering if somebody can help me please.
    I have a requirement in which I need to pick up the file from FTP and email it to the user as an attachment with the same file name and content.
    I know it is possible via 3 method either by deploying adapter module or via XSLT or JAVA Mapping.
    I preferred XSLT Mapping because it is easier to use and we don't need to compile the code like JAVA Mapping.
    I have done the XSLT Mapping but the only problem I am facing is that how to copy the file name which we get it from Dynamic Configuration to the Mail ContentDisposition.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:map="java:java.util.Map"
      xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration"
      xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
    <xsl:output indent="no" />
    <xsl:param name="inputparam"/>
    <xsl:template match="/">
    <!-- change dynamic configuration -->
        <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/File', 'FileName')" />
        <xsl:variable name="dynamic-value"
            select="dyn:get($dynamic-conf, $dynamic-key)" />
        <xsl:variable name="dummy"
            select="dyn:put($dynamic-conf, $dynamic-key, $new-value)" />
        <!-- copy payload -->
    I tried many option but unfortunately none of them worked.
    <Content_Disposition>attachment;filename="$inputparam"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-conf"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-key"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-value"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dummy"</Content_Disposition>
             <Content_Disposition>
                attachment;filename=
                <xsl:value-of select="dynamic-key"/>
             </Content_Disposition>
    I really appreciate if someone can please provide some guidance.
    Thanks,

    Hi,
    Yes u r correct it will show error in operation mapping.. bcoz u cannot check the DynamicConfiguration in Operation mapping...
    It will throw Exception..
    The parameter to UDF depends on ur requirement.... Let us know ur requirements exactly...
    If u r doing for file to file means no UDF required,, just check ASMA on both sides....
    Babu

  • Attachments for mail adapter?

    Hello everybody,
    I've seen that XI 3.0 provides a file adapter. Has anyone experiences with this adapter? I'm looking for information if it's possible to send and receive the XML message content as attachment.
    Thanks in advance
    Björn

    Hi Mohit,
    Follow this blog for the ID configuration:
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4383
    Create Receiver Determination and Interface Determination as described, and add a sender file CC and receiver mail CC according to your needs, plus sender and receiver agreements.
    In order to maintain the original file names, use a simple adapter module with the code mentioned here:
    http://forums.sdn.sap.com/thread.jspa?threadID=2122711&start=14
    Hope this helps,
    Greg

  • DT for mail adapter

    Hi,
    In my scenario, i have to read an attachment of a mail and use it as a payload.
    This is how the data in attachment looks like :
    COMPUTERISED SPARE PARTS ORDER
    DEALER CD : 10424
    ORDER REF : SP/174 DT.18/12/2007
    ORDER TYPE : R
    ITEM CD QTY
    12345678 45
    30151105 40
    31151060 40
    DD191125 10
    DG161121 50
    DH101180 10
    DH111015 10
    DH121096 10
    DH161194 40
    DH201048 2
    DH201049 2
    DS101036 20
    DS101276 6
    DU191022 2
    DZ73033W 1
    GH201012 50
    JB730522 1
    END
    Plz suggest what should be the DT structure ?
    Thx
    Priya

    1. There is nothing to be done on IR side.
    Correct
    2. In ID, I have to configure a sender mail adpater with correct email address and dummy Interface and namespace. Please do let me know if i have to use payloadswapbean and messagetransformation bean in the module configuration.
    Use only payloadSwapBean
    3. Also, have to configure a reciever file adpater. Can I use FTP or I have to use NFS only ?
    U may use any of them.
    4. Complete the rest of the steps in ID like RD,ID,SA,and RA.
    Correct
    Please confirm if the mail attachement will remain in txt format only and hope it works .
    Actually that is the logical solution. I couldnt get time to check it on my own server. So we shud try n hope for the best.
    Regards,
    Prateek

  • Problem in creating excel J2EE module for file adapter

    Hi All,
    I have created an J2EE project for Excel File Reading and added all the required libraries , build an ear of it and also referenced libraries in j2ee.engine.xml of ear , deployed the ear in J2ee engine of XI . Now i am trying to use this module in communication sender channel like this
    localejbs/ExcelFileAdapter
    ExcelFileAdapter(JNDI Name)
    I am using this module name before callsapadapter but nothing is happening , my excel file not getting picked up from the desired location. Can someone tell me where i did things wrong.
    Thanx in Advance,
    Trax

    Thats part of my bean class code:
    public ModuleData process(
                        ModuleContext mc,
                        ModuleData imd)
                        throws ModuleException {
                        Object obj = null;
                        Message msg = null;
                        String msgType = null;
                        String nameSpace = null;
                        try {
                               obj = imd.getPrincipalData();
                               msg = (Message) obj;
                               msgType = (String) mc.getContextData("msgType");
                               nameSpace = (String) mc.getContextData("nameSpace");
                               if (msg.getMessageDirection()== MessageDirection.INBOUND)
                                  amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
                               else
                                  amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.OUTBOUND);
    XMLPayload xp = msg.getDocument();
                               Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Now got the xml payload object.");
    I think their is a some problem before 1st audit message is logged.

  • Adapter Module for File Adapter using Eclipse

    I want to develop Adapter Module using Eclipse, please let me know if it is possible?
    -How to use Eclipse to develop adapter module and deploy it on J2ee server.
    Thanks

    Hi,
    If you have NWDS , then you can directly deploy AM in PI server, if you are using eclipse to write code then genarate EAR file of your code, then you have to deploy in SDM using manual process.
    SEARCH IN SDN like how to deplot AM's, you will find many documents.
    Regards,
    RAJ

  • Function Module for Mail without sender ID

    hai guys,
      I am currently using FM SO_NEW_DOCUMENT_ATT_SEND_API1 for sending mails.
    But this will send the sender details from the logon id who is trigering the mail.
    but i want the sender id be generic like say 'supportteamATcompany.com'.
    how to acheive this..

    SO_DOCUMENT_SEND_API1

  • Facebook Module for Mailing List?

    Hello,
    I'd like to created a tab on our Facebook Fan page to allow our fans to easily subscribe to our mailing list (much like Constant Contact, MailChimp, etc offer). I can't find any way to do this with Business Catalyst. Is this offered? Or is there a work-around?
    Thank you!

    Have you one saved email per individual, or several emails per individual? Are the individual's email addresses in the headers of the email, or buried in the body? Can you post a sample (edit it to suppress the actual addresses)? Are all the emails in a single mailbox? Are there emails in the mailbox that are not from the list?
    AK

Maybe you are looking for