File Adapter Attachments

Hi Friends,
   I am trying a simple scenario File -> XI -> File.In this scenario i have to send an attachment also along with the message. I have done with sender file adapter, but the problem is how can i handle the attachments in receiver file adapter. Means i just want to create the attachment on the receiver side with the same name.
      But when i activate the scenario only one file is getting created i.e message payload. I can't see the attachment there. Do i need to do any extra settings for this scenario....

Hi,
>>>Do u mean to say File adapter attachments concept is used only when the receiver is Mail adapter ?????
of course not
many apdater support attachments
(like SOAP, proxies, mail)
but in case of file adapter it only works with
sender adapter
if you want to achive your scenarion
you can create a simple java proxy
in which you will take the payload
and attachments and put them somewhere
(folder etc)
but you need to do a little programming to do that
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • 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

  • Receiver file adapter with attachments.

    Hi
    I would like to pass a file receiver an attachment from a proxy. I have seen bits and pieces with attachments. I have read that its similar to the mail adapter.
    In the module
    localejbs/AF_Modules/PayloadSwapBean 
    module configuration:
    Parameter Name: swap.keyName
    Parameter Value: payload-name
    Has anyone succeeded and would you explain the details?
    Thanks in advance
    Ian

    Hi,
    As far as I know, receiver file adapters do not supprt attachments.
    You can use the payloadSwapBean to swap the attachment and the actual proxy payload and then send it to the file adapter.
    Don't think it will be possible to send both the attachment and the payload to the receiver  file adapter though.
    Regards
    Bhavesh

  • Attachments for receiver file adapter

    Hello gurus,
    I think receiver file adapter does not support attachments. But I do have a scenario where I receive additional files as SOAP payloads accompanying  the request message and I have to write them to a network directory. How can I achieve this?
    Regards,
    Gökhan

    Hi Gokhan,
    Please have a look at the following links and see if it helps
    Re: File adapter with attachment to mail
    Re: How to use File Adapter to transport files
    Best Regards

  • How to use File Adapter Receiver to write attachments

    Hi,
    i have a scenario, in which our own XInotes adapter sends an XIMessage from an IBM Lotus Notes database into XI. This XIMessage contains an XML document as application main document and several PDF files as additional attachments 
    On the receiver side, i must use a File Adapter to write both the XML documents and the PDF attachments into a directory.
    The problem is i don't know how to use the file adapter receiver to write the attachments. In the Channel Monitoring, i can see that all PDF files are transferred to the file receiver. But the file adapter writes only the XML document into the directory.
    I've also tried the AF_Modules/PayloadSwapBean, but it can only swap one PDF file into the application payload. And the file name must be hard coded in the module configuration as swap.KeyName.
    Could anyone give me any ideas?
    thanks a lot in advance
    Xiang

    hi,
    receiver file adapters do not supprt attachments.
    Only File Sender adapter is capable of handling attachments not the receiver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
    Configuring the sender FILE adapter
    The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
    access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
    under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
    Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
    MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
    and also change the file extension.
    The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
    data with another payload which is appended to the message as an attachment. In our case, the payload
    would be file1.xml whereas the attachment would be file1.jpg
    The swap module is denoted in our scenario with the module key ‘swap’. It has two parameters from the
    MIME header.
    regards,
    pradeep.

  • Can we process files with attachments using File Adapter

    Hi All,
    I want to process files which have attachments using File Adapter.
    Is it possible to process such files?
    May be using standard modules?
    Regards,
    CBKLP

    Assuming you are talking about sender FILE channel....you can make use of PayloadSwapbean provided by SAP (standard module)...to read data from attachment.
    Regards,
    Abhishek.

  • Keep attachments in receiver file adapter

    Hello,
    We receive via Abap proxy a txt file by attachment, and we need to archive that file in other machine using a receiver file adapter but the receiver file adapter doesn´t have any keep attachment option. How can we achieve that?
    Thanks!
    Luis

    Yes, I thoug that was possible but in fact the attachment is intended to be something that should be not accessed from the integration server and so not mapped.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b6/0b733cb7d61952e10000000a11405a/frameset.htm
    I think that the adapter module will be the better choice.
    Regards,
    Sandro

  • What is the use of additional file(s) in  sender file adapter?

    Hi experts,
    what is the use of  additional files parameter in sender file adapter?
    give me some example.......
    Thanks & Regards
    E.Ravi Chandra Reddy

    Hi,
    please check the below link,
    you can specify additional files to be included in the XI message as attachments.
    http://help.sap.com/saphelp_tm90/helpdata/en/44/692ab8a4b633eae10000000a1553f6/content.htm
    Regards

  • File adapter with attachment to mail

    Hi,
    I am working on a scenario where I want to attach a file that is not .txt or .xml along with my file sender adapter . This is, in turn ,received with a mail adapter and I want the attachment to come along with the mail.
    My question is, Is the attachment always in xml format, or can I receive it just as the it is.
    cheers,
    Prashanth

    Hi,
    About SOAP Adapters-
    Develop a Java Application, which reads SOAP Header/Attachments and Sends it as a Mail with attachment using JAVA Mail API. This application should be exposed as a WebService. And invoke this WebService from XI thru SOAP Receiever Adapter.
    Is your idea is sending file as attachment from Sender File Adapter, you need to get the attached file as an attchment in the Mail right ? If so you can try as I said.
    May be useful,
    Regards,
    Moorthy

  • Is there any way to send Attachements with Sender file adapter

    Hi,
      I am Using File to Proxy communication model. Is there any way I can use file attachments with Sender file adapter with communication protocol "FTP". Please on suggest this.
    Regards,
    Daniel.LA

    Hi,
    I think there is no Option with FTP Protocol to send the files as Attachments.
    Try this
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    Regards
    Seshagiri

  • File Adapter to read Zip file and send it as input to another webservice

    Hi,
    I have the below requirement:
    1. A service will generate 3 attachments and place it in a particular directory.
    2. SOA service has to pick those 3 files and send those files as input to another custom application which will email.
    Design :
    1. First SOA will create an archive file of those 3 attachements and then file adapter will poll for that zip file in that location and send that file as a whole to the custom application.
    Query:
    Now my question, is the above design feasible? If so, how to configure the file adapter to pass the file as input to that custom application?
    Kindly do the needful
    Thanks,
    Priya

    You can accomplish this via java embedding activity...Create a java embedding, which will create a zip file.. this java code is easy to implement..
    You can also do away with un-necessary polling file adapter.. and you can use "Synchronous File Read" operation of File Adapter.. For Sync Read, you'll have to pass the zip file name, which you can easily fetch from java embedding activity..
    Let me know, if this doesn't work.

  • Using Additonal File(s) in file adapter

    Hi,
    I would like to know the usage of Additional File(s) in sender file adapter with an example. I have gone through [http://help.sap.com/saphelp_srm40/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm] but it was not of much help for me.
    Thanks,
    Vishal

    Hi Vishal,
    The option additional file is used to included in the XI message as attachments.
    Points to be noted are:
    1. All additional files must be in the source directory.
    2. Additional files can only be transported unaltered without conversion options
    3. Messages with additional attachments require a receiver that can process them.
    Parameters of the Additional file names are mentioned in the link below:
    http://help.sap.com/saphelp_srm40/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Thanks,

  • Zipping the payload using File adapter

    Hi Experts,
    I have a 620 MB xml file, which need to be archived on daily basis.
    but the XI server shows 503 service unavailable message, while trying to process the huge file.
    also used the Zippayloadbean module in the file adapter, but no luck.
    Please suggest on how to archive 620 MB xml file.
    Thanks in advance.

    Hi mk,
    I know that there is a bean for the adapter module that unzips attachments. Have a look if there is a module for zipping.
    Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter Framework
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    and check the CASE 2 in this blog:
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Regards Mario

  • Sending more than 1 file as attachments in FTP

    Hi,
    Seeking your inputs as how to send more than 1 file ( *.txt, *.jpg etc..) 
    as attachments using FTP adapter.
    Thanks in advance,
    Regards,
    Pavithra

    The sender file adapter is configured to pick the normal payload which is specified in the File access parameters, and the additional image file that is to be sent as an attachment is configured under the Additional File(s).The file type will be binary.
    <b>
    Also refer</b>
    http://sapient.xi.googlepages.com/xi-excellentintegration
    <b>check this link</b>
    how to send image through xi
    JPEG Image
    <b>refer this doc</b>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
    <b>Configuring the sender FILE adapter</b>
    The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
    access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
    under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
    Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
    MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
    and also change the file extension.
    The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
    data with another payload which is appended to the message as an attachment. In our case, the payload
    would be file1.xml whereas the attachment would be file1.jpg
    The swap module is denoted in our scenario with the module key ‘swap’. It has two parameters from the
    MIME header.
    Thanks !!!

  • XI: Mail - XI - File, all attachments in folder

    Hello Group!
    I am working on the following scenario: Mail -> XI -> File (XI NW2004 SP19)
    The mail adapter picks up the mails form the mail server and the file adapter should save the files to an existing folder. Basically the adapter works fine, but I have problems with attachments. The file adapter only save one file (the mail) to the folder. The attachments won´t be saved to the destination.
    Then I found the Module PayloadZipBean (http://help.sap.com/saphelp_nw04/helpdata/de/45/da9358a1772e97e10000000a155369/frameset.htm). In the monitoring I can see all attachments in the payload. So I tried this module to zip all payload contents (as described in: /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework).
    But it doesn´t work. No zip file will be created. Do I have to install the PayloadZipBean?
    My settings:
    Reg. Parameter:
    Transport Protocoll: NFS
    Message Protocoll: File
    Adapter Engine: Integration Server
    File name scheme: example.zip  (it just works with .dat - but then only the mail)
    File construction mode: Add Counter
    Write mode: Directly
    File Type: binary
    Reg. Module:
    Nr____Module Name________________Type___________________Module Key
    1 - - - - AF_Modules/PayloadZipBean - - Local Enterprise Bean - - - - 1
    2 - - - - CallSapAdapter - - - - - - - - - - - - Local Enterprise Bean - - - - 0
    Module Key__Parameter Name__Parameter Value
    1 - - - - - - - - - zip.filenameKey - - contentType
    1 - - - - - - - - - zip.mode - - - - - - - zipAll
    Can anyone help me?
    Thanks in advance.
    Kind regards,
    Martin

    Hi Stefan!
    Hi Group!
    Now the PayloadZipBean works. The reason was, that I try to use variable substition. Without this, it works.
    But unfortunatelly, I need the variable substition. The name of the zip or of the target folder should have the name of the mail subject.
    In your great blog
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    you use no variable substitution. Do you know how to handle it?
    When I use the variable substitution, the following error appears:
    com.sap.aii.af.ra.ms.api.DeliveryException: Error during variable substitution:
    com.sap.aii.adapter.file.varsubst.VariableDataSourceException:
    Caught SAXException while parsing XML payload: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser:
    No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)</
    Settings of variable substituion:
    File name scheme: %subject%.zip
    Variable substitution: subject = payload:Mail,1,Subject,1
    (this works without the PayloadZipBean)
    In my opinion, the reason is the order of module and adapter.
    At first, the module PayloadZipBean starts to zip all payloads in one zip. Then the file adapter starts and tries to use the variable substitution. But then there is no access to the first payload anymore --> error.
    Does you or somebody else know, how to handle this?
    Maybe there is a better solution without the PayloadZipBean. I just want to save all mail attachments to a file system with the name of the mail subject. Unfortunately with the file adapter only the first payload will be saved to the file system - maybe there is a better solution.
    Thanks,
    Martin

Maybe you are looking for