Dynamic FTP Directory Address in File Adapter - is this possible?

We have a customer who would like us to pick up a file via an FTP file adapter once per day. The problem is, they have a different directory each day containing the file. The directory name is of the form YYYY-MM-DD. The name of the file in the directory is always the same.
Is it possible to dynamically calculate the Source Directory name in the FTP file adapter? If so, how?
Kind Regards,
Tony.

>
Dharamveer Gaur wrote:
> Hi
> Look this same thread:
> Re: Dynamic folder name (when reading file in file adapter)
Hi,
All the examples I have seen are to configure the Receiver File Adapter, not the Sender File Adapter. I don't thinl I have seen one blog yet whereby the source directory of a Sender File Adapter has been dynamically configured. I wonder if it can be done because the sender file adapter does not have Variable Substitution possibilities for filenames and directories.
So has anybody a link to a blog where this dynamic choice of a source directory has been done for a SENDER file adapter?
BR,
Tony.

Similar Messages

  • Receiver File Adapter - Dynamic FTP Server Address

    Hi,  I would like to pass the FTP Server address to the Receiver File Adapter as an parameter.  Is this possible and if so what Name Space / Parametr Names add to the Product to define these values.
    Thanks
    Andre

    Hi Andre,
    If you have your server as a part of your payload, thendynamic file server generation concept can be done is as follows. 
    In your server name field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • File/Directory renaming on file adapter

    Hello
    I have a scenario that gets a xml file from mail adapter and sends to a file adapter.
    I only use ID on my scenario, as described on blog (/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository).
    How can I rename the directory of the destination file WITHOUT using any mapping on IR (because I DONT use IR) ?
    I want the destination directory to be as /tmp/(today'syear)/(month)/
    I already read the SAP documentation about File Adapter but I wasn't able get a solution.
    Thanks

    If that is the case then you need to change the file name in FILE RECEIVER CC by implementing the Module .
    the following links may be help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/17/50d440e14f8431e10000000a1550b0/frameset.htm
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    https://websmp108.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    /people/william.li/blog/2006/08/28/teched-2006-epi350--developing-and-testing-adapter-modules-in-sap-netweaver-exchange-infrastructure
    Warm Regards,
    Vijay

  • Specifying current directory in Receiver File Adapter

    Hi Experts,
    I have been configuring a receiver file adapter to place a file onto an FTP server. As per the information provided, as soon as I login to the FTP server, I have to place the file in current logged in directory. In this case, how can I mention this in file adapter as to use the current directory path to place the file? What should I enter in 'Target Directory' in File Access Parameters?
    Thanks,
    Dhawal

    Hi Praveen,
    Since file directory parameter is mandatory, my question is what should I enter in this parameter so that the file adapter will know that the file should be placed in the root directory itself?
    Regards,
    Dhawal

  • Dynamic configuration required in sender file - Adapter Module

    Hi Everybody,
    I am developing an Adapter Module in the file adapter (sender) using Adapter Specific Message Attributes.
    I am using Dynamic configuration inside the Module Process method in the adapter module.
    We are getting an error saying Dynamic Configuration cannot be resolved.
    Can anybody tell me the package to be used.
    Thanks,
    Zabiulla

    You can access the dynamic configuration in adapter module like this:
    Message msg = (Message) inputModuleData.getPrincipalData();
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
    You do not need any addition library besides the adapter module API.
    Hope that helps
    Stefan

  • Data Transfer Port ranges in FTPS with SSL in File Adapter

    Hi,
    I would appreciate if you could give me pointers reagrding the below issue.
    We are on XI 3.0.
    For one interface, I have to configure the FTP File adapter to pick up the files from external server.
    The connection is secure and should be FTPS with SSL.
    I have the certificate from the 3rd party and have it installed on our XI development server.
    The change has been made in our firewall to allow the connection to the host IP and port 21 which is configured at the target party as Explicit FTPS port and they have allowed access to our Server IP in their firewall.
    I have configured other FTPS connections and they worked fine but this is the only one that has been giving me so much trouble.
    The error i get today is:
    Error occurred while connecting to the FTP server "60.234.48.106:21": java.net.SocketException: Connection reset
    Yesterday, i got the below error:
    Error occurred while connecting to the FTP server "60.234.48.106:21": iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier
    The Vendor has suggested to get the firewall ports 21 and 28000:30000 (data transfer) to be opened.
    He has also provided with the certificate passphrase additionally to the user name and password needed to make the connection.
    When i tried the connection from the XI development to the vendor server, via the Telnet, it looked like it worked.
    Please advice.
    Regards,
    Archana

    >
    Archana Singhai wrote:
    > Hi,
    > I would appreciate if you could give me pointers reagrding the below issue.
    > We are on XI 3.0.
    > For one interface, I have to configure the FTP File adapter to pick up the files from external server.
    > The connection is secure and should be FTPS with SSL.
    > I have the certificate from the 3rd party and have it installed on our XI development server.
    > The change has been made in our firewall to allow the connection to the host IP and port 21 which is configured at the target party as Explicit FTPS port and they have allowed access to our Server IP in their firewall.
    > I have configured other FTPS connections and they worked fine but this is the only one that has been giving me so much trouble.
    > The error i get today is:
    > Error occurred while connecting to the FTP server "60.234.48.106:21": java.net.SocketException: Connection reset
    > Yesterday, i got the below error:
    > Error occurred while connecting to the FTP server "60.234.48.106:21": iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier
    > The Vendor has suggested to get the firewall ports 21 and 28000:30000 (data transfer) to be opened.
    > He has also provided with the certificate passphrase additionally to the user name and password needed to make the connection.
    > When i tried the connection from the XI development to the vendor server, via the Telnet, it looked like it worked.
    > Please advice.
    > Regards,
    > Archana
    1. Open the port ranges. FTPS usually requires you to open ports in the range of 65024 through 65535 for Passive FTP data
    connections
    2. Use the CA name in the certificate. it should be same as of the host name of the FTPS server

  • Directory specification for File Adapter

    Hello,
    I would like to ask if it is possible to determine a directory where message is saved for file adapter based on message content.
    E.g. I have general directory (GD) under which I would like to save a messages in directories with are called based on vendor number what is part of a message.
    So a message would be saved in
    ...\GD\vendor number\file name.
    In case that vendor number directory is not created yet I need to create it.
    I know that in file adapter a directory name is constant and file name can differ based on settings.
    This behaviour is in Business Connector enabled through possibility to write an "user-exit" in Java for directory determination.
    Is something similar possible in XI ?
    We are currently running on XI 3.0 with external adapter engine version 2.0 but to use internal adapter engine is no problem for me.
    Thank you for your advice.
    Marian Morzol

    Hi Marian,
    You can do this with content based routing in the interface determination, but then you have to create a new interface/channel for every extra directory.
    Cheers,
    Frank

  • Need to get file name and directory back from file adapter - WRITE

    I am using the file adapter to write a file. I want to log the file name of the file we just created. Since we use a precise timestamp in the file name, I can't accurately guess.
    I have an invoke in my BPEL process to the file adapter. My first try was to assign the jca.file.FileName property to a variable, but it never comes back. I looked around and saw plenty of ways to SET the file name for a write and GET the file name for a read, but no GET file name for WRITE.
    Anyone have a solution?
    Thanks in advance!

    I think I got your point... You can tell FileAdapter the filename to write, but if you don't then FileAdapter can not tell you the filename that it wrote... I think it is pretty possible Oracle didn't implement the latter, as the write operation is probably asynchronous and the filename is calculated later on...
    If what you want is just log, you may achieve your requirement by increasing verbosity on Adapter logs... Have a look at the link bellow...
    http://docs.oracle.com/cd/E15586_01/integration.1111/e10226/ad_mon.htm#CJHHBBID
    Otherwise, the solution for you will be to calculate filename yourself, and that will be a little bit of reinventing the wheel... But at least you will know the filename...
    Cheers,
    Vlad

  • File Adapter: Is it possible to track files?

    Hello XI community,
    I've a scenario where the sender and receiver is the file adapter using NFS. When XI picks up the inbound file from a certain directory with a wildcard name like "T_xxx*" is there any chance to see the original name? In addition I'd like to know how to find out the relationship between the inbound filename and the outbound name which is actually created from the file adapter like "xxxxx_timestamp.xxx". The files I'm using are binaries so I don't use the file content in anyway. They are just passed through XI. But I'd like to track the files to be able to know which input file belongs to which output file. Maybe some of you know where to see this.
    Thanks in advance
    /Michael

    Hi once emore:
    take a look at this document:
    https://websmp201.sap-ag.de/nw-howtoguides
    -> exchange infrastructure -> how to Create Modules for the J2EE Adapter Engine
    it may help you:)
    Regards,
    michal

  • Sender File adapter : Alert are possible.

    Dear All
    i had a Scenario of <u>file to jdbc</u>.I am using FCC(content conversion ) at sender file adapter.
    <b>if the file is not having proper text field,or if its's blank file...
    i want to generate an alert..</b>
    while testing with a blank file , my file sender adapter is giving the error but their are no alert...
    even in alert rule , i had specified file adapter ,Sender/Receive interface also
    Rsalerttest : working properly.
    Rsalertdisp : no dump for sender file adapter error
    <u>for mapping error my other alert rule are woking and generating the alert sucessfully</u>.. for the same interface
    any guess where could be the error..
    Regards
    Ajay Pant
    null
    Message was edited by:
            ajay pant

    HI,
    For alert configuration see the belowlinks,.But in your case if the send message having the empty fields, we can handle this in FCC parameters
    xml.fieldoptional = yes
    Parameter NameA.fieldFixedLengths defined.
    &#9675;       If the inbound structure contains more fields than in NameA.fieldNames or NameA.fieldFixedLengths the conversion is executed.
    Additional fields in the structure are ignored.
    &#9675;       If the inbound structure contains less fields than specified in NameA.fieldNames, conversion is terminated with an error message.
    If the last field only is shorter than defined or is missing completely, the conversion is executed. The contents of the last field are then applied to the XML element as found. Consequently, the value can be incomplete or empty.
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    for CCMS
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1 -- ccms alerts - 1
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2 -- ccms alerts -- 2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3 -- ccms alerts --- 3
    Chilla

  • How to change read-directory when using file adapter

    Hi, I'm deploying BPEL process to read files from a directory. I want to change the directory where to read dynamically. This can be achieved by using a file header variable. I know how to do this. But, the problem for me is that I can not find a place to assign this file header variable a correct value. The first step in my BPEL process is the receive-step and this has to be the first step. I wanted to place the assign-step before this step but this makes the BPEL process invalid. First step has to be a receive or a pick-step. So, now I have a dilemma! Anyone an advice on this?
    Thanks in advance.

    Maybe you can use this information :
    http://otndnld.oracle.co.jp/document/products/as10g/1012/doc_v3/integrate.1012/B14448-01/html/app_trblshoot.htm
    A.3.3 Common User Errors explains something about the fileheader messages

  • I cannot install itunes because of an error while trying to create directory H:\Program Files why is this happening

    I get this message when trying to install itunes, I have tried just about everything but nothing works. I have wiped ALL traces of itunes and started again...no luck...iI tried a 32bit instead of a 64 which is what my pc is rated for...no luck...it was all due to the latest version being released so I tried to upgrade but nothing works. Not even rolling back to a previous version is working.
    Any ideas????

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • I would like to burn pictures to a disk in a certain order, not according to file numbers -is this possible?

    Im using IPhoto and would like to burn an album to a DVD. In the album, I have put the pictures in the order I want them.  But it appears when I export them to burn on a DVD, they go in numerical order.  Is there a way to burn the album with the pictures in the order I want them to be in?

    No.
    Files don't have an order. They're just on the disk. The FInder can view them in a number of ways: sorted by name, date, size etc, but that's all. The only way to reliably get them to show in a preferred order is to name them... Pic_01.jpg, Pic_02.jpeg etc.
    Fast way to do this:
    Create an Album in iPhoto, drag the images you want to the album and arrange them as you prefer.
    Then select all and go Photos -> Batch Change
    Set the Title to... Text, and add, well whatever is appropriate.
    Check the box to append a number to each photo.
    So now they are all there in order as Text 01, Text 02 etc.
    Now Export them. File -> Export
    In the export dialogue there are a number of options that you can read about here:
    https://discussions.apple.com/docs/DOC-4921
    But from the point fo view of naming, in the export dialogue choose to use the Title.
    Complete the export to a folder on the desktop.
    Now you have a folder of files called Text01, Text 02 and so on.
    Burn that to disk.

  • I would like to add a new card date field to my address Book Contacts. Is this possible? Thanks, Jeff

    Hi,
    I would like to add a new card date field to my Address Book Contacts. Is there any way to do this? I have a lot of contacts and it helps me remember who I talked to, if I had a new card date field in my contacts.
    Thank you,
    Jeff

    Hi,
    I found the applescript below from Michael Bach that works well.
    (* Find recently modified entries in the Address Book
    Input: a time interval (backwards from today) in the variable "daysBeforeToday"
    Output: a string on the clipboard, format: YYYY-MM-DD (tab) Name (return)
    ©2009, Michael Bach, <www.michaelbach.de> *)
    set daysBeforeToday to 7 -- <<<  change as desired or read from a dialog
    tell application "Address Book"
      copy (current date) - daysBeforeToday * 24 * minutes * 60 to referenceDate
      copy (every person whose (modification date > referenceDate)) to modifiedPersons
      set s to ""
      repeat with aPerson in modifiedPersons
        set d to ((modification date) of aPerson) -- now change to international format and forget the hours
        set dateString to (year of d as string) & "-" & (my twoDigits((month of d) as number)) & "-" & (my twoDigits(day of d) as string)
        set s to s & dateString & tab & (name of aPerson) & return
      end repeat
      set the clipboard to s --for pasting into other applications
      s -- to view immediately in the script editor
    end tell
    on twoDigits(aNumber) -- trivial utility for formatting
      if aNumber < 10 then return "0" & (aNumber as string)
      return (aNumber as string)
    end twoDigits
    I changed the modification date to creation date.
    Thanks for the replies.

  • I would like to make one file and add several related files of photos in the one event.  Keeping photos in seperate event files in one large event file.  Is this possible?

    I would like to make one event file and add several realted event files in this one event file without putting all photos together.  Can this be done?

    Files and events ahve nothing to do with each other
    If you are looking for "sub-events" that is not a feature of iPhoto
    you can use albums and folders - albums hold photos and folders hold albums or other folders
    If thsi does not answer your queation please ask it again - it is not clear
    LN

Maybe you are looking for

  • Problem with struts validator on WLS 8.1

    I am having a strange problem, when I run my app in eclipse using weblogic plugin it works fine and I get no exception. As soon as I run it externally in a standalone server I get an ServletException which seem be be because of struts validator class

  • Error when trying to use this query in report region

    Hi , I am getting "1 error has occurred Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00933: SQL command n

  • Itunes does not display "Devices"

    I downloaded the latest version and reinstalled ipod but can't choose or name the ipod. Thanks for any help

  • How to install mavericks from scratch

    Hi I have just upgraded my imac with an OWC Mercury 120 Gb SSD and increased ram up to 12 Gb. The upgrade was made by a service where I sent the mac with OSX Maverics and a few apps previously installed. Everything runs fine (no more tha 3 secs to st

  • Duplicate Queries in a system

    Hi All, We have a scenario where we are developing and transporting a query from sandbox to production. If the same query with the same techincal name is developed and transported from another system to production will the query be duplicated. Thanks