Receiver FTP adapter

Hi
I have a idoc to ftp requirement. How do i ensure couple of things,
1) If the ftp server is down the payload is resent.
2) The delivery is guaranteed.
regards
Sameer

Hi Sameer,
//1) If the ftp server is down the payload is resent.//
For this you can use BPM and in BPM use Send Step with Acknoledgement with option.
For more info go thru following link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/65ce41ae343e2be10000000a1553f6/frameset.htm
Hope this helps
Regards,
Moorthy

Similar Messages

  • Retaining the FileName in the Receiver FTP adapter

    Hi experts,
    I have a situation here, were i need to retain the FileName in the message header in the receiver FTP adapter.
    I have tried using variable subtitution but seems the FileName is not supported in variable substitution.
    Please help
    Thanks

    Hello,
    if you need file name to be retained in the receiver adapter from the sender side. then u can do that by dynamic configuration using adapter specific message attributes, check this blog for details-
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you dont have a mapping in your interface to use dynamic configuration, then you can do it via adapter module also- have a look here, /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    regards,
    francis

  • Dynamically generate terget directory in receiver FTP adapter

    Hi guys,
    I'm trying to set up a scenario where the file will be placed into a terget directiry based on values from the incoming message. I can't use variable substitution as my target message does not contain the needed value, so I'm trying to set up a dynamic configuration in an UDF. Unfortunately, this is not working.. Any ideas, what could be wrong? The receiver FTP adapter always just takes values from it's configuration. It doesn't help when I try to change it in mapping.
    This is the java map code in the UDF:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, a);
    conf.put(key2, "tfilename.txt");
    return "";
    Thanks a lot for any help,
    Olian

    Hi,
    use below code it will work fine
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    String a=conf.get(key);
    String b=conf.get(key1);
    var1 = a+b; ;
    return var1;
    map this udf to root element of your receiver structure.
    Regards,
    Raj

  • Prerequisites for Sender and Receiver FTP adapter

    Hi Experts,
    I am new to PI and configuring simple file to file scenario. I need to know the prerequsites for sender and receiver FTP adapter. Scenario is System A -> XI -> System B .
    What I want to know is:
    1> What ports need to be opened?
    2> Any service that I need to activate?
    3> Do I need to install FTP server in any of the machine?
    If I have missed something, please add.
    Br,
    Nilz

    Hi,
    1> What ports need to be opened?
    mentioned in below link as said its 21.
    2> Any service that I need to activate?
    No
    3> Do I need to install FTP server in any of the machine?
    THere are two ways by which u can pick ur file.
    1) NFS by which u can put the file on XI appplication directory and pick up ur file.
    2) FTP u have to put ur file on FYP server and XI will pick up the file from there. U can use freeware FTP and install it on ur Desktop search on goolge u will get ti FTP installtion.
    refer the below configuration requirement for FIle adapter.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    ALso refer the end to end file to file scenario.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    chirag

  • When to use "Use Temporary File" in receiver FTP adapter

    Hi Experts,
    I have nerver used "Use Temprary File" as the "Write Mode" in receiver ftp adapter.
    I want to knwo under what kind of requirment we should use this option?
    Thanks in advance.
    Best Regards,

    Hi Aditya
    Usually it's advisable to use "use temporary file" as write mode when you want to avoid your file to be picked up by receiver while PI channel is still writing it.
    Obviously larger the file, more chances you have that this issue could occur.
    If you select the "use temporary file", XI will write the content to a temporary file with another name of your choice and only once writing has finished it will rename it to the actual name setup in the "file name scheme".
    Regards,
    Giuseppe

  • Receiver FTP Adapter File Size Splitting

    Hi,
    I am receiving an IDoc from R/3 into XI.
    I then map this IDoc into an xml file and use a receiver ftp adapter to drop the files onto a ftp server.
    Is there anyway, that I can use the adapter to split the message interface into smaller files.  For example, if I were to ftp the message interface into 1 file, the file size would be 1MB.  I would like to split the 1 message interface into 4 x 250kb files without having to split the message interface?
    Thanks,
    Miguel

    Hi,
    If you split into 4 files each one should be a XML file right?
    This is possible without BPM.
    Go thro the blog:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Wat u need to do is make the target side 0..unbounded. If u have 100 records, Map some  25 records in first occurence, 25 in second and so on. This way u can reduce file size.
    Regards,
    P.Venkat

  • Receiver FTP Adapter Problem

    Hello. My scenario is: A file is sent from R/3 via RFC, then from XI to an outside system using the FTP adapter. The RFC part is working, but I've encountered some errors with my FTP adapter. The file is not being created in my directory at all and this is the error message I'm getting:
    - 2006-10-11 08:28:20 CDT: Error: Message processing failed: Exception: ftp access error: com.sap.aii.adapter.file.ftp.FTPEx: 552 transfer failed
    Can anyone help, please?
    Thank you.
    Nicole

    Hi Nicole,
              A few things you might check are:
    1) The Ip address given is correct.
    2) The login details given in File receiver adpater are right
    3) The server is running when you make the transfer, that is 'Allow logins' status is checked in case of guild FTP server or similar servers.
    4) The destination directory is given as "/root" with "/" slash.
    5) All the firewalls are turned off.
    6) File processing mode is 'Create'.
    Cheers,
    Ashish

  • Receiver FTP Adapter - Directory create

    Hello,
    the XI FTP Receiver Adapter by default creates the target directory on the FTP Server if it does not exist. The J2SE Engine had an option if you want to create the directory or not.
    Is that available in the XI 3.0 J2EE FTP Adapter? I could not find it. Further if that can be set, would the adatper throw an error?
    Thanks
    Stefan

    Hi Stefan,
            I'm facing the same issue, while trying to create a dynamic folder in the FTP server.
    The FTP adapter failed with the error 'An error occurred while connecting to the FTP server 'ftpserverip:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /root/dynamic/: The system cannot find the path specified. '. For details, contact your FTP server vendor.
    Were you able to resolve this issue using any SAP notes?
    Thanks in advance.
    Thanks,
    Joe.

  • Archiving files sent by Receiver FTP Adapter ?

    Hello,
    we search for a solution to archive a file, which was sent by a receiver File/FTP Adapter (via FTP) to a ftp server.
    in an other directory on the FTP server. (Similar to the standard function of the sender File/FTP Adapter)
    Any Ideas ? A hint would be nice.
    Thanks.
    Regards
       Thorsten Stork

    Hello Thorsten Stork,
    This will help you
    /people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Hi Vishnu,
       Happy to see you in SDN Forum,
    Regards
    Agasthuri Doss

  • Receiver FTP adapter not intialized

    Hello all,
    I have set up a receiver File adapter but when I check the adapter monitor it shows me "Adapter not initialized"...The authorizations are prefect since I have set admin id's in the FTP server username and pwd. I would like to check the adapter engine to see if this adpater has been turned on..What is the URL to check the adapter engine in the J2EE stack ?? Also I set up a mail adapter which never shows up in the adapter monitor ..What could be missing??
    -Ken

    Hi,
    go to the path:
    <server>\<sapSID>\DVEBMGS10\j2ee\cluster\server0\log\services\com.sap.aii.adapter.file.svc
    inside you should be able to find all of you adapters
    config_[adaptername] files.
    inside you can see their configuration and sometimes
    an error message at the end
    maybe there will be something over there  
    Regards,
    michal

  • Message Processing at receiver FTP adapter

    Hello,
    I am using FTP at the receiver side and trying to connect to that receiver using File/FTP Receiver adapter.
    Now i have config all the details of the FTP server in the channel. Now i want to know how it connects to the FTP server and keeps the files inside the file directory which ever is mentioned in the config.
    Is there any involvement of DNS server here to  connects to FTP server through our File Receiver adapter.
    Thanks,
    Soorya

    Hello Peter,
    This is my scenario basically, 
    Now i want to configure two FTP servers which has same host name. THat common host name, i have configured in the FTP receiver channel. I manually change the IP addresses inside the DNS server so that if it is IP1 then my receiver channel has to connect to one FTP server. If i change it to IP2 from IP1 inside the DNS server then i have to connect to the other FTP server.
    How can i do this scenario?
    Can you please help me in doing so?
    DNS :  Domain Name Srever (correct)
    What shall we do if we want to use DNS for connecting to the FTP servers?
    Is it inside the FTP receiver communication channel ?
    or
    Is it at DNS server configuration?
    As you have mentioned that it is box.What do you mean by this BOX?
    Is this issue purely related to network and DNS issue or we have to configure something differently in our receiver channel configuration.
    As you said here,
    " Try to ping the server name from the XI box. If it can resolve the server name, everything is ok and you can use it in the CC config. If it can't, ask you network team to solve it (add a record to DNS, change the hosts file on the PI box eventually). "
    Can you please explain it clearly?
    Thanks ,
    Soorya.
    Peter

  • Receiver FTP adapter java.lang.StringIndexOutOfBoundsException

    Hi,
    i'm getting the following error trying to reach an FTP server using a Receiver CC:
    Attempt to process file failed with Error occurred while connecting to the FTP server "xxxxxx:21": java.lang.StringIndexOutOfBoundsException
    Any help would be really appreciated
    Thanks
    Simona Milione

    Hi
    check the fixedFieldLength parameter for all the fields in you File COntent COnversion
    there is some field whose length is greater than what you specified in FCC
    regards
    krishna

  • Regd file content conversion in receiver FTP adapter

    Hi All,
    I m trying to do FCC at receiver, i have to convert Idocxml in to a flat file.
    Input structure is smthing like this:
    MT_source
       <Header>
             <ZXw>test1<ZXw>
              <ZYe>test2<ZYe>
              <ZZR>test2<ZZR>
       </Header>
    <ZJDU>
             <ZXd>xyz<ZXd>
              <ZYE>wer<ZYE>
              <ZZw>wer<ZZw>
       </ZJDU>
    I have to get the output as:
    test1test2test2xyzwerwer..etc i mean to say i have not feildseparator and i have to revome all the tages in in put file and paste the only values in the output.Its like getting all the things in the same line.
    it tried giving  like . header.feildSeperater    ""
                                  ZJDU.feildseperater  ""
    I am very new to this,searched .. bt didnt get what to write  when there is no  feild seperator  and i have to paste complete file in text format.
    thanks
    Anika

    > it tried giving  like . header.feildSeperater    ""
    >                               ZJDU.feildseperater  ""
    >
    I could see spelling mistate in the above line.....  fieldSeparator
    if the above setting didn't work. did u try with the running scripts after the adapter has finished it's job.  You can replace the fieldSepartor with "" empty string.

  • Production Issue with Receiver FTP Adapter

    Hi all,
    We have so many interfaces with ECC To FTP via XI, working fine.
    We had problem with one particular Interface, FTP Owner is saying that we did not received any files since last night for this interface. But that receiver channel's log is saying clearly that file has been written to folder with given name.
    Nearly 140 files needs to be received at FTP site. Suddenly they told that received all 140 files at a time with time all with stamp 11:40am
    What might be the cause for this?? has any one faced this kind of issues??
    Please share your thoughts
    Regards
    Suman

    Hi rajesh,
    Thnx for replying, there is no receiver channel on scheduled
    Receiver communication channel time stamp is showing as same as time ecc generated with idoc.
    But received at FTP is different time( more time difference)
    Checked with FTP Admin, and there is no issues or downtime with FTP at that time.
    >>use messaging system and search with message id for knowing this step time stamp.
    How to check this, please let me know the link.
    Regards

  • FCC in receiver FTP adapter

    Hi.
    In attached file ut20140505-165117-416.xml you will find a field called Data.
    I need to create a txt file based on tghe Data fields.
    The attached file should create the out.txt file
    How would a content conversion setting look to accomplish that?
    Regards
    Andreas

    Can you try something like below..
    Recordset Strcuture : Recordset,File
    Recordset.fieldSeparator 'nl'
    File.fieldSeparator     ''0x0a'
    I suspect you might get an error as you got an additional field " <Filename>PAYFILE0201</Filename>"
    Please test and let me know..
    You might have to move the FileName to a different segment under recordset if the above configuration doesn't work..

Maybe you are looking for