FTP sender adapter wait sometime before processing a message

Hi,
I want my FTP sender adapter to wait sometime before processing a message. This is needed in my case since the receiver of the message cannot consume message in, say two seconds, so I would like to configure a "time to wait before processing message" in PI since PI processes all of the files in folder without waiting another poll interval time if more than one exist.
Is this possible in PI 7.0 sp16? 
Regards,

HI Tarik
BPM is the solution for this problem. If you are not willing to use BPM other solutions are  Adapter module and Scripts
You can write adapter module and use the threads mechanism. Thread.sleep can help you achieve this but you need to set this properly.
Another method is Unix script. Let your actual directory be Dir1 and poll PI to Dir2. Use the script to write files from Dir1 to Dir2 one by one and with time gap. This will work for you.
If you have PI system on Windows i prefer to go with Adapter module.
Thanks
Gaurav

Similar Messages

  • Sender jms adapter-archiving before processing the message

    Hi,
    Do we have any option in Sender JMS adapter to archive the message before processing the message?
    I have searched in sender JMS adapter (XI7.0) settings, but couldn't find any option.
    My assumption is whether any option provided in configuration setting of adapter engine or any other alternatives.
    Thanks,
    Srini.

    Hi Srini.
    Here is the code. But you may prefer the EAR module, just for deploy. I need your email to send it to you.
    If you want to create it yourself follow the steps in this guide and paste the code:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    When you configure the module in the JMS sender communication channel you have to spedify 2 parameter for the log file location:
    "file.path" (XI server file system path) and "file.name"
    CODE:
    package com.bfa.af.modules;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Date;
    import javax.ejb.CreateException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import com.sap.aii.af.mp.module.Module;
    import com.sap.aii.af.mp.module.ModuleContext;
    import com.sap.aii.af.mp.module.ModuleData;
    import com.sap.aii.af.mp.module.ModuleException;
    import com.sap.aii.af.ra.ms.api.Message;
    @author ibermatica
    public class BFATraceModule implements SessionBean, Module {
         private SessionContext myContext;
         public void ejbRemove() {
         public void ejbActivate() {
         public void ejbPassivate() {
         public void setSessionContext(SessionContext context) {
              myContext = context;
         public void ejbCreate() throws CreateException {
         public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException
              FileWriter outFile;
              try
                   Date date = new Date();
                   String filePath = moduleContext.getContextData("file.path");
                   String fileName = moduleContext.getContextData("file.name");
                   outFile = new FileWriter(filePath + System.getProperty("file.separator") + fileName, true);
              catch (IOException e)
                   e.printStackTrace();
                   throw new ModuleException(e);
              PrintWriter out = new PrintWriter(outFile, true);
              try
                   out.println("--- Start of message ---");
                   //Get message content.
                   Message data = (Message)inputModuleData.getPrincipalData();
                   if(data.getDocument() != null)
                        out.println(data.getDocument().getText());
                   else
                        out.println("Empty message.");
                   out.println("--- End of message ---");
                   out.println("Total characters: " + data.getDocument().getText().length());
              catch(Exception exc)
                   out.println(exc.toString());
              finally
                   if(out != null)
                        out.close();     
                   if(outFile != null)
                        try {
                             outFile.close();
                        } catch (IOException e1) {
                             throw new ModuleException(e1);
              return inputModuleData;

  • FTP Sender Adapter - Processing Sequence

    Does anybody know what the processing sequence of files is when I using a ftp sender adapter? I can only determine this if I use a file sender adapter (NFS).

    Hi,
    in  sender file ( FTP ) adapter:
    when qos  :eoio
    the sequence the msg processess will be in ascending alphabetical order.
    ex: if i have 10 files in a folder
    as per the my requirement all the 10 files are picked up at the same time, then
    the files will be arranged in queue specified in ascending alphabetical order and processed in the same order.
    but, when i use QOS: EO
    the same thing is going to happen right!!
    picks all the files , processess in ascending alphabetical order to xi..
    then what is the use of queue here in eoio???
    on the other hand,
    in  sender file ( NFS ) adapter:
    file will be processed based on the processing sequence( either by date or time ).
    so both EO and EOIO use the processing sequence... then wat is the work of queue here in EOIO MODE.. any way they are processed according to the proccessing sequence parameter.. ???
    Please reply..

  • FTP sender adapter archives empty files

    Hi.
    I have a strange problem with the ftp sender adapter.
    I receive my file without problems, and the scenario works as it should.
    The problem is with the archiving of my processed file.
    It writes the file fine to the path specified, but it is empty (user has full file permissions)
    The ftp adapter uses content conversion, and I have seen threads in the forum that tells about simular errors. But I have found no solution.
    Hope someone can help here.
    Regards...
    Peter

    File Content Conversion is usually associated with Receiver File/FTP adapters
    and Archiving the source file is an option at the Sender File/FTP Adapter.
    No, content conversion is used both in sender and receiver file/FTP adapters.
    In my case, it is in a sender adapter!
    I'm not sure what you mean when you said "The ftp adapter uses content conversion,..."
    The sender FTP adapter content converts a flat file to XML format!
    Can you let us know the details of your scenario?
    Like who / what is the sender and who/what is the receiver system?
    The scenario looks like this: "FTP -> XI -> RFC", but as mentioned before, the scenario works fine, the problem is in the FTP sender adapter that fails to save the archive file.
    If I try to use the file/FTP sender adapter in "file mode", with the same parameters, the archive file is written just fine!
    Regards...
    Peter

  • FTP Sender Adapter - File Order

    Hi,
    can somebody tell me, in which order files are being read via the ftp sender adapter when using wildcards for the filename ?
    I need to process the files sorted by name. Is there any possibility to get this done ?
    BR,
    Martin

    hi Martin,
    Check this forum discussion.
    Re: FTP Sender Adapter - Processing Sequence
    and check out Praveen reply regarding your query
    regards
    Ramesh P

  • FTP-Sender Adapter ignores files with "known filenames"

    Hello experts,
    the scenario is FTP -> XI -> IDOC and we have problems with the polling of the files. In communication channel monitoring everything is working fine, but in the FTP folder some files are ignored, although the communication channel is set up for all *.txt-files.
    My question is, is it possible that the FTP sender adapter ignores files, if it already has processed a file with the same filename? After renaming the files they all were picked up and archived into another folder. How can I configure the communication channel to pick up ALL *.txt-files in the out-folder?
    Best regards
    David

    Hi David,
    What I have observed is, XI always reads files in a certain order (possibly alphabetical or reverse alphabetical). If it finds a file in the source directory that already exists in the archive directory, it will not attempt to read/process the next file (even if the next filename is completely new).
    So, if any of the files in the source directory exist in the archive directory, there is a possibility that certain files may get processed and certain wont.
    Make sure that none of the files that you put in source directory exist in the archive directory (i.e. all the files are new) and see the output. Let me know if this helps.
    PS: I used FTP protocol
    Regards,
    Riyaz

  • Specifying Additional Files in an FTP Sender Adapter

    Hi,
    Has anyone worked out how to specify additional files in a File/FTP Sender Adapter using the FTP transport protocol? This functionality comes 'standard' in the File/FTP Sender Adapter using NFS transport protocol so that additional files can been included as attachments, however, it doesn't seem to be available when trying to use the FTP protocol.
    Thanks in advance.
    Regards,
    Reuben.

    Yes this is available in only NFS mode check sap help
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/frameset.htm
    Thanks!

  • Prevent ftp sender adapter from tranfering files from subdirectories

    I have a scenario with a ftp sender adapter. In the configuration of the ftp sender adapter I have defined a base directory "/dir" and a file pattern "*". The directory /dir as a subdirectory /dir/subdir. Now the ftp adapter transfers also files from this directory. But I don't want that. Any solution?

    Hi,
    I am not sure whether it is made so intentionally be SAP. However, if you wish to resolve this issue, you can specify a wild card for file names, such as the file extension (for example, *.txt).
    Hope this helps,
    Bhanu

  • FTP Sender Adapter for OpenVMS

    Hi,
    did anyone of you use a FTP Sender Adapter on an OpenVMS System?
    If I connect via FTP Client (Dos, Unix Shell or Filezilla) this works fine so far but with XI I receive the following error message:
    Error occurred while connecting to the FTP server "server:21": java.net.SocketException: Connection timed out:could be due to invalid address
    BR Markus

    Hi,
    Check your FTP server Address and the port number. If  you are using SSL / TLS then the port numbers will change.
    <b>Cheers,
    *RAJ*</b>

  • FTP Sender Adapter, Empty Archive Files

    Hi,
    When I retrieve files using a FTP sender Communication Channel and I checked the Archive check box (including an existing directory), the file is archived but it does not have any content. It is completely empty.
    The original file contains data and is processed correctly. The original file is a csv and I use FCC to convert it to XML.
    Anybody any suggestions?
    Ron

    Hi,
    The scenario is FTP --> IDOC scenario.
    The config is as follows: (not mentioned = not used)
    Source:
    Source Directory:  /Out
    Filename    File*.csv
    FTP Connection:
    Server: a.b.nl
    Port: 21
    Dataconnection: Passive
    Connection Security: None
    Username: user
    Password: pass
    Connect mode: Per File Transfer
    Transfer mode: Binary
    Processing:
    Quality of Service: Exactly once
    Poll Interval: 60 secs
    Processing Mode: Archive
    Add Timestamp: checked
    Archive directory : /usr/sap/Interfaces/
    File Type: Text
    FCC:
    Documentname: File
    Recordset Name: Lines
    Recordset Structure: Line,*
    Recordset Sequence: Ascending
    Key field type: String (Case sensitive)
    Line.fieldSeparator     ;
    Line.endSeparator     nl
    Line.fieldNames         VBELN, POSNR, RREL
    Best regards
    Ron

  • JDBC Sender Adapter -  NOT FETCHING RECORDS -PROCESSING STARTED

    Hello all,
    I have set up a JDBC sender adapter .With polling interval as 30 Seconds. Polling is done successfully
    but it does not fetch the records .
    Valid Data is present in the tables.In the Communication Channel Monitoring log shows :
    "Processing Started"
    after each poll interval.
    Adding to this , it was working fine  with the same parameters two days back.
    I have enabled the Driver Trace but didnot get any information from Trace.
    How to resolve this issue?Any help
    Regards
    Ganga Prasad

    Hello maheshwari,
    Valid Data is there & many records are there to be fetched.
    One more thing  Normally in the Communication Channel Monitoring
    for an JDBC adapter even if there are no records to fetch we get the Log information in detail that :
    Polling interval started.
    Processing finished successfully
    Processing started
    Polling interval started.
    Processing finished successfully
    Processing started
    But here in my case am getting only : (polling interval : is 60 Seconds)
            2/5/08 8:29:19 AM           Processing started
         2/5/08 8:28:19 AM           Processing started
         2/4/08 3:34:54 PM           Processing started
         2/4/08 3:33:54 PM           Processing started
    One more observation is that my poll interval is 60 seconds but now it is polling after every 120sec
           2/5/08 11:17:31 AM           Processing started
         2/5/08 11:15:31 AM           Processing started
         2/5/08 11:13:31 AM           Processing started
         2/5/08 11:11:31 AM           Processing started
    I have tried refreshing Cache but no change .
    Regards
    Prasad

  • Getting dynamically a specific file in FTP sender adapter

    Hi all,
    I'm getting an idoc in a BPM and there's a field with a file name, which is the one I have to read in the following step.
    I'm not sure this is possible, but I'd like to hear from the PI community...
    The problem is that in the usual FTP sender comm channel, I have to specify in configuration time the folder and the pattern of the file names to be read. And in my scenario I only know that in execution time (that's possible when the FTP channel is receiver though).
    Thanks

    Oops!! I misunderstood it
    At sender, neither of them would work. In fact, there is no other direct options at sender. You have to specify the filename. As Udo suggested, you have to create multiple channels.
    Still if you could explain your BPM configuration, some solution may turn up. You said you are receiving Idoc in BPM and a file too?
    Regards,
    Prateek

  • SAP PI FTP sender adapter not working with SAP ECC over Itanium

    Hi,
    We have been running normally SAP PI 7.0 SP14 with no issue for a while.
    We are now in the process of migrate the SAP ECC system from PA risc to IA platform. We are performing some tests between SAP PI and SAP ECC to check that the platform migration is not affecting us in any way and we have found that FTP adapter sender is not working anymore (receiver is working as usual).
    We place some files in the new ECC system and when PI goes to retreive the files it is like it can not read anything. It gives no error but it does not pick any file. This is not happening with the old platform.
    Does anyone have any idea?
    Thanks a lot for your help
    Diana

    Hi,
    I am using FTP connection and for the receiver it is working fine.
    Thanks
    Diana

  • FTP Sender Adapter with EOIO for Large files

    Hi Experts,
    I am Using XI 3.0 version,
    My scenario is File->XI->FIle, I need to pick the files from FTP Server , there are around 50 files in it each of 10 MB Size.
    So i have to pick the files from FTP folder in the same order as they put into folder , i,e.., FIFO.
    So in Sender FTP Comm channel , i am Specifying
    Qos = EOIO
    queue name =  ACCOUNT
    whether the files will be picked in FIFO into the queue XBTO_ACCOUNT?
      So my question is,
    what is the procedure to specify the parameters so that it will process in FIFO?
      What would be the BEST PRACTICE to acheive it for better performance point of view.
    Thanks
    Sai.

    Hi spantaleoni ,
    I want to process the files using FTP protocol which should be in FIFO ,
    ie.., Files placed first in a folder should be picked up first and remaining one next and so on.
    So if i use FTP ,
    Then to process the files in sequence i.e, FIFO
    the processing parameters
    Qos= EOIO
    Queue name = ACCOUNT
    would process the files in FIFO.
    and to process large files (10MB size) what would be the best  Polling interval secs.
    Thanks,
    Sai

  • FTP (Sender) Adapter - Polling Problem

    Hello everyone!
    I'm trying to pick up an XML file using the FTP Adapter (Sender).
    Weird thing is that I have set the "polling interval" for 60secs, but the FTP adapter doesn't seem to want to repeat polling at the said time interval.
    It only picks up the file once, and after that no more polling occurs.
    Could anyone know what the problem might be?
    Warm regards,
    Glenn
    PS. We are on PI 7.0, SP11.

    Hi Glenn,
    Check the connection mode in FTP adapter.
    Connect permanently or connect everytime.  Try changing the option and see if it works.
    If it still doesnt work then contact the guys who are maintaining the FTP server.
    Regards,
    Sumit

Maybe you are looking for

  • Payables Open Interface Import

    Currently the AP folks run the 'Payables Open Interface Import' for certain types of source's. I am trying to run the 'Payables Open Interface Import' request for a newer source. I am getting the following error: REP-1419: 'beforereport': PL/SQL prog

  • Mail stuck "cannot send using server"....

    but the real issue is that the list of addressees is so long that I cannot see the buttons at the bottom, so I cannot click them to dismiss the error and try something else. Only way out of Mail is to force quit (menus are unresponsive) and if I rela

  • Wireless Keyboard (3x Battery Version) -  Shift Key Issue

    Chaps, I am using a 3G-WiFi iPad with the Apple Wireless Keyboard, which is great. However, the RIGHT HAND Shift Key doesn't work for me. Is this the same for other users? (I am in UK, but maybe a US person can try too?)

  • Not enough memory in my Palm Z22

    I use my Palm Z22 primarily for my ePocrates drug prescription system at work. I have added only 1 other program to it, a Bible. To keep updated on drug changes I am supposed to sync about every 2 mos, I have never had problems until today when my Z2

  • Inherited key figures!

    Hello,   Does does anyone know how to jump from one report to another while inheriting the key figures.  I want to take the columns with to a new report in BeX. Thank you, Matt