File adapter can be improved.

The configuration parameters of the file adapter can be much more dynamic to atleast incorporate commonly used variants instead of writing additional modules.
Iam just listing down some of the points which might be used commonly and we have to follow adhoc process to incorporating the same.
1.Regular Path Expression search for picking up files in sender adapter.
2.Suppression of file content(Certain nodes should not be written) if required in the receiver file adapter.
3.Some times we might need to change FTP passwords  though we set FTP  password  to unexpired which will end up changing all file adapters configured.
4.We might need to point the different FTP servers at later point of time and then we need to end up changing the configuration as just changing the SLD entry would not help.
It would be good if these type of parameters can reside in a central storage like an SAP Table in ABAP stack where the changes can be reflected globally .It is much more better if we have a transaction in SAP where we can select the list of file adapters and apply the set of common properties to those group.Being a SAP FAN ,expect this kind of functionality in the upcoming releases of XI.

For number 1, you could use a module. It the file name does not match the regexp then you could terminate file processing.
For number 2 you could use a module which pases the XML content and supress the elements.
The other problems might be solved by using adapter templates , which are defined in the rep. You though still need to apply the password or host name on all channels.

Similar Messages

  • What is the Maximum Data can a file adapter can send at a time.

    Hi ,
    What is the Maximum Data can a file adapter can send at a time.Is there any maximum limit data can adapters will send.
    can any one help on this.
    regrads
    Raghu

    Hi Reddy,
    I have raised the same question and I got correct answer.
    Refer the below thread which will give u information.
    Wat is the maximu size of data XI can handle
    Thnx
    Chirag

  • Sender File Adapter Can I  set original MessageID like SOAP Adapter??

    Hello,PI Experts!!
    I want to set original messageID(GUID) to Sender File adapter scenario.
    SOAP Adapter can set original messageID with url, about FILE Adapter??
    I think Adapter Module maybe can set original messageID.
    best Regards,
    Yuuki Fujioka.

    Hello,
    Yes, you can get Message ID with any adapter.
    All neccessary information about approach you can find in links below:
    Use getTransformationParameters().
    Accessing Adapter-Specific Attributes
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Container Object
    http://help.sap.com/saphelp_nw04/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/content.htm (String Mapping Runtime Constants: MESSAGE_ID)
    Br,
    Dzmitry

  • Sender file adapter - Can I use *.xml for the file name

    Hi Gurus,
    I have some interfaces where I need to pick the file from a directory. The name of the file will have Data<i>time stamp</i> as the naming convention. Can I use *.xml to pick up my files from this directory?
    The help.sap.com documentation says that we can use this naming convention.
    <b>
    &#9679;      File Name
    Specify the name of the file that you want to process. The name can contain placeholders (*, ? (placeholders for exactly one character)) so that you can select a list of files for processing.
    </b>
    I tried using *.xml for my file name in the communication channel, XI is not picking up this file.
    Please let me know if you have the solution.
    Thanks
    Kalyan

    Murthy,
    Thanks for the reply.
    I am using GuildFTP tool as my FTP server. In this tool, all the permissions were given for the file to pick up.
    The status of the file is good.
    Where in the file adapter configuration I have to select 'Read-only'?
    The file adapter is working perfect with the exact name of the file.
    Thanks
    Kalyan

  • File adapter can't connect to xi-engine

    Hello,
    I have a problem running the file copy scenario from tutorial. The file adapter reads the file and removes it from the source directory but the message never receives the mapping engine.
    The adapter throws the error message (sorry it's a german installation):
    'Fehler beim Übertragen der Message zum Endpunkt https://hpsaps01.inveos.com:8001/sap/xi/engine?type=entry über die Verbindung AFW. Grund: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: java.io.EOFException: Connection closed by remote host.'
    Translated to english this would mean: Error by sending message to endpoint over connection AFW.
    The status of the ist wait and changed after some time to system error.

    Hi Volker,
    I think it is a problem with Cache refresh. SO go to SXI_CACHE and try to refresh the mapping.
    Also check this
    File Adapter - Sender Problem
    Also have a look at the following threads...
    Transmitting message to entry pipeline failed !!
    Problem while sending a FILE?
    File Adapter
    If the above doesnt work, Just try to restart AFW and AFxxx services (from Visual Admin)
    Steps to restart AFW and AFxxx services are:
    Start the Visual Admin tool. Connect to your XI J2EE Engine (640).
    Go to Server->Services.
    Try to restart such services as "SAP XI AF Messaging", "SAP XI AF Core", "SAP XI Adapter: XI", etc.
    It hope it helps.
    Regards,
    Abhy

  • File adapter can I avoid that the file is  deleted when there's an error

    Hello,
    my bpel process reads files with records and deletes them from the source directory after successful retrieval (using file polling) and then updates the status of that records in a database.
    The problem is that it seems like the file is deleted as soon as it is picked up by the BPEL process so if there's an error with the database connection the file was already deleted from the source directory.
    How can I avoid this? The file should only be deleted at the end of the bpel process.
    Regards,
    Lara Fernandes.

    Hi Lara Fernandes,
    In this case of database being not available after you have picked up the file by polling, rather than allowing the process to fault and close, you can put the process into manual recovery and then the process can be retried from there, without any loss of data.
    This would ensure that it would not matter that the file was deleted from the polling directory as soon as the process was initiated.
    Hope this helps,
    Regards,
    Shanmu.
    http://www.prshanmu.com/articles/

  • Maximum record length in sender file adapter

    Hi,
    My requrement is to read a test file which contains the records of fixed length of 4096 charcters. I tried a quick test but sender adapter seems to be terminating the records.
    Is there any limitation on the number of characters in records which file adapter can read? Please suggest. I am putting togather a prototype for a potential client and it will have a big impact on decision whether PI can be used in project or not.
    Thanks for help!

    Never tried this one. How ever, were you trying with content conversion? When you say the records are being truncated, can you tell after how many characters the adapter is truncating the record?
    VJ

  • File adapter

    Can we use File adapter to connect to SAP Server to read or write the files to SAP Server
    Kris

    Hi,
    you have 2 options to do that:
    1. you can use FTP - and allow FTP connections to SAP
    server folders - File adapter can use FTP to connect to
    those folders
    Reminder
    you have to use passive FTP connections till XI SP15
    2. you can make Folders on SAP server visible from the XI
    server (shared folders) this way you can also connect
    with the use of the file adapter to get to the content
    of the SAP server folders
    Regards,
    michal

  • File adapter - connection mode

    Hi,
    RE: File adapter
    Can someone please supply me with some information:
    What is the difference between connect mode - permanently/file per transfer?
    When does the connection get closed?
    Thanks,
    Leanne

    Hi,
    Permanently:
    An existing connection to the FTP server is used permanently.
    The connection is reestablished automatically if it is closed by the server.
    ==>> It will not get closed if the data flows continuesly.it will get closed if it is not in use. then when ever the use comes into picture means the connection will be Established automatically.
    Per File Transfer:
    A new connection to the FTP server is established for each file transfer.
    ==>>It will be closed for each and every file Transfer and will be opened every time.
    Connection mode Permanantly will be better, each and every time closing and opening is not recomended
    REgards
    Seshagiri

  • 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

  • Sender File Adapter Wildcard

    Is it possible to get PI to traverse an unknown file system searching for files to drag in through the file adapter FTP ?
    I know the file adapter can be configured for multiple sorce directories, but can it be configured to search any directory with a file structure.
    I have tried a * in the directory setting like this - /apps/inbound/*/
    - The idea being anydirectory under inbound should be checked but this reads the * as a literal
    I have tried changing the filename to be */TargetFile
    - This work as far as PI finds the file, but must pass the actual filename to another function and only passes TargetFile and so the adapter complains it cannot find it again...
    Note.
    Configuring multiple directories will work but i dont want to reconfigure each time a new directory is created in this structure, And the structure will change regularly and I would prefer not to script it in unix. I am using FTP as a transfer protocol ....

    Richard,
    You said NO to all the features that XI provides. I think writing your own adapter or enahncing the existing adapter is the only choice remaining..!! After all we need to change somethings to make things work as they are. Otherwise, custom development is the only solution.
    VJ

  • File conversion and append file in receiver file adapter

    Hi
    I have a batch IDoc -> XI(3.0) -> file scenario with file conversion to create a flat CSV-like file. The problem is that because of the amount of data sent from R/3 (~20000 employees), the idoc is split into several idocs. In my receiver file adapter I want to append all the idocs contained in this data transfer to one flat file, before transmitting to FTP server.
    For the next batch transfer (the next day) XI should start all over and create a new file and append all idocs contained in that transfer before transmitting the flat file to FTP server.
    Can this be done using the 'Use Temporary File' and 'Append' options in the FTP connection Parameters in the comm-channel?
    It is not an option to append the file in the FTP-server, because the files in the destination folder are moved immediately after arrival, so the file will be moved before file adapter can append all the files.
    Does anyone have any suggestions to how to solve this?
    Br
    Kenneth

    Hi Kenneth
    Did you ever get a solution to this problem?
    Regards
    Russel Irvine
    [email protected]

  • How to process huge files using File Adapter without ESR and no FCC?

    Hi All,
    I came to a scenario where i need to pick the file from R/3 sys which of around 500MB and need to transport it to the Third party sys using PI 7.1 . This is just simply a pass through data i.e.., no mapping is required (no ESR). and i don't to make use of FCC or BPM
    My question is can the File Adapter can pick the file which is of 500MB size?
    If not then what would be best solution to do it?
    Do i need to divide the file into smaller sizes say around 100MB a file each in R/3 sys and then pick those files .
    can i do without dividing the files in the R/3 sys?
    Thanks in advance.
    Sai

    Hi Bhaskar,
    If you zip probably the size would come less which may increase his performance a little. But I feel SAP also dont recommend this much load with PI.
    If I am in his shoes then I will do a simple FTP without using PI itself. Else will look into other options. Thats my two cents.
    Hope this alexs blog will give an idea to Sai:
    /people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
    Regards,
    ---Satish
    Edited by: Satish Reddy on Jul 20, 2011 3:02 PM

  • File adapter causes FTP process stop result 0 byte file.

    Has anyone ever heard that FTP adapter can cause FTP process to stop and end up with 0 byte file transferred?
    We use the normal ftp script to ftp file from external file server place file in XI inbound folder so that file adapter can pick them up from that folder.
    We have encounter a few 0 byte FTPed file in our system. One suspecting is the network between XI server and file server might get some interruption. With out just blaming on the network. We would like to know if there is any possibility that it is also causes by our file adapter? Says, it try to read the file that is not yet complete transferring make FTP give up transferring??
    We would like to know if FTP process is transferring the file over and file adapter try to read, what will happen? Will it read file with incomplete content and ftp still go on? Or will it stop reading and return back error as the file could not be open? Or it will force FTP process to let go the file??
    Best rgds,
    Thida

    Hi,
    ><i>We would like to know if there is any possibility that it is also causes by our file adapter? Says, it try to read the file that is not yet complete transferring make FTP give up transferring??</i>
    have not seen the file adapter causing any such problems. So, it looks like a network issue.
    ><i>We would like to know if FTP process is transferring the file over and file adapter try to read, what will happen? Will it read file with incomplete content and ftp still go on? Or will it stop reading and return back error as the file could not be open? Or it will force FTP process to let go the file??</i>
    Am not exactly sure, but when a file is being created and the file adapter tries to read such a file, the file would be READ and WRITE Locked and so File adapter should not be able to read such a file until the creation of the file is complete.
    Also, take a look at the note :  <b>821267</b> , question 31 for how file adapter processes empty file.
    Regards,
    Bhavesh

  • Creating PDF files using file adapter

    Hi,
    Is it possible to create a pdf file using, File/FTP adapter? If yes can someone please suggest how to do it.
    Thanks,
    Phani

    Hi Phani,
    I would say pdf files are binary files with a specialized format.
    You can move pdf files through BPEL or ESB (i.e. file/ftp -> file/ftp), or from file to database BLOB and database to file, by importing the schema as opaque.
    However I doubt that file adapter can create PDF files from a plain-text xml file, i.e. as PDFCreator would.
    In a sense a pdf file is much like a jpg, mp3, or zip file, it can be passed through bpel but not created.
    In other words if you have a base64Binary element in xml, that you know is the complete bytes to a pdf, jpg, or other file, you can write it out as a file using the File adapter.
    Thanks
    Steve

Maybe you are looking for

  • Panasonic AJHD-1400 and Mac Pro Audio Issues

    Hi- I'm looking to setup a system with the above mentioned hardware. I've heard, however, there is an audio problem (crackling sound) when laying back to this deck via FW. Some have said this was corrected in 10.4.10 but I have no confirmation. Any i

  • Problem in activate TestTVXlet

    Hello. I try to run TestTVXlet but i get the following message: ServiceFile: com.sun.tv.receiver.ReceiverFile Loading library jmam JMFSecurity Error: Cannot Load Library jmam JMFProperties: readProperties Running Data from Class = com.sun.tv.receiver

  • Import video files from  iMovie to  iMovie 8?

    I just installed iMovie 8. I already have videos from my previous version of iMovie. How do I get them into iMovie 8? There seems to be no connection between my files and iMovie 8.

  • Xp_cmdshell proxy account

    hello, i have a weird case that i have two accounts on a database server, lets say AD and AL. the AD is a domain account and the AL is a local account. both of them are local administrators on that database server and both of them is a sysadmin on th

  • Application Startup When the iPhone is turned on

    Sometimes when I run my application, turn off (not power down) my iPhone, and then turn my iPhone back on the iPhone goes to its home screen (the one that shows all the application icons). Other times it comes back into my application. Does anyone kn