File sender, dynamic interface

Hello,
we are receiving from many partners different messages (e.g. different idocs) in files. All files are stored in the same directory and the filename is only a date/time stamp.
So from this information I do not know anything about the payload.
How can I receive this files into XI by the fileadapter and to start teh correct receiver determination, allthough I do not know the sender (but which is in the payload) and the interface (all I know is that it is an IDOC).
My goal is, that I can maintain also different (Sender)Parties, as I require different Header Mappings for the IDOC adapter to R/3.
Who can help me???
best regards
Werner Magerl

Hi Werner,
the receiver can be determinated by X-Path but to have differnt interface is not easy because you have to put in the file adapter channel.
One (dirty) trick would be to send the messages from file adapter to http adapter. For every receiver (idoc in R/3) you create a third party business system in SLD. You find now by X-Path the right 3rd party receiver and configure the http receiver adapter setting target host = <yourXI> and path = /sap/xi/adapter_plain?service=<yourService>&interface=<yourIF>&namespace=<yourNS>&qos=EO
1. Message: File->XI->HTTP (X-Path-Receiver, a lot channels)
2. Message: HTTP->XI->IDoc (normal Receiver, a lot interfaces)
Regards,
Udo
PS: Werner, may be that helps you or not, but please, if you fit in headerfield mapping, can you help me by my question?

Similar Messages

  • File Sender Dynamic Message Types, is that possible?

    Hello everyone,
    I have the next requirement and I'm thinking on how to do it, maybe you could give some advices, ideas or suggestions, my scenario should be as follosw:
    File -> XI BPM -> R/3 BAPI's Execution -> JDBC Post result from BAPI's
    now the problem is that in the file are the transaction codes to execute BAPI's in R/3, so it can contain something like this:
    HF28|0804201885813901|1801021295PMXR2008|FP|300|99999|16/04/2008|1905966|0000111836|C|1|242572.47|
    DF28|20/04/2008|N|010|010|275-01072-3|94953.76|0.00|
    where it has the stucture of header(HF28) and detail(DF28, it can contain any number of details) for F28 transaction BAPI execution in R/3, and now the file can contain info for another transaction codes so the structure is going to be different, now the file name has nothing to differentiate what transaction or transactions are going to be, cause it can contain any number of transactions in any order separated by the @ symbol, now what I need is to loop that info in the BPM and call the corresponding transactions in the order that they are in the file and implement system errors and exceptions handling and even application errors and exceptions handling of the BAPI's, now the problem is that XI have to take the File in a Sender File Adapter Communication Channel but I cant' really be sure of what structure or complex structure(nested for header and details) I'm going to use until I know the transaction code in the headers and details in the file, if anyone has any suggestions or ideas on how I could accomplish this would be really, really appreciated, thanks in advance.
    Regards,
    Julio Cesar

    hi,
    You can do this using CONDITIONAL RECEIEVR DETERMIANTION.
    In your Reciver Detetmination, you can give ,multiple Recivers and the condition on which the Receiver of the message is to be choosen.
    if your file has different structures
    one of the approaches:
    Configuring Generic Sender File CC Adapter
    also this (part 2)
    Convert any flat file to any Idoc-Java Mapping

  • Configure Sender File adapter dynamically

    Hi,
    I need to configure the sender file adapter dynamically. Ex: I will be providing the src dir , file name etc dynamically. I think this is not possible using module because module gets executed after file is picked (in my case file dir and file names need to be determined dynamically). I even don't won't to use directory API for craeting my file sender comm channel. Is there any other way to achive this.
    Regards,
    Rakesh

    Hi Rakesh,
         what is the Operating system of the PI server? Could you please kindly explain what conditions determine filename and source directory? I do not think there is anyway you can determine src file and dir names dynamically in PI.
    Here is what you can try.
    PI server is on windows system u need batch file. If its on unix or Linux you need scripts. Now what you have to do is place all files in a directory. Here the script/batch file will run continuously in background. Once it gets files it will rename files based on file content or file name then move them in different directories as per your conditions. your interface must have multiple communication channels and sender agreement (with diffrent parties) which will pick up those files from these directories.
    The name of directories will be fixed in each channel.
    regards
    Anupam

  • File sender name dynamic

    hello,
    i've a interface FILE to RFC. The name of file is dynamic, depending the data the file has different name,
    i know when receiver file this is possible, but when the file is sender i don't know if this is possible?
    how can i do?
    thanks vey much,

    >
    silvia diego wrote:
    > hello,
    >
    > i've a interface FILE to RFC. The name of file is dynamic, depending the data the file has different name,
    >
    > i know when receiver file this is possible, but when the file is sender i don't know if this is possible?
    >
    > how can i do?
    >
    > thanks vey much,
    do you want to pick the file and pass it to the same message interface ? then use . in the file name scheme in one file adapter.
    else if you want to pass to different message interface, then you will have to configure multiple CC and give the specific name in each

  • Dynamic File Name and Directory File Sender Adapter

    Hello gurus,
    I have a question: Is there any way to make the File Name, and Directory Dynamic of a File Sender Communication Channel ?
    For example, taking it as a parameter from a Web Service Request.. (I mean, the only way with this would be a ccBPM). I don't exactly know if there is a way, I just thought about this.
    Please tell me if someone could make Dynamic these 2 parameters while picking a file.
    Regards,
      Juan

    oops,thought i was replying to the PgP question:)
    I think you should be able to achieve this via adapter module but i m not really sure how exactly it will be done .
    Thanks
    Aamir
    Edited by: Aamir Suhail on Jul 28, 2009 1:42 PM

  • Error with a File Sender interface

    Hi gentz,
    we have an error with an interface which we can't explain. We are using a File Sender Adapter with File Transfer Protocol.
    We are receiving the following eror:
    <i><b>Could not process file '0080953854-071201.csv': com.sap.aii.adapter.file.ftp.FTPEx: 550 SAPUIT: The system cannot find the file specified</b></i>
    It seems that we can see that there is a file present, but it also is saying that the file can not be found.
    We already tested the connection with a separate FTP program, and here we have no errors in retrieving the file.
    Has anybody got a clue what we are doing wrong???
    Thanks in advance!
    Peter

    Hi Peter,
    which Tool do you use as FTP-Client (WS_FTP)?
    Make sure taht you refresh the client (F5); WS_FTP does not automatically refresh.
    But I also suggest to copy and paste the filename agin from folder on server into your communication channel.
    Sometimes the filenames are different, but the eyes are to tired
    Greetz Mario

  • Dynamic Send Port : The FILE send adapter cannot open file C:\Temp for writing. Details: Access is denied.

    Hi All,
    We have requirement of using ESB toolkit and transforming incoming xml file to edi format. So, we are using ItinerarySelectReceiveXML pipeline for receiving the input from the input location and "EDISend" pipeline for transforming it into EDI and
    send it to destination.
    Now, the receive pipeline is picking up the file, but it is not processed and sent to destination.
    And, we are getting an Access Denied error from Dynamic send port.
    Error Description : 
    The FILE send adapter cannot open file C:\Users\Public\Temp for writing.
     Details: Access is denied.
    Any Immediate solutions/suggestions are appreciated...Thanks.
    Anand

    The difference between dynamic and static port would be send handler. For dynamic port, default send handler will be used and for static port the one configured on the port will be used, could you validate this configuration.
    Also sometimes, administrative privileges are not "real" administrative privileges and company admins will have limited permissions on C Drive folders. Try writing to some other folder to isolate the issue.
    Regards, Ajeet Kumar MCTS Biztalk Server

  • Dynamic file send port configure with variable store path location

    hi ,
    i done like dynamic file send port:
    Port_7(Microsoft.XLANGs.BaseTypes.Address)="sw"; --> sw is path location  string type variable
    Port_7(Microsoft.XLANGs.BaseTypes.TransportType)="FILE";
    here sw is path location :C:\Users\00134\Desktop\Rec\sqltest\senddate.
    but it is not working where im wrong?

    try this 
    Port_7(Microsoft.XLANGs.BaseTypes.Address)="file://"+
    sw +@"\%MessageID%.xml";

  • File sender adapter (FTP) - processing mode "Archive"

    Hello all
    We're polling files from an external FTP server. For this I created a scenario on XI according to this thread:
    When setting processing mode to "Archive" in the file sender adapter (ftp) it polls the file, stores it to the archive directory I specified and then tries to delete the file on the FTP server side. This returns me an error because we're not allowed to delete the retrieved files on the FTP server!
    Because of this error the file adapter stops further processing and does not poll all the other files.
    How can I disable this deletion mechanism while keeping processing mode to "Archive"?!?!?
    We do not want to use processing mode "Delete" or "Test" and we don't see other options to influence this behaviour.
    Thanks for any guideance on this one in advance!
    Kind regards,
    Renaud

    Hi Bhavesh
    Sorry for the late answer. Unfortunately I can't ask the application system to provide file names containing a timestamp within. The files are provided by an external partner and are retrieved by several others as well.
    In the meantime I managed to achieve this:
    In repository I created dummy data types, message types and message interfaces. No mapping programs and interface mappings!
    In configuration I created the necessary communication channels (1 ftp sender, 1 file receiver) and the required receiver and interface determinations as well as the sender and receiver agreements.
    The result of this is:
    I'm able to poll some specific files via ftp from remote host. The file names are file1.arj, file2.arj, file3.arj and file4.arj. All 4 files have the same SourceFileTimestamp (e.g. "20060727T053900Z").
    I'm able to store those 4 files 1:1 in a target directory with the same file names. Until here I did NOT need to follow this blog: <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14: The same filename from a sender to a receiver file adapter - SP14</a>.
    As of this blog it is possible to access adapter specific attributes and make them available in message mapping using user defined functions. This way I'm able to get the SourceFileTimestamp from the polled files and use it in a message mapping. This way I'm also able to use it in variable substitution on file receiver adapter (syntax = "payload:root,1,fileTS,1") in order to dynamically create a directory with this syntax: YYYYMMDD.
    So far so good... but the only remaining BIG problem now is, that as soon as the mapping is activated and assigned in the interface determination, the created files contain the XML payload instead of the original binary content. Where has it gone? How should the target message type look like so that it can carry over the original binary file content?
    BTW: isn't it possible to post screenshots? Would be much more easier to explain things... so sorry to anyone if I wasn't clear enough!
    TIA and best regards,
    Renaud

  • Scheduling File Sender Adapter

    <b>Hai expertise,
          We need to send image files from different local PC's (whose IP address is dynamic) to Document Storage System through XI.
    1) we have to use HTTP sender (Java program which pick current IP address of system and file names from folder to XI in XML format).
    2) XI has to pick the files and depends on response from BAPI files has to be moved to other folders in local machine (from where XI has picked the files)
            Is there any way to pick the payload value to one feild of File sender adapter?
           will it work through Adapter Specific Message Attributes?
             But ASMA is for dynamic folders and dynamic filenames we need to set dynamic FTP IP address to FTP Server name of File Sender adapter.
           Is this functionality be achieved without adapter module creation?
          One more approach we though is that "XI will get XML data of IP address where file resides and file names in the form of XML, which we are polled by server proxy and using that IP address in proxy can we use do FTP copy and moving files from one folder to other depends on BAPI response". Will this work as the BAPI as to execute in backgroung to get files from local windows based machine to sever for FTP copy????
    File sender adapter has to be triggered, when HTTP sender sends the data to XI, Is this possible???
    Can we use File Sender adapter, when HTTP sender sends the data to XI in the same interface?
    Picking files from static folders, filenames but dynamic FTP Servers, is this possible through standard File Sender Adapter?
    Please advice.. its urgent...
    Regards,
    Pushparaju Bollapalli</b>

    try this
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d458a870-0601-0010-caab-b99c79741964
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4f61fddf-0601-0010-7ab5-fb749538f6ab
    /people/sap.user72/blog/2006/06/04/starting-stopping-of-communication-channel-from-rwb

  • Recive a file with dynamic name

    Hi All,
    I want to receive a file with dynamic name containing date stamp to it.... eg File_20080123.txt , File_20080122.txt etc.
    Can anybody suggest how to do it?
    Thanks,
    Atul

    Atul,
    Are u using mapping program in ur interface? If yes you can go ahead with ASMA + Dynamic Configurations for renaming the file.
    Have u tried this option?
    See the below Solution
    Check the ASMA File for both sender/receiver channels.
    Write the below code UDF in mapping program
    //Get Input date. Don't pass anything to this UDF except the Date.
    //Map the output to the root node of the target.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String fname = conf.get(key);
    String ret = fname"_"Date
    return "";
    raj.
    Edited by: Raj on Jan 23, 2008 4:09 PM

  • Error while testing File-PI-SOAP interface

    Dear All,
    We are working on File-PI-SOAP interface in which we have exposed a functional module from ECC server as receiver webservice. When we are testing the the interface we are getting following error :
    Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 407 Proxy Authentication Required.
    In the receiver SOAP communication channel we have provided the required ECC login & proxy authentication credentials and also we are able to open the URL from PI server. Kindly let us know what more settings are required o make this interface running.
    Regards,
    NJ

    Hi,
    This is a synchronous interface and I want to send the output from webservice as a file to third party system.
    We are just working on a demo interface, so we have created a webservice of a function module of ECC and also our interface is File-PI-SOAP.
    We have also given the login credentials for proxy authentication but still we are getting the error the
    SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 407 Proxy Authentication Required
    Kindly let us know, how can we resolve this error.
    Regards,
    NJ

  • File sender adapter is not working

    Hello All,
    We are facing a problems with file sender adapter. Communication channel is not picking the files from the directory, but the status in RWB for that channel is 'Functioning'. We are not sure whether the channel is locked or any other problewm with adapter. (In Alternate option, we have created copy of that channel and when it is activated, it picked the file )
    Can anyone help us how to identify whether channel is locked and any other solutions in this case.
    Regards,
    Sreenvias.

    Hi Srinivas,
    The file adapter ( The respective channel) is definitely locked in PI . Ideally for each polling interval a lock is being created and once the processing is over , the lock should be released/deleted automatically to allow further polling interval. If the lock is not released by the system automatically,further polling will not happen as expected. ( This may affect all sender file adapters as well. I would recommend to do a check in al sender file communication channels)
    You can see/delete the locks in Visual admin.
    Go to Server>Services->Locking adapter  and click refresh
    The entries for file adapter ( with name $XIAFFileAdapter) should be deleted by selecting those particilar entries and click delete selected locks.
    If you have more than one node, then same should be done in all server nodes.
      The temprory solution would be creating/copy the existing channel in ID with same properties and assign it into particular sender agreement.
    But, the lock may be created again which potentailly stops all your file based interfaces. Hence i would suggest to use Timeout parameter avialable in file sender adapter which termiates FTP session as you defined, This should solve your issue permanently.
    The FTP server do have thier own time out settings but if you don't defne any particulat time out in PI, the FTP server forcefully disconnects the FTP sessions which created locks in PI.
    Hope this solves your issue.
    PS: The same bahaviour would expected for all sender JDBC adapter as well

  • File Sender adapter - source file name - weird

    Hi all,
    We have a sender file adapter polling an ftp location. The Dynamic config has been enabled to get the source file name.
    The actual file name is - "hrmd.xml", but in the dynamic configuration node, in sxmb_moni, the fileName is shown as ./hrmd.xml.
    This does not occur with any other file sender adapter comm channels polling ftp locations.
    I guess this has something to do with the ftp server. Did anyone face this issue?

    the fileName is shown as ./hrmd.xml
    The file name surely cant have a / in it....such characters are not allowed.
    is there any way we can change the fileName message attribute once the file is picked up
    Create a UDF for Dynamic Configuration and change the name as per your requirement (in XI)....the source file may be having proper format for name and i assume that you have to change it for receiver file name

  • UDF to get the filename for File Sender Adapter

    Hi,
    I had an requirement to get the  the Filename and map to the  target payload.
    I had configured the File Sender Adapter settings in the ID
    This is the following UDF i got from SDN.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    But when iam using this UDF iam getting an error
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_ORDER_CRS_OB_SAP_PROXY_IB_ method Filename$[com.sap.aii.mappingtool.tf3.rt.Context@54e154e1]
    Please help me in correcting the error.
    Thanks
    Srinivas

    Hi Jayson,
    actually, in the interface mapping, it doesn't give exception.
    The DynamicConfiguration is a constant retrieved from the container object, so it will never be returned as null (given that the container object was instantiated).
    Just the retrieved value will be null (since it was not previously set), but no exception occurs.
    In the message mapping, the container object is never instantiated, and that's the reason for the NullPointerException.
    Regards,
    Henrique.

Maybe you are looking for

  • ALV Excel Download problem ( Special Character)

    Hi, I am unable to download completely in XLS format from ALV grid. When i tried in couple of ways there is a special character( " ) in one of the filed. Due to the same Excel download has some problem. I tested by removing those and it worked fine, 

  • Configuring &Implementing custom UUP  in Weblogic portal server 10.2

    Hi, Please try to post some reply..it's urgent............. I'm trying to implement a custom UUP for external RDBMS(Oracle) in Weblogic 102. protal server. when I'm trying to publish the application it's giving the following error message: <Dec 19, 2

  • CROSS PLATFORM MIGRATION

    Guys, I'm in place of migrating 10g production database (currently running on windows server) to 11g ( on RHEL 5). The following is the plan. 1.install oracle software on new server 2.create empty 11g database 3.expdp from 10g (full). 4.impdp into 11

  • Flash player is installed but won't work

    I have attempted to installed flash player multiple times and it seems like it installs but it doesn't work.  I need flash player in order to use notebook software for a smartboard.  I am currently using a MacBookPro in which I am the only user.  Ple

  • Multiple volumes with sequence numbers

    Hello i see a strange behaviour for some volumes. For instance - i have an external hard drive connected via Firewire 800, where my Time Machine is located. If i look into the volumes folder i do see several folders with a red button on it named Time