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

Similar Messages

  • Garbage name of the Archive File while using the FTP adapter

    Hello All
    I am using Oralcle FTP adapter to poll a file ,after polling I am deleting the file from the current directory and
    archiving it into another directory.
    Problem is after archiving the file into the another dirctory name of the is fine changed as follows :
    d2wXEgGZrfypNsGa15uzOA==_20081015_082233_0015
    I want same name for the archived file as orginal file with timestamp
    Please help to solve this problem.
    Thanks
    Satendra Pare

    You cannot change the file name in the save dialog, it always uses the originally file name of the form.
    But you can use scripting to save a form under another name.
    Sample.
    http://thelivecycle.blogspot.com/search/label/Save

  • 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

  • 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

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • BPEL Process with multiple file types using one FTP adapter is not working

    i created a bpel process which will fetch the files from remote location using FTP adapter.
    Now the process works for only one format or file type like *.xls.
    How can i use more than one file format in one FTP adapter.
    OR
    is there any other way to do it.
    file type assignation is 5th step in FTP adapter configuration.
    i have tried *.xls,*.csv and *.xls;*.csv and *.xls:*.csv by seperating with comman, colon, space... still not working.
    i read the documentation *.* will not work.. for one file format it's working fine.
    looking forward for reply as soon as possible.

    Are you positive that it is not working? I'm not sure how you can use one FTP adapter for multiple file types unless the underlying data is exactly the same format or you are processing it as opaque data. Sometimes when a FTP adapter chokes on a file with a bad structure it doesn't create a BPEL instance, it simply moves the bad file to a separate folder.
    So I assume you are using opaque as the data type instead of using an XSD element?
    That said, I don't think you can put two separate file types in the filter. Is it possible for you to do something like: CommonFileName*.* or do you have similar files with other extensions?
    I know the above probably isn't of much help, but I had so many problems with the FTP adapter and its lack of features that I am writing my own. Unfortunately that is a large undertaking and there isn't any good documentation of JCA resource adapter / BPEL PM integration.

  • 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

  • Renaming attachment file name in receiver mail adapter

    Experts,
    I have a file to mail scenario where an xml file is picked up and transformed into the target format in XI which has to be sent as an attachement in an email on the receiver side.
    I am getting the mail with the attachement. But I would like to rename the attachment as the name of the picked up file.
    I am using Adapter specific message attributes on both sides but the attachment is named as untitled.xml.
    Please advise. Can this be achieved by using the swap bean or the message transform bean?
    Regards,
    Shobhit

    Hi Shobhit,
    The module tab of your mail adapter will look like this.
    Processing Sequence
    Module Name                                                            Type                                      Module Key
    localejbs/AF_Modules/MessageTransformBean   rename LocalEnterpriseBean     
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean  mail     Local EnterpriseBean     
    Module Configuration
       Module Key               Parameter Name             Parameter Value
          rename      Transform.ContentDescription                      File
          rename  Transform.ContentDescription  attachement;filename="yourfilename.ext"                                                          
          rename            Transform.ContentType                 application/text;name="yourfilename.ext"
    Thanks
    Amitanshu

  • Dynamic file name creation using FTP adapter wired from a mediator

    Hi All,
    My Requirement is as follows....
    Mediator is wired to Three FTP adapters to create three files.
    File names are dynamic.
    In the mediator those three routings, mappings and assignment for the directory and file name are being created.
    But out of 3 files, 2 files are being created with the names mentioned during the FTP adapter configuration and the last one is being created
    with the dynamic value.
    Any help in this regard is highly thankful.
    Thank you.
    Srivatsasa.

    Create a UDF in mapping taking counter from IDoc as input parameter
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String totalFilename = "AAAA_" + counter;
    conf.put(key,totalFilename);
    return  totalFilename; 
    Map output of this UDF to Top node at target.
    you will not be able to see the result in test tab of mapping but it works end to end
    Select Adapter Specific Message Attributes in receiver file adapter..here select filename checkbox

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

  • Processing files in Sequence using FTP Adapter

    Hi Experts,
    I have searched several forums but i am not clear on  how to process the files using FTP Adapter based on Timestamp.
    To process the files in sequence i.e, FIFO using FTP Adapter
    i have the files with file name customer and timestamp :  customer<yyyyMMddHHmmss>
    there are around 50 files in the FTP server llike this.
    I need to process these files acording to the timestamp and place the files in same processing sequence in the receiver end using the file adapter.
    If i specify the parametes in sender FTP Adapter as
    Qos= EOIO
    Queue name = ACCOUNT
    Whether these parameters would do the processing in sequence according to the Timestamp?
    Suppose if the queue ID for Inbound(SMQ2) is XBTI0_ACCOUNT then whether it will be the same for Outbound(SMQ1)?
    Kindly suggest me how to process the files in sequence according to the Timestamp using FTP Adapter
    Please reply..
    Thanks
    Sai

    Hi Shabarish,
    But this would require one more additional channel to process
    So i think it will take more time to process.
    Let me clarify my question once again.
    I need to Pick the files from FTP server based on their TimeStamp and in sequence.
    the file names are like this Customer<YYYYMMDDHHmmSS>.
    suppose i have 3 files as
    Customer20050413044534
    Customer20050414053430
    Customer20050315034533
    So i need to pick these files in this order and place the files in the same order to the receiver end(File Adapter)
    Customer20050315034533
    Customer20050413044534
    Customer20050414053430.
    As i am using FTP sender adapter i cannot use processing sequence "By Date".
    please suggest me on this.
    Thanks
    Sai.

  • Archiving/ Saving sent and received Emails in Mac Mail???

    Hello.
    I want to switch web hosts, and before doing so I want to save/ archive all of my past sent and received emails.
    Is there a way to do so?
    I know I can use gmail, not exactly sure how to do so but I bet it's not real hard, but I am wondering if there is a way to actually take all of the emails from my webmail and save them offline? Does Mac Mail do this? Can I save them as files? There are literally thousands of emails, so a way to save them to my local drive would be ideal....
    any ideas?

    You can create a New Mailbox to correspond with each Inbox and Sent mailbox, and then Copy the messages into those. At that point you can have a copy of each message in both the Inbox/Sent and the On My Mac mailboxes.
    However, if your email address will stay exactly the same (is associated with a hosted Domain) then you may be able to merely change the name of the Incoming server in the Mail Preferences/Accounts/Account Information and continue with the same accounts. This might not be workable because of the inexactness of when you old/new Host swap responsibility. If not, then remove each original account, set each one up again in conformity with info from your new Host, and then move the messages from the the On My Mailboxes you created above, into the corresponding Inbox and Sent of the new accounts.
    Ernie
    Message was edited by: Ernie Stamper

Maybe you are looking for

  • Iphone does not sync OUTLOOK CONTACT NOR CALENDAR EVENTS (XP)

    I was able to sync photos- music but no contacts-Calendar events from OUTLOOK 2003. The fact that my outlook PST file is not located in the default Outlook directory could be the problem but I am not sure. Anyone out there having the same issue??? Pl

  • Transformation activation giving an error.

    dear experts, i have created a transformation which is having some routines and i have also created some key figures with amount type. while activating the transformations its giving error. " key figure (version A) is not compounded. what could be th

  • RFC to SOAP scenario (with out XI/PI)

    Dear Experts , Is it possible to push data from RFC to Webservice with out using XI/PI. Regards, Kartheek.

  • Subscribe to an outlook calendar

    My husband uses outlook and I am on iCalendar - Can I subscribe to his calendar?

  • Dynamically creation of ITAb

    Hi all, I want to accept Table Name on selection screen and from that to create Iternal table dynamically. Plz tell me how to that.