Regarding picking files from sender Adapter

I want to pick files from multiple directories from the sender adapter.
Is there any way to write a module fro the above functionality?
If possible, please provide the solution for the above query

Hi virkram,
take a look to this thread
Re: File Sender Adapter - Multiple Source Directory
Hope this help
Francesco

Similar Messages

  • File Adapter - Reading 2 files from sender and one file to receiver

    All - I am looking for a best solution for reading two files from sender and generating one file to the receiver.
    Here is the scenario
    Sender file s - A is a master file. B is a detail file; B will have a one to many records for each record of File A.. that is the relation ship between 2 files..  I am looking for a better solution to
    Example
    Input:
    File A will have a record like "summary1 ABC 1234"
    File B will have a record like "Detailfor Summary1 CDF 8679"
    Output:
    File C shall have a record "consolidatedofSummary&Detail ABC 1234 8679"
    1) read records of master row and detail row from these 2 files
    2) do the mapping to the receiver output format which it is creating for records with some harcoded values and based on the values from master and detail rows of sender file
    if I can accomblish reading sender files and do the mapping to the receiver , assume that mapping to the receiver format would not be cumbersome.
    please help me...
    Thanks

    Hi Gopal,
    Ur approach to the interface is perfect.... Go ahead.
    For selecting multiple files in source use Advanced Selection for files.. and specify the directory paths and also the file name shema...
    This will fetch the 2 files into the integration engine... then u map the 2 source files to one target file(2:1 mapping).
    Specify accordingly the receiver side FCC and test it end to end...
    If u face any prblm post here... some1 will help u out..
    Babu

  • How to pick files from ECC directory

    Hi All,
    I have to pick files from the directory of ECC. can anyone tell me how to configure the sender File apapter? Can i use NFS for the same?
    Regards,
    Lavanya R

    Hi Lavanya,
    With my knowledge two ways to pick the file from ECC using File adapter.
    1. If you use NFS, mount point should be created in ECC for the Directory to access from PI.
    2. If you use FTP, FTP ports must be opened between PI and ECC.

  • NotSerializableException reading file from configuration adapter

    Hi!
    When I try to access a file with config.getFile() that is stored in VA configuration adapter I get a P4BaseRuntimeException with an underlying NotSerializableException.
    This is what I'm doing:
    Context ctx = new InitialContext();
    ConfigurationRuntimeInterface configInterface = 
         (ConfigurationRuntimeInterface)ctx.lookup("configuration");
    cfgContext      = configInterface.getConfigurationContext();
    cfgHandler      = cfgContext.getConfigurationHandler();
    config     = cfgHandler.openConfiguration(path, ConfigurationHandler.READ_ACCESS);
    boolean exists     = config.existsFile(filename);
    InputStream is = config.getFile(filename);  // this is where the exception occurs
    I've omitted handling for InconsistentReadException in this post, to keep the code short.
    The existence check with config.existsFile() returns true, so configuration path and filename seem to be ok. However, config.getFile() throws a NotSerializableException.
    So, how can I read a file from configuration adapter? What is my mistake?
    Thanks for your help,
    Frank

    hi frank,
    in addition to the above content
    u can refer the how to use the  config.getFile()
    http://kickjava.com/src/org/apache/commons/configuration/reloading/FileChangedReloadingStrategy.java.htm
    let me know u need any further info
    bvr

  • Receive XML file from CIDX adapter and Post to SAP as IDoc using XI

    I have scenario where we will receive the xml file from CIDX adapter. I need to take the xml from CIDX, do the Database Lookup and post it to SAP as IDoc.
    Any technical documentaion or step-by-step process documents can be very helpfull to me, since I am new to XI
    Thanks
    SP

    Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
    In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
    Overview of Lookup
    - Lookups are used to identify/request the data from mapping program.
    - It interrupt the process and looking for data which was stored in target system.
    - It get that data and comeback to process and continue with that data.
    Types of Lookups in XI
    - JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
    - RFC Lookup: RFC lookup is used for accessing the SAP Data.
    - SOAP Lookup: SOAP lookup is used for accessing data from Webservice
    Steps to perform Lookup in Mapping
    Import package com.sap.aii.mapping.lookup.*;
    Create connection to the target Database system.
    // Determine communication channel created in ID
    Channel channel = null;
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    // Get system accessor for the channel.
    DataBaseAccessor accessor = null;
    accessor = LookupService.getDataBaseAccessor(channel);
    Build the Query String.
    Getting Result
    // Execute Query and get the values.
    DataBaseResult resultSet = null;
    resultSet = accessor.execute(Query);

  • Background: Pick files from directory at central instance

    Hi,
    In Background, We want to pick files from the directory present central instance. I am using FM RZL_READ_DIR_LOCAL to read all files present in directory and later we process each of them.
    This FM works fine while I work online but not in background. In Development and Quality servers it works fine in background. possible reason could be that we dont have central instance in dev and quality server.
    Please suggest.
    Thanks

    You can go through his article once
    link:[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2?quicklink=index&overridelayout=true]
    Your presentation server must be switched on when performing these kind of actions.

  • How to pick files from multiple directories via Sender File Adapter?

    Hi guys,
    I have a scenario File to IDOC. The Sender File Adapter has to take all files: .xml from Source directory E://Current/.
    Actually directories are like
    E:/Plant1/Current/
    E:/Plant1/History/
    E:/Plant2/Current/
    E:/Plant2/History/.
    Can I have one Sender File Adapter to pick all *.xml files
    from
    E:/Plant1/Current/ and
    E:/Plant2/Current/  and how can I write it in Source Directory of Communication Channel?
    Or do I have to have a Sender File Adapter for each Plant?
    Any suggestion please?
    Kind regards,
    Danijela Zivanovic

    Hey
    You might wanna have a look at "Additional selection for source file" parameter in sender file adapter.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/singleSenderFileCC4MultipleDirectories
    XI/PI: how to exclude files in a sender File adapter?
    Even though this method works but there are some constraints,please check help.sap.com for constraints.
    Thanx
    Aamir

  • Soap Adapter not Picking up files from sender

    Hello All,
    I have configured a SOAP Adapter and started it. When i place a file in the appropriate directory, it is not getting picked up. Are there any reasons this could happen ?
    I would really appreaciate it if someone can help me with this !!!
    Below is the log:
    17:26:27 (3812): Enabling service ToWS
    17:26:27 (3812): Enabling service FromWS
    17:26:27 (3823): SOAP adapter initialized
    17:26:27 (3830): Starting the server at 8660:/XIservices/MXS/xmb
    17:26:27 (3830): Starting the server at 4444:/XIservices/MXS/ws
    17:26:27 (3807): SOAP adapter started
    Below is part of the config file:
    The port and path where the adapter waits for web service messages from clients.
    XMBWS.WSPort=4444
    XMBWS.WSPath=/XIservices/MXS/ws
    XMB.SenderBusinessSystem=WLX_100
    #XMB.ReceiverBusinessSystem=MD1_400
    XMB.User=XIAPPLUSER
    XMB.Password=********
    XMB.Client =100
    XMB.Language=EN
    XMB.SenderInterfaceNamespace=http://xi.sap.com/wlx
    XMB.ReceiverInterfaceNamespace=urn:sap-com:document:sap:idoc:messages
    XMB.SenderInterfaceName=ProcesseFT
    XMB.ReceiverInterfaceName=Z_SERVICE_ENTRY.ZSERVICEENTRY01
    XMB.TraceLevel=0
    XMB.LoggingLevel=0
    XMB.QualityOfService=EO
    XMB.ContentType=text/xml

    Hi,
    If you are using a Stand-alone J2SE Adapter Engine, you can create a SOAP adapter to pick a SOAP message from a file system and send it to the Integration Server. This is available with the XI3.0.
    The configuration will look like this.
    Bubble adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleBubble
    This adapter instantiates a bubble bag for supporting
    a soap file upload and sender. A bubble bag is a collection of Bubble
    instances that form some processing chain of message objects.
    Below parameter Bubble.Helper specifies the helper class that implements
    the ModuleBubbleHelper interface. This class is used to instantiate
    a bubble bag for this adapter.
    Sets the bubble module helper that can instantiate your bubble bag
    Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperSOAPFileSenderImpl
    #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    Below this line are the parameters specific to the ModuleBubbleHelperSOAPFileSenderImpl
    #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    This module loads files from the local file system, consruct SOAP messages
    (or SOAP with Attachments messages), and send them to the specified Web Service target URL.
    Upon successful completion, response messages are stored in the file system.
    Files stored can represent a plain payload, a SOAP envelope, or a SOAP with Attachments.
    Plain payload files and SOAP envelope files may be packaged in MIME using some MIME headers.
    SOAP with Attachments files must be packaged in MIME.
    Specifies the type of the file. The available values are:
    plain for plain; soap for soap envelope; swa for soap with attachments
    SFSender.ContentMode=soap
    Specifies the packaging
    true for MIME packaged file; false for bare content
    SFSender.MIMEPackaged=true
    log everything (4-digit binary, where the bits indicate which
    information is logged: req message, req context, resp request, resp context)
    SFSender.Log=1111
    The target URL to which messages are sent.
    SFSender.TargetURL=http://p28848:4040/mysoaphandler
    The upload directory on the local file system
    This directory has six sub directories with names 0, 1, 2, 3, 4, 5, and 6. (they will be created)
    The meaning of each sub directories are:
    0 = inbox where you place messages to be sent
    1 = trash box
    2 = work box
    3 = successfully completed (original) messages go in
    4 = response messages come in (if any)
    5 = undelivered (original) messages go in
    6 = error messages come in (if any)
    In these directories, the file names are used as key and there can be only one file with
    the same name except in the trash box. So, when you place in the inbox a file with
    the name identical to one of the files stored in another directory, it will not processed.
    SFSender.Directory=/tmp/sfsender
    The polling interval in milliseconds (default is 5000)
    #SFSender.PollingInterval=5000
    The retry delay after each failure in milliseconds (default is 5000)
    #SFSender.RetryDelay=5000
    The maximal retry count upon failures (default is 3)
    After the maximal retry count is reached, the message is moved as undelivered.
    #SFSender.RetryCount=3
    The number of dispatchers to send requests (default is 3)
    SFSender.DispatcherCount=1
    END
    Hope this helps.
    @Ravi: You may call me at +91 9844167672.
    Warm regards,
    Venki.

  • HTTPs sender adapter to pick file from a external HTTP file location

    HI gurus
    Please see the problem here. I need know hoe to configure the Sender HTTP adapter.
    My Scenario-
    A Flat file (non-xml but structured) sitting on an external https enabled web server. I need XI to go out and get this file on a regular basis (which will then be processed laterby the business person)
    Thanks
    VL

    Hi,
    The FTP Adapter will do the job for you. Just create a File Communication Channel and change Transport Protocol to FTP. Since you mentioned that the file is non-xml, in the Message Protocol, choose, File Content Conversion.
    Here are some blogs that will help you:
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    FYI.. HTTP Sender adapter is not required to be configured because a HTTP request will directly come to the ABAP Engine
    Regards,
    Balaji.M

  • Picking files from multiple folders based on name send to destination folde

    Hi,
       I want to pick multiple files from multiple folders with one root folder. Based on file name I want to send it to diffirent folders. No need to go for message mapping. Can anyone suggest me.
    Thanks & Regards,
    Prasad Kotla.

    Hi Prasad,
    to pick the files from multiple source directory, can use "Advance Selection for Source File" in Sender CC.
    If you wand to develop a Scenario without Message mapping, develop a scenario as "Sender as Virtual receiver"
    This option is available in Sender agreement, just give the dummy name for Msg Interface and Namespace, Name defined should be same in Rec Agreement.
    Develop only: Sende CC, Receiver CC, SA, RA
    No need to develop ID and RD as no mapping is involved.
    If u want to send the files to different folders of receiver side, just develop the adapter module which changes the directory based on the sender filename.
    If the sender and receiver directory is same than check the "adapter specific Msg Attribute"  and "directory" checkbox in both the sender and receiver CC. in this case no need to develop Custom module for changing the directory. files will be automatically placed in the path they were picked from  sendor directory
    appreciate if useful
    regards,
    chandra shekhar

  • File Adapter: picking files from multiple directories

    Hi all,
    In a sender file communication channel with Transport
    Protocol FTP, There are 2 parameters for Picking up the file
    called Source Directory and Filename. If I want to pick the
    files from 2 or more directories, What needs to be done.
    Or is it possible to do so ?
    Without making duplicate interfaces what else can be done ?
    Regards,
    Vijay

    Actually it is possible to select files from different folders for sender channel. It is available with SP14.
    I just copy following description from help.sap.com
    Advanced Selection for Source File
    If you want to set an exclusion mask for the File Name specified above, or if you want to specify multiple directories using a file name mask and exclusion mask, set the Advanced Selection for Source File indicator.
    ¡        Specify an Exclusion Mask for the file name specified above.
    Example
    You want to process all files that have the extension '.txt', but want to exclude all files that begin with the letter 'a'. To do this, enter .txt for File Name, and a for Exclusion Mask.
    ¡        You can enter additional specifications for source directories, file names, and exclusion masks in the table. This data is processed in addition to the details specified above.

  • To pick files from multiple directory in FILE ADAPTER

    Hi all,
    Is their any settings or adapter configuration parameters to be used  to pick  the files from multiple directory .

    Hi,
    You can only specify one directory on the communication channel. The advance selection allows the selection of different files within this directory.
    Therefore you will need a communication channel for each directory you wish to pull files from.
    (Just looked at the blog and see it is possible after all - I'm on the wrong SP)
    Kind regards
    Colin.
    Message was edited by:
            Colin Bickell

  • Peculiar behaviour in picking file from FTP in File-IDoc scenario

    Dear XI Expert,
    I have successfully completed configuration of FTP --> XI --> IDoc scenario. I have noticed a peculiar behaviour in picking the file from FTP. I placed a file on FTP and activated File Adapter with poll interval '60' secs and processing mode as 'Archive'. For the first time it has picked the file with expected behaviour and IDoc got posted to SAP successfully. But when I placed file for the second time and when refreshed the FTP directory, immediately file got archived without waiting for 60 secs. But in sxi_monitor I could not see any activity of processing this scenario. Surprise is that, file got archived in target directory. This goes on and on... without registering any activity of processing the message in Message monitoring.
    In adapter monitoring it shows the message as described below:
    <i>History:
    2006-05-09 22:57:25 : Processing started
    2006-05-09 22:57:25 : Error: Processing interrupted due to error: FTPEx: No such file
    2006-05-09 22:57:24 : Processing started
    2006-05-09 22:57:24 : Error: Processing interrupted due to error: FTPEx: No such file</i>
    For your information my SAP XI system is on SP16.
    Please find below the parameters of sender adapter:
    <i>Quality of service: Exactly once
    Poll interval: 60 secs
    Processing mode: Archive
    Connect Mode: Per File Transfer
    Transfer Mode: Binary</i>
    Can anybody help me out in resolving such a problem in this scenario?

    Hi Jayakrishnan,
    Thanks for your reply.
    Once again the same problem is noticed. i.e., for the first time when file adapter is activated the file got picked, activities were logged in monitoring and IDoc got posted to destination system. For the second time when file is placed, before 60 secs got completed the file is picked and archived in the target directory. No activities in monitoring are logged.
    I have tried it checking the message at adapter level, but it is showing 'No results' (even in the case of successful pick of the file for the first time, not even it is showing other file adapters).
    I was not able to understand where the problem could lie?
    Regards,
    Suraj Kumar

  • Error in picking files from FTP Site

    Dear All,
    I m using one communication channel of type FILE to pick the files from a FTP Site. Yesterday, the communication channel stopped picking the files from the FTP site. I checked the adapter in the Adapter Monitoring and it was green and was showing success messages in SXMB_MONI. I then just reactivated the complete scenario and the communication channel started picking the files again.
    Is there a way to find out the trace or log in the server for the adapter or communication channel? Or how can I find out what went wrong.
    Warm Regards,
    N.Jain

    Hello Nishant,
    That is a problem which happens frequently( atleast i faced the same ) .
    The issue is realted to timeout in your FTP Adapter (Connection Issue). Just check out the mode of connection in your file adapter is it permanant or reconnect after a certain time.
    What you can possibly do is contact the team which maintains the FTP server...
    Regards,
    Sumit

  • Picking files from FTP server with dynamic Filename.

    Hello Experts,
    I want to pick some files from a FTP server in a File to Idoc scenario. The files in the Ftp Server are created with the filenames as timestamp of the file when it was created. How do I pick up these files?
    Thanks,
    Merrilly

    Hi,
    The above masking concept (*.txt, . etc) will be applicable for the files with NFS only,
    See the below link to apply it
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    The below link will help you to build up the adapter module to read the dynamic file name
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805
    This could be applicable for FTP ...
    Thanks
    Swarup

Maybe you are looking for

  • JSP + JAVA Beans +Torque

    Hey, I am using Torque to connect MySQL DB to JSP page, so I am using JAVA Beans, which is created by torque, I wish to use pagination to retrieve the entries from database, plz tell me how can I implement it here.

  • Dequeue jms messages using JMS adapter

    Hi, I have created jms server, modules, queue from console-messaging-jms modules. I am trying to create a soa composite to consume message from this queue. In JMS adapter wizard - step 7 - i have selected the destination queue. In this step, what sho

  • VK_TAB in a JTextField

    The mouse listener attached to a JTextField does not recognize VK_TAB but works fine for VK_ENTER. Why?

  • Dynamic Page with Multiple Checkboxes

    I am trying to get a dynamic page to pass the checked value of multiple checkboxes to the submit proceedure. Can anyone tell me what I am doing wrong? Thanks in advance, Pam ------------------------------------------------------------------------- Dy

  • Sounds different everyt

    i have been trying to configure my soundblaster audigy 4 for about a week now and everytime i change something (even something very small) or if i just reinstall (even after not changing anything) the sound from my speakers . why is this card so unst