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

Similar Messages

  • How to set DEBUG severity for File adapter in J2SE AE

    Hi,
    Can anyone help me in setting the severity level to DEBUG for file adapter?
    I have tried to set in logging.properties file as given below,
    formatter[Trace]         = TraceFormatter
    formatter[Trace].pattern =%24d [%t] %-6s %l - %m
    log[Trace] = FileLog
    log[Trace].pattern     = swb_%g.log
    log[Trace].limit     = 2000000
    log[Trace].cnt          = 5
    log[Trace].formatter     = formatter[Trace]
    com.sap.aii.messaging.adapter.severity = DEBUG
    logging components
    #com.sap.aii.axis.logs = +log[Trace]
    #com.sap.aii.axis.severity = DEBUG
    #org.apache.axis.logs = +log[Trace]
    #org.apache.axis.severity = DEBUG
    Please correct me if I have did anything wrong and sugest me hot to set the DEBUG level as soon as possible.
    Best Regards,
    Soorya

    Hi Sejoon,
    when we changed the host of XI server in one of our projects one of the things we had to change was the exchange profile entries
    http://server:port/exchangeProfile/index.html
    to see how your adapter engine is configured
    http://server:port/sld
    SLD -> Content Maintenance
    then
    Subset: landscape description
    Class: XI Adapter Framework
    buth check the exchange profile entries first
    Regards,
    michal

  • Dynamic UserID/Password for file Adapter

    Hi,
    How to use dynamic UserId/Password for file adapter ?
    (Sender/Receiver)
    In our case the Id/Pwd of FTP Site changes freguently.
    Can anyone help.
    Thanks in Advance
    Regards
    Chemmanz

    Hi Chemmanz,
    >>>>In our case the Id/Pwd of FTP Site changes freguently.
    but do you have those passwords in the message payload?
    if not then you will still have to fill it somewhere right?
    BTW
    the only way would be to use java proxies and write a simple ftp adapter inside it (or your own adapter)
    but this is not possible in standard I believe
    Regards,
    michal

  • Time stamp is not getting updated for File Adapter in communication channel

    Hi All,
    Since yesterday, I am observing that the time stamp of communication channel for File adapter is not gettingupdated some times.
    I had to stop and start the communication channel to update the time stamp.Please let me know if anyone has come across such issue or any useful notes on this.I could not find any related notes on Market place.
    Regards,
    Dinakar

    Hi,
    This is happening only with one communication channel which is sender in derection.Any reason why it is happening like this?since the restart of the communication channel it is getting update now.I really do not know how to delete/create the communication channels as this was done our PI consultants.Pls guide me.
    Regards,
    Dinakar

  • How to have Secure Connection for File Adapter.Pls help

    Hi All,
    For File to File Scenario
    How to have Secure Connection for File Adapter.
    Pls send links/blogs explaining this scenario.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • Dynamic Configuration - Set Directory Path for File Receiver Adapter

    Hi Experts,
    I have a question regarding the dynamic configuration for the file adapter. Is it possible to set a directory path without a message mapping for the file receiver adapter? the problem is that I want to import a pdf document. this pdf document I want to store in a dynamic directory (depending on the filename). so I have to read the filename out of the dynamic configuration and generate (depending on the filename) a directory for this file. Is that possible without a message mapping? I cannot make a message mapping because the file has the pdf format and should not get changed.
    best regards
    Christopher Kühn

    Hi Gaurav,
    I use the ASMA (respectively the filename) for the sender adapter. After the pdf was imported into XI this filename is in the ASMA.
    But what then??? How can I get this filename with the help of the variable substitution? and if I have this filename I have to change this filename a bit to generate the name / path of the directory.
    Please explain it to me detailled
    Thanks and regards
    christopher

  • Dynamic update to Inbound Directory for File Adapter Read

    I've seen references to others asking similar questions but never a good answer.
    I have a process that outputs files into daily dated directories. In other words, my Inbound Direct name is dynamic. I would like BPEL to be able to pick up these files but the Directory Spec for the inbound file adapter seems to be set at design time (or in the case of a Logical Directory Deployment time).
    The directory names are in YYYMMDD format. So it would be:
    importdir/YYYMMDD
    for each day.
    Is there a way I can monitor an entire subtree, or have some event that triggers the directory name to be updated (for instance, a process watches the parent directory and kicks off when a new directory is created), or any other method I can inform the FileAdapter to begin polling a different directory.
    Thanks.

    Hi,
    Look at this document : [Oracle JCA Adapter for Files/FTP|http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAFJCCE]
    Romain.

  • Receiver server definition for file adapter

    Hi,
    I am trying to create a scenario where the data from SAP system goes to XI through ABAP proxy and has to write the data in the file.
    My Question...
    In the Integration directory my sender system is ABAP Proxy and receiver system is File adapter.
    When I try to create a distribution channel of type XI adapter, I cannot select it as sender. By default it comes as receiver. How Do I go about doin this scenario.
    Also, since I have to write to a file, it is my receiver(outbound adapter). Please can anyone tell me what would be the service definition for this as I am writing to a directory!!!
    Thanks in advance.

    Hi ,
    That is what I have done.
    XI Adapter(ABAP Proxy) is my sender system.
    File adapter is my receiver adapter.
    But I am unable to make a distribution channel with XI adapter as sender. The radiobutton of receiver is only active and I am unable to select the sender radio-button. Is this some sort of error.
    Actually when I select XI, HTTP, IDOC and RFC adapter in communication channel, the receiver radiobuttion is selected by default and I am unable to select on sender radiobutton.
    Have we missed out on any configuration?
    thanks in advance

  • 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.

  • Setting directory dynamically in File adapter in BPM 11g

    Hi,
    I am using file adapter in BPM 11g for writing perpose. While configuring, it is required to provide the directory location, which can be either physical path or logical. The location where the new file will be stored/saved is written in a text file. I want to fetch the location from that text file and want to store the new file in that particular location at run time. Please help !!!!

    Hi,
    You can dynamically set -among others- the outbound directory and outbound file name for a File Adapter. See: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#CIACICFD. If you need to retrieve the information beforehand from another file, you could use a synchronous read. See: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#BABDCEBE.
    Ronald

  • How do I map a drive for file adapter

    I am using a File adapter in XI, and would like to read files from a different server. 
    In the file adapter, there is no place for a username/password, so I need to map a drive first, then use the drive letter in the file adapter.
    eg Source Directory = G:\FTP-Data\sapgms\GMSToXI
    On the source server (call it DATASERVER), there is a local user created with rights to the appropriate data directory.
    I can logon to the XI server as the XI user (eg xidadm) and map a drive, entering username of DATASERVER\username, put in password, and  marking as "Reconnect at logon"
    The problem is that when logging back in, the system prompts for the password.  This is no good for the XI application service.
    A NET USE command in the startup directory works when I log on myself (eg net use Z:
    dataserver1\CorpData /USER:dataserver1\xid_user password1) , but still does not make the drive available for the XI application.
    The XI user (eg xidadm) is local to the XI server, so cannot be given access on the data server.
    I have been using FTP successfully, but have suddenly found that the administrators do not want FTP running on the production data server...
    So my question is:
    is there any place I can map a drive with a specified username/password, and make that drive available to the file adapter in XI?
    Thanks
    Michael
    Message was edited by: Michael Inglis

    Hi Michael,
    We are trying to configure similar scenario using Sender File (NFS) adapter from SAP server directory to XI.
    We have done the following steps:
    1) Map the SAP drive (
    SERVER\interface\ACH) <b>in XI system</b> windows explorer. It created an entry "Ach on SERVER\interface" and I can see all files in SAP directory from XI.
    2) Created SAPServiceXID user <b>in SAP system</b> with the same password as in XI.
    We tried all source directory names, but in Adapter Monitoring we still get error saying that Directory doesn't exist.
    What is the sharename in the directory you mentioned?? (In
    servername\sharename\path)
    In our SAP system (SERVER) files are under following directory d:\interface\ACH and in XI we mapped it under G drive which shows as "Ach on SERVER\interface"
    Are we missing anything here??
    Hi Wouter,
    Did you guys make this thing work?? We are having the same problem. If you figured it out..please let me know.
    Thank You,
    Indrasena Janga

  • BPM to get rid of polling for file adapter

    Hello,
    nice scenario here:
    We want to trigger a scenario for file to file transfer via an aRFC to be independent from the polling.
    Looks like this needs a BPM, which could be started via an aRFC (save e.g. the content of the RFC in a directory on the XI machine if necessary).
    But how to trigger now the sender adapter to pick up the prepared file (no relation to the content coming with the RFC) to deliver it?
    Looks like we do not really understand how to use the BPM? Any idea to solve that is welcome!
    Best regards
    Dirk

    Hi Dirk,
    take a look at this weblog by siva:
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm
    schedule your BPM and then you can use pooling
    for the file adapter cause the message will stay in BPM
    and you can control from the BPM
    Regards,
    michal

  • How to create Headervariable for File adapter in 11g SOA Suite?

    Hi All
    My process in reading file and I wanted to know the exact name of the File.
    In 10g, we have fileAdapterInboundHeader.wsdl and create HeaderVariable using message type used in this wsdl and can get file and directory name in this variable But in 11g we dont have any wsdl like this.
    Can anybody give me some idea how to create Headervariable for Inbound file adapter to get file name?
    Thanks
    Vibzz

    Hi,
    Look at this document : [Oracle JCA Adapter for Files/FTP|http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAFJCCE]
    Romain.

  • Is a record ID field required for File Adapter (Header, Body, Trailer)?

    Hi,
    File to File scenario. The sender file is a text file i.e. .txt which needs a conversion on the sender file adapter. There are three structures in the file namely header (one), body (many) and Trailer (one). From what I can see I need a record Id field (with the same name) in all the structure types, can anyone confirm this for me?
    Thanks,
    Leanne

    That is correct. If you have a variable number of records of a particular type, then you need a way to accurately identify each type of record... and that is done via the key field (or Record ID)  which is present in each record type.
    Extract from SAP Online Help:
    <i>Key Field Name
    If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value ‘*’, then the substructures must be identified by the parser from their content. A key field must be set with different constants for the substructures. In this case, you must specify a key field, and the field name must occur in all substructures.
    Specify the Key Field Type to be used to compare the predefined values. This entry is used if the key field name is defined.
    NameA.keyFieldValue: Specify the value of the key field for the structure. This entry is mandatory if the key field name is set. Otherwise, the entry is ignored.</i>
    For more info, refer to the SAP Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

  • How to add fault handling for file adapter??

    Hi guys I am new to SOA technology ,I have one scenario  in file adapter  ,when file adapter reads a file from directory .If file is there   then read the file  data else it can give user defined exception that  the file is not there .How can i write user defined exception in SOA?? Give me any ideas please.............
    Thanks in advance..

    So, you want to (1) Fetch the data from these 3 type of files and (2) Also, store the payload data of the file, which is in XML format, into the same database tables ?
    If this is the requirement.. then, I would say, you could :
    (1) Read files using file adapter, but not as opaque.. Define schemas conforming to the file structures. In that way, you'll always have the file data read in the form of XML.
    (2) Fetch relevant data from such XML payloads of files and insert into database tables. Then, insert the XML payload into WHO column. You might have to convert the xml data into blob/clob before inserting.
    Job done !

Maybe you are looking for