Picking up a file as soon as it is kept in the folder on the server

Hi Guys,
Is there a way that I can pick up a file as soon as it is placed in a folder..
I do not want to schedule a background program to keep on checking for files

Hello hema,
                    I will explain in more detail.
Option 1:-
You can schedule a thirt party FTP tool JOB (not SAP JOB) like install a FTP server in your SAP application server .
Option 2:-
Another option is do a folder Mounting( This is an BASIS activity in the SAP Application Server OS level activity)  in the SAP Operating system level. Folder that you are mounting will be an another mechine / server. But SAP program can do open dataset and can write the file directlt to that folder where you that file to write.
You can take help from BASIS for this functionality.
Hope this answers your question.
Thanks,
Greetson

Similar Messages

  • APD creates CSV file as soon as it is executed altough the CSV is last step

    Hi,
    I have an APD with three steps:
    1. read a query
    2. remove records with figures = 0
    3. generate a CSV file
    As soon as the APD is executed the CSV file is generated. However it needs 5 minutes at least to really execute the query (step1 & 2) and fill in the file. The 'Open dataset' statement seems to be executed to soon in the APD execution.
    It bothers me as APD is scheduled based on an event. Another Abap program is also scheduled on the same event. This Abap checks regularly the delivery of the file in order to process it. So this Abap runs also too soon and does not process anything as the file is empty...
    Regards,
    Laurent

    Hi,
    At the time of saving file it will ask file path where to save   in work directory , just copy that path & search in AL11 .
    Before that make sure :
    1. in Data target Tab write data to app server must be selected  & in Write mode : check once either creatre file again if already overwrite.

  • Running a batch file kept on the server

    Hi ,
    I need to upload a file onto the application server then i have to call a batch file from my ABAP code kept on the same server .
    The batch file takes 3 inputs the uploaded filename onto the server the new file name ( that can be any name ) and the delete flag parameter ( 0 or 1 ).
    Is there any function module to do the same ??

    Hi,
    Follow the steps:
    1) Define external operating system command say zcopytm1 using SM69 by using the following parameters:
    Command name                            Operating system       Type
    ZCOPYTM1                                Windows NT             Customer
    Operating system command
    e:\tm1out\tm1ph.bat
    Parameters for operating system command
    Leave this blank
    tm1ph.bat is the batch file which it will execute.
    2) First test it using SM49. Once satisfied use the following code to execute it thru ABAP:
    DATA: BEGIN OF t_copy OCCURS 1.
            INCLUDE STRUCTURE btcxpm.
    DATA: END OF t_copy.
    DATA:      statusline LIKE btcxp3-exitstat.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
             EXPORTING
                commandname            = 'zcopytm1'
                status                              = statusline
             TABLES
                exec_protocol                       = t_copy
             EXCEPTIONS
                no_permission                       = 1
                command_not_found                   = 2
                parameters_too_long                 = 3
                security_risk                       = 4
                wrong_check_call_interface          = 5
                program_start_error                 = 6
                program_termination_error           = 7
                x_error                             = 8
                parameter_expected                  = 9
                too_many_parameters                 = 10
                illegal_command                     = 11
                wrong_asynchronous_parameters       = 12
                cant_enq_tbtco_entry                = 13
                jobcount_generation_error           = 14
            OTHERS                              = 15
      CASE sy-subrc.
        WHEN 0.
          MESSAGE s999 WITH 'File has been copied in G:\public\tm1ph'.
        WHEN 1.
          MESSAGE s999 WITH 'No_permission'.
        WHEN 2.
          MESSAGE s999 WITH 'Command_not_found'.
        WHEN 3.
          MESSAGE s999 WITH 'Parameters_too_long'.
        WHEN 4.
          MESSAGE s999 WITH 'Security_risk'.
        WHEN 5.
          MESSAGE s999 WITH 'Wrong_check_call_interface'.
        WHEN 6.
          MESSAGE s999 WITH 'Program_start_error'.
        WHEN 7.
          MESSAGE s999 WITH 'Program_termination_error'.
        WHEN 8.
          MESSAGE s999 WITH 'X_error'.
        WHEN 9.
          MESSAGE s999 WITH 'Parameter_expected'.
        WHEN 10.
          MESSAGE s999 WITH 'Too_many_parameters'.
        WHEN 11.
          MESSAGE s999 WITH 'Illegal_command'.
        WHEN 12.
          MESSAGE s999 WITH 'Wrong_asynchronous_parameters'.
        WHEN 13.
          MESSAGE s999 WITH 'Cant_enq_tbtco_entry'.
        WHEN 14.
          MESSAGE s999 WITH 'Jobcount_generation_error'.
      ENDCASE.
    I hope this helps,
    Regards
    Raju Chitale
    Edited by: Raju Chitale on Dec 22, 2008 5:38 AM

  • File shares not be re-created when restart the Server (Windows 2012 Std R2)

    Hi Team,
       We are facing below issue whenever restarting my server (windows 2012 R2 STD)
    1. File shares are invisible.
    2. Every time i need to restart server service to make file shares availability
    Please look in to the above issue and revert if any suggestion.
    Regards
    K Sreenivasan

    Hi,
    According to your description, my understanding is that you create a file share under File and Storage Services but the file is invisible. If you restart the server make the file share, then you can see the file share.
    Can you see the file share when you directly create in Windows Explorer? Please check if you have enabled ABE on the file share.
    Access-based Enumeration
    http://technet.microsoft.com/en-us/library/dd772681(v=ws.10).aspx
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I'm downloading a file which I know has been updated on the server but I'm still getting the old one... I think there is a cache somewhere I need to clear but I'm not sure ?

    I have a file on my own server which is available to the public to download I uploaded a new version so I know it replaced the existing one. But when I try downloading it through Firefox I just get the older version and not the new one... I seem to remember having this problem before and was given details of how to clear the cache concerned, but I don't know for sure. Any help would be appreciated thanks

    Ctrl F5 doesn't do anything. (I'm on a Mac if that makes a difference.) The link is to the online page and it does prompt me for the id and password for that page.
    The page is designed in htm.
    This is driving me a little nuts. I suspect there is a library file somewhere that itsn't being cleared out, but I can't figure out where.

  • Multiple file copies just randomly miss a few of the files

    This is something that has happened to me on all networks I've used. My home network (gigabit LAN or 802.11n), work network, and any client network I've ever been on while supporting.
    I can select say 10 files on my MBP in finder. And either copy/paste or just drag to copy onto an SMB share (windows 2003 at home for my windows home server, also 2008 and 2008 R2 servers at work and clients). And the file copy goes fine. I see the progress window, it goes and I see the files populating the network share as it progresses. It runs the normal amount of time I'd expect for the speed of the network, and when it's done I get my sound. Then anywhere from three to nine of the files just disappear off the network share as the copy finishes. So it takes the time to copy them but does not complete.
    And it's not an every time thing. And it ONLY happens with multiple files, i NEVER have a problem doing files singularly. The same files that fail in a batch go fine when I copy them one by one in the same session after it failed doing them all at once.
    No errors on the windows side of things in the logs, disks are fine. Never happens with my MBP when I do it from windows either via VMware or booting directly into boot camp.
    No errors on the mac side, for all intents and purposes it completed successfully. Yet almost every time I do group copies, only a couple actually are on that network share when all is said and done.
    No AV or firewall on the server at the moment so it happens whether I have them enabled or uninstalled. No AV on the MBP.
    And no disconnects, etc. I'm watching things in an RDP session while the copy is happening and I never lose the network, it never drops. Downloads that I sometimes have going on are working just fine, everything is just perfect in every respect as far as networking goes, except for those copying of multiple files.
    Saw someone else had disabled write caching on the windows machine to overcome an actual error they had, and i had tried that in this instance long ago to no avail.
    This has happened since I first bought the laptop in July of '09 and it was running leopard, and has continued through every single version update since. Wired or wireless...
    Thanks for any suggestions.

    hey JDThree, i'm having the SAME EXACT PROBLEM!!! i've tried restarting both my server and my MBP, and it does the job a bit, but it's so random. even doing a single file copy doesn't seem to work. i tried copying over one file, then when it finished and was on the server, i copied the next file, and it removed the first file. so strange. anybody have any ideas?

  • Using the server to share files with the clients

    Hello everybody!
    I finally managed to install properly iFolder on a server, and the client on a few computers. Unfortunately, I was suprised to see there is no functionality to upload from the server to the ifolders structure.
    I need to achieve this because the server I used is also used as a datacenter; I hoping to make the data available to each user directly on their own desktop using the mechanism integrated in the iFolder framework.
    Obviously, I would like to avoid copying back with ssh or ftp the files to one local client, and forth to the server using iFolder.
    The simplest thing would be to install a client on the server machine as well. Unfortunately, the folder monitoring function only works for graphical client, and my server does not have X installed.
    So my last resort would be to connect by ssh to the server machine, then start a non graphical web browser, connect to https://localhost/ifolder/ and share each file one by one... Really time consuming and annoying!
    Does someone have any suggestion?
    Thanks a lot for your help!
    Cheers

    Originally Posted by malcolmlewis
    On Sun, 02 Jan 2011 20:36:01 GMT
    aerospeace <[email protected]> wrote:
    >
    > Hello everybody!
    >
    > I finally managed to install properly iFolder on a server, and the
    > client on a few computers. Unfortunately, I was suprised to see there
    > is no functionality to upload from the server to the ifolders
    > structure. I need to achieve this because the server I used is also
    > used as a datacenter; I hoping to make the data available to each
    > user directly on their own desktop using the mechanism integrated in
    > the iFolder framework.
    > Obviously, I would like to avoid copying back with ssh or ftp the
    > files to one local client, and forth to the server using iFolder.
    > The simplest thing would be to install a client on the server machine
    > as well. Unfortunately, the folder monitoring function only works for
    > graphical client, and my server does not have X installed.
    > So my last resort would be to connect by ssh to the server machine,
    > then start a non graphical web browser, connect to
    > https://localhost/ifolder/ and share each file one by one... Really
    > time consuming and annoying!
    > Does someone have any suggestion?
    > Thanks a lot for your help!
    >
    > Cheers
    >
    >
    Hi
    AFAIK if you create a common directory on the server, then use the web
    admin interface to create a shared resource, then add the users.
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default
    up 1 day 2:19, 2 users, load average: 0.05, 0.04, 0.00
    GPU GeForce 8600 GTS Silent - Driver Version: 260.19.29
    First, thanks a lot for your quick help. I am actually deeply impressed by the speed!
    Now, I don't know whether it is because I could not explain well my problem, or just because I can not understand your answer, but don't see what you're exactly suggesting me to do....
    1) create a common directory: Do you mean I physically create a directory (mkdir /pathtodata/)? Or I create an new folder in ifolder using the web interface?
    2) What is as "shared ressource"? I cannot find any reference to this term in the user manual. Do you just mean I share the ifolder I created in the previous step?
    3) Add the users: I imagine this is the step where I share the ressource with the user.
    Again, I am really sorry if my hesitations are stupid and the answer is obvious, but I read all the documentation and I cannot figure out the answer.
    Thanks a lot for your help

  • Load js file fail while the server returned successfully

    I found a wired problem in our user's firefox.
    in our project, we need load many javascript files to render the form,
    we have two similar js files, in firefox one loaded successfully while the other will not, but both of the js files can be loaded successfully in Chrome.
    I debugged in firebug, in most times, it will have no return, and if I try to refresh the page, I can still see the request of previous page, and the response says "please reload the page to get source for http://......"
    we doubt if this is because the server didn't return successfully, I used WireShark to monitor the packages received from server. It is strange that the js file returned with Http code "200"
    it means the server returned successfully, but the browser didn't load it.
    and this problem only happens in firefox of our user in north china, for those from Japan, Thailand, USA don't have this problem, and if I use proxy in USA, the problem will not happen either.

    I monitored all the requests in browser console, I found there is a POST request to safebrowsing.clients.google.com.
    this request cost more than 40 seconds.
    In which situation, Browser will send request to safebrowsing.clients.google.com?

  • Opening Output Stream to a file on the server from Applet

    Hi,
    I am trying to write a little applet which parses a file found on the server , lets the user select some Strings then write the selected Strings to a different file on the server. I use the following code:
    String fileName = new String("LineUp");
    URL docBase = null;
    URLConnection conn = null;
    try {
    docBase = new URL(ApppletName.codeBase, fileName);
    } catch (java.net.MalformedURLException e) {
    System.out.println("Couldn't create image: "
    + "badly specified URL");
    try {
    conn = docBase.openConnection();
    } catch(IOException e) {System.out.println(e);}
    String playerString;
    try {
    conn.setAllowUserInteraction(true);
    conn.setDoOutput(true);
    conn.connect();
    PrintWriter out = new PrintWriter(
    conn.getOutputStream());
    etc..
    The problem I am having is that the getOutputStream routine for the connection object does nothing other than throw an exception (I've stepped through the code and that is all the routine actually does). The connection is actually made but no output stream can be created. I have looked at the Java Tutorial (as I am fairly new to Java) and found a spot where they tell you how to write to a file on the server, which is the example I have followed. Any suggestions? What am I missing?

    Yes, that's what I thought. It talks about writing to a URL, and you have interpreted "URL" as if it meant "file". A URL is a "Uniform Resource Locator", which is a string that identifies a "resource" on the server. Often that corresponds to a file on the server, but not always. It could be a page that is dynamically generated by a script on the server.
    Look again at that page and you will see these words: "At the other end, a cgi-bin script (usually) on the server receives the data, processes it, and then sends you a response, usually in the form of a new HTML page." What that means is, you can't just upload a file to a URL unless you have programmed the server to deal with that upload. That's part of the basic design of the HTTP protocol.
    So, unfortunately, you can't do what you want all that easily. You would have to provide some programming at the server to handle the file upload for you. In Java that means writing a servlet and getting the web server to have that servlet handle all requests to a particular URL. I suspect you don't want to get into that just yet. But if you do, any decent book on Java servlets should have an example of how to upload files like this.

  • Reading a file on the server with a servlet

    How do you read a file with a servlet that is located on the server?
    I have tried several methods: here I have one of them:
    begin code
    String temp;
    temp = this.getServletContext().getRealPath(temp);
    in = new BufferedReader(new FileReader(temp));
    while(in.ready())
    bodytext=in.readLine();
    end code
    output: can't find file
    while I am 100% certain that the file is present at the location given in the String temp.
    Can someone help me please?

    I have to make a servlet that makes a menu structure. When I press a link, he asks my servlet to read a html file on the server. Then, he writes a submenu structure combined with the body part of the html code of the html file. For now, I have made it in JavaScript, but that doesn't work like I want it to. An example of what I mean, you can find at http://www.autismevlaanderen.be/vva
    It's in a foreign language(Dutch), but it's the structure that matters.

  • Pick value from file in FOR loop

    Hello All,
    I was trying to delete records from database day by day and commit. Is it possible to pick the dates from file and then delete the database record for that day. Something like below.
    For day IN <File.txt>
    LOOP
    delete from table where date = '<1st value from File.txt>';
    commit;
    END LOOP;
    I have to do this from unix box, so i can place the file (with list of dates as input) in the path from where i am issuing sqlplus.
    Please suggest any other way to delete it day by day is most welcome.
    Thanks.

    982193 wrote:
    Hello All,
    I was trying to delete records from database day by day and commit. Is it possible to pick the dates from file and then delete the database record for that day. Something like below.You an use EXTERNAL TABLE (Or SQL Loader, if the file cannot be moved to the DB server) to read from a file and it can be used in your DELETE statements just as a normal table.
    >
    For day IN <File.txt>
    LOOP
    delete from table where date = '<1st value from File.txt>';
    commit;
    END LOOP;
    LOOP is a bad idea.. You could do it in a single statement..
    delete from table where date in (select the_date_coumn from the external_table);
    And COMMIT inside LOOP is again not a good idea..

  • File adapter to pick a single file

    The scenario is PI File adapter would pick files from a 3rd party FTP location. The 3rd party is placing files with file names using date time stamp.
    The requirement is to process one file at a a time - I have mentioned the Processing Sequence as 'By Date' which means the adpater would pick the files sequentially. But I want the adapter to pick only one file at a time rather than picking all the available files in the system.
    Is that possible to do?
    Thanks.
    Anuradha.

    Hi Anuradha,
      Could you please kindly provide answers to the queries below so that forum members can have a clear picture of your requirement
    1. What is the operating system of your PI server?
    2. What is the version of PI you are working on?
    3. What exactly do you mean by statement " I want the adapter to pick only one file at a time rather than picking all the available files in the system."  since adapter will actually pick up files one by one only in each polling interval. This goes in PI pipeline
    one after another in quick succession.
    4. Do you mean that you want to insert delays between successive file pick up then Baskar has already answered your question.
    5. Do you want the channel to pick up only one file in a day out of all possible file?
    6. Could you please kindly provide any sample file name you are receiving in PI ?
    regards
    Anupam

  • File adapter should pick a single file at a time

    Hi,
        I have File to RFC scenario.. in my source directory  I'm getting bunch of files with  the same name.  at a time.. but  i want to pick the one by one only. that means.. my file adapater poll interval is 30 seconds.. every 30 seconds it will pick the one file.. even though there are multiple files.. but my file adapter should pick a single file ata time..
    but at present my file adapater was picking all the files ata time..  but i want to make my file adapter should pick single file ata time..
    for this.. any special  configuration we need to do..  or  any  ideas or suggestion  .. will be.. appriciated..
    regards
    Babu

    >>any special configuration we need to do..
    there is no default configuration to achieve this functionality.
    I speculate that any of this should work.
    1. Post the files to a intermediate directory and use a SCRIPT/Batch program to move only one file at a time frame to the source directory.
    2. Uncheck the option Process Read only files in the sender CC to prevent the file adapter to pick the read only files. Use a script that changes the permission of one file at a time so that the file adapter will pick that file alone.
    In both the cases the script needs to be scheduled at the OS level to run every 30 seconds.
    Thanks
    SaNv....

  • WebUtil SetIcon not picking up gif file

    I've added WebUtil_SeparateFrame.SetIcon('test') called by a push button on a Form. Unfortunately this appears to simply blank out the "coffee cup" icon at the top left of the Form and in the Win Taskbar. I also call SetTitle at the same time, and this works ok.
    As per the WebUtil manual, the file test.gif resides in the same directory as the gifs used on iconic buttons. The button gifs display on the screen ok, and they are definitely being picked up from this directory (I renamed one and it was no longer displayed on the Form).
    If I remove test.gif from the directory the behaviour is the same - the icon is blanked out. This suggests that Forms is not actually looking in the same directory at all.
    My client has requested their own icon to replace the coffee cup.
    Any ideas?

    OK, took a while for me to get back to this, configure to work in iDS, etc.
    The result is that:
    1. SetIcon expects the full file name, unlike Form icons where you omit the '.gif' extension.
    2. Forms appears to be looking in the wrong location. Filemon reports that it is not looking in the same place as the button images, but instead is looking in:
    <ids_home>\forms90\j2ee\forms90app\forms90web
    and if I copy the gif into that directory, it works!
    Maybe I should just be happy to get it working, but... is there any way to force it to look in the 'images' virtual directory?
    If not, what is the equivalent directory in 9iAS for "j2ee\forms90app\forms90web"? We are running on AIX.
    Thanks for your assistance,
    Neville Sweet.

  • FTP - FCC - GUILDFTPd - Unable to pick up multiple files with Wildcard char

    Hi All, 
    I am not sure if my issue is strange or i may be missing something here. I am using FTP - FCC and using GUILDFTPd to connect to my local machine. This is working perfect if i don't use wildcard characters in file name but if i use them it is not picking up files. I have green in Channel monitoring and polling as mentioned for every 60 Seconds.
    I have tried both using/without using 'Advanced selection for source file'  and also checked 'Adapter specific message attributes'. The same is working if i specify exact file name. By the way, i have tried using '*' and '?' as wildcard character.
    Any idea or help in this regard is appreciated.

    I have tried with just basic. I mean, it works fine if i specify exact file name. The problem is only when i want to pick up multiple files using any wildcard character. No error in communication channel or in archive settings as the scenario working for one file without any wildcard.
    However, i have changed to NFS and it is working good even with wildcard characters.
    It seems there is a problem with GUILDFTPd which is not picking up files but no errror.
    Any ideas are welcome. Thank you both for the responses.

Maybe you are looking for