Writing into an ftp folder

I have an application where every change in the database gets written into a simple text file.  Basically a log.  But this log contains EDI data that needs to be transfered into an FTP folder that is being fetched contantly by the EDI translating system.
So far the application works fine by writting the file in-house, checking whether the file exists or not in order to either append a new line or write a new file altogether and then using cfftp to copy it into the ftp folder.  But, I would then have to manually copy the file and delete the file in-house in order for a new file to be written, otherwise, it'll continue to append new lines on the same file forever.
I'm thinking of 2 possible scenarios.
Using cfschedule to copy the file to the ftp and at the same time delete it locally, or being able to write the log lines automatically into the FTP the same way it does in-house.
Anyone have any ideas how to accomplish this?
Thanks

That's the thing. I already have it all working at the same time with cffile 'amend' and 'write', but the client wants me to drop the file every 15 or 20 minutes in his ftp folder.
Locally, checking the existence of the file and either amending writing it is a piece of cake but he wants the file not in my local server's folder but his via ftp.

Similar Messages

  • Can SSIS be used to pick up files dynamically from an FTP folder?

    I get 4 files dumped into an FTP folder each day.  Each comes in with a date, in this format: '20140320' & the filename, which is always the same convention for these four files.  Can I run SSIS on a daily basis, like at 9AM, to scan through
    the files in the folder, and import the ones that were dropped in today (today's files always have yesterday's date).
    Thanks!!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hi,
    You can check the below Link.
    http://microsoft-ssis.blogspot.com/2011/08/foreach-ftp-file-enumerator.html
    Also I would suggest create 4 ftp tasks for each files and define 4 expressions based on the expression below. Give then each file name
    with the expression that is defined.
    “Filename#####1” + (DT_STR,4,1252) DatePart("yyyy",getdate()) + Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2)
    + Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2) + ".csv"
    “Filename#####2” + (DT_STR,4,1252) DatePart("yyyy",getdate()) + Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2)
    + Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2) + ".csv"
    “Filename#####3” + (DT_STR,4,1252) DatePart("yyyy",getdate()) + Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2)
    + Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2) + ".csv"
    “Filename#####4” + (DT_STR,4,1252) DatePart("yyyy",getdate()) + Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2)
    + Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2) + ".csv"
    Or whatever the file format is, I selected .csv
    Regards, PS

  • Writting attached file from SOAP message to a FTP folder

    Hi everybody,
    Our scenario is an interface which receives a SOAP message with a file attached. As we don't need to do any mapping into the attachment, we are supposed to deliver that file as it is into a FTP folder.
    Our problem is that we cannot find how to configure File comm channel to write the attached file and no the SOAP XML message which is what we are getting now. Any help on this?
    Thanks in advance.

    Hi
    check these forum posts
    SOAP with attachments
    Mail Sender Adapter - Attachment Handling
    Regards
    Vishnu

  • Windows 8 FTP Folder in File Explorer - Interface Not Supported

    I access my FTP site Via Windows Explorer in Windows 7 and Have tried doing the same via File Explorer in Windows 8
    When I double click a File in the FTP folder, whereas in W7 It would download a copy and open the file, In W8 I receive the error Interface Not Supported.
    Does anyone know of a fix for this?
    Thanks in advance.
    Tim

    I remember seeing something similar happen in Windows Explorer on W7 after I installed Google Chrome, however this was happening right from first install on W8.
    I seem to remember the solution in W7 was a registry fix but I'm not sure whether this would work in W8
    Ravenstar68
    Edit 
    Just remembered it wouldn't let you create the ftp site in W7 so was a different problem
    I was waiting to see if you brought that up.
    When I first made the standard ftp shortcut (the kind that opens IE), it had no association.  That green bird-foot arrow icon comes from OpenWith.exe.
    Double-clicking the shortcut brought up a very reduced-choice metro dialog.  Those were the only choices.  No OpenWith browse options there.
    There wasn't even a Open With... choice in the right-click dialog.
    I was curious to see what might happen if I made the wrong choice.  It was very unforgiving.
    No obvious way to fix it.  No OpenWith right-click context menu.
    I had to reassociate ftp elsewhere.
    Even now that I have everything straightened out, the right-click menus don't offer OpenWith.
    The left pic above shows the ordinary IE ftp shortcut.  I can drag-n-drop it into Firefox and it works.  But there's no OpenWith option for that.
    The right pic above shows the File Explorer ftp shortcut.  What in the world is that "Open folder location" option?  It launches IE to my (blank) home page.  Hmm?
    Just thought I'd share all this with you, since you brought up initializing ftp access.
    Deluxe in some ways, but pretty ragged in others.

  • FTP folder location is not showing in the production server but exist in the development server.

    Hi,
    a wired glitch in my SSIS 2005 package in production server where the FTP folder location is not showing  but its existing in my laptop version
    EX: - t01/app/_res folder
    When i open the package from the production server "_res" is not showing within the remote path in the file transfer task.
    but "_res" folder is shown in my development environment.
    I tried with winscp FTP software in the production sever , and was able to access the  "_res" location through the FTP software. What could this be?  a BIDS sofitware version issue???
    VS 2005 Version in development server
    -Is 8.0.50727.42(Premier Partner ENU)   .net framework is 4.5.1
    VS 2005 Version in production server
    -Is 8.0.50728 (Premier Partner ENU)   .net framework is 2.0 Service pack 2.0
    thanks.

    When you open the package on the production server, do you mean opening it with your Windows account from BIDS on that server? Ff the ftp connection in the package has a password it will have been stored in your laptop when you designed the package. when
    you deployed the pacakge on the server as a file and open it with BIDS then the password will be gone. You would have to go into the package ftp connection properties, reassign your password and save the connection and the package again.
    Jan D'Hondt - SQL server BI development

  • Problem writing file to FTP

    whan i am writing the file to FTP in foreground it is working fine.but in backgruond it is failing .what would be the problem...

    i using the below code..
    FORM ftpfinanceaccess_download USING    p_host
                                            p_user
                                            p_password.
      DATA  :
              dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
              compress TYPE c VALUE 'N',
              host(64) TYPE c.
      DATA: hdl TYPE i.
      DATA: BEGIN OF result OCCURS 0,
            line(100) TYPE c,
            END OF result.
      DATA : key TYPE i VALUE 26101957,
             dstlen TYPE i,
             blob_length TYPE i.
      host = p_host .
      DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
      CALL 'AB_RFC_X_SCRAMBLE_STRING'
        ID 'SOURCE'      FIELD p_password    ID 'KEY'         FIELD key
        ID 'SCR'         FIELD 'X'    ID 'DESTINATION' FIELD p_password
        ID 'DSTLEN'      FIELD dstlen.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          user            = p_user
          password        = p_password
          host            = host
          rfc_destination = dest
        IMPORTING
          handle          = hdl
        EXCEPTIONS
          not_connected   = 1
          OTHERS          = 2.
      IF sy-subrc = 0.
        CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
        CALL FUNCTION 'FTP_COMMAND'
          EXPORTING
            handle        = hdl
            command       = ftppath
          TABLES
            data          = result
          EXCEPTIONS
            command_error = 1
            tcpip_error   = 2.
        IF sy-subrc = 0 .
          CLEAR result .
          REFRESH result .
          CALL FUNCTION 'FTP_COMMAND'
            EXPORTING
              handle        = hdl
              command       = 'ascii'
            TABLES
              data          = result
            EXCEPTIONS
              command_error = 1
              tcpip_error   = 2.
          IF sy-subrc = 0 .
            DESCRIBE TABLE iresult LINES lines.
            blob_length =  lines * width .
            clear : lines.
    Delete the existing file
         CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
          CALL FUNCTION 'FTP_COMMAND'
            EXPORTING
              handle        = hdl
              command       = delfile
            TABLES
              data          = result
            EXCEPTIONS
              command_error = 1
              tcpip_error   = 2.
    *End of deleting the existing file
            CALL FUNCTION 'FTP_R3_TO_SERVER'
              EXPORTING
                handle        = hdl
                fname         = ftpfile
                blob_length   = blob_length
                CHARACTER_MODE = 'X'
              TABLES
                TEXT          = iresult
              EXCEPTIONS
                TCPIP_ERROR   = 1
                COMMAND_ERROR = 2
                DATA_ERROR    = 3
                OTHERS        = 4.
            IF sy-subrc <> 0 .
              WRITE 'Error in writing file to ftp' .
            ELSE.
              WRITE 'File downloaded on the ftp server successfully'.
            ENDIF.
          ENDIF.
        ELSE.
          WRITE : 'Path on ftp not found : ' , ftppath .
        ENDIF.
        CALL FUNCTION 'FTP_DISCONNECT'
          EXPORTING
            handle = hdl.
        CALL FUNCTION 'RFC_CONNECTION_CLOSE'
          EXPORTING
            destination = 'SAPFTP'
          EXCEPTIONS
            OTHERS      = 1.
      ELSE.
        WRITE 'Could not connect to ftp' .
      ENDIF.

  • How do you move a filefolder into your root folder using adobe muse?

    I am using adobe muse and adobe business catalyst with just the basic website plan you get with creative cloud. I want to move a folder into teh root folder so I can use wimpy player with my site.

    Hi
    You can connect to your BC site using ftp and move the folder. To see how to do that, check this link
    Business Catalyst Help | Connect to your site using SFTP
    Do let me know if you have any question.

  • Delete file from an FTP folder

    Hi expert,
    I wanna know if it's possible delete with abap command a file from a FTP folder.
    I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.
    Thanks a lot
    Michele Garofalo

    1) read directory with fm EPS_GET_DIRECTORY_LISTING
    2) process table dir_list
    and 3) finally delete files with
    abap command:  DELETE DATASET dsn.
    hope that helps
    Andreas

  • Nothing shows up on my Desktop. I can put a file into the Desktop folder but it will not appear on the DTop. The HarDrive is not on the DTop either.

    Nothing appears on my Desktop. The Finder seems to work, so I can place a file into the DTop folder, but nothing appears on the DTop, not even the HarDrive.

    You can temporarily hide the crap on your desktop. Edit the CreateDesktop key in com.apple.finder:
    defaults write com.apple.finder CreateDesktop -bool false && killall Finder
    Then, to get my clutter back:
    defaults write com.apple.finder CreateDesktop -bool true && killall Finder

  • I backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    i backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    Don't you just love changes in interfaces?
    I found the answer to my question.
    When you attach a device (iPhone, iPad) to your Mac, in iTunes 12 in appears as a tiny icon in the second "row" of the iTunes display. Click the icon and the familiar iTunes display for the device appears. From there, on the Summary screen, you can see the dates of the backups of the device (iCloud and backup to the computer). You can also use the button to backup to the computer.

  • HT201077 After updating my iPhone4s to the lastest update my photostream stopped updated onto my comuter.  From my phone it looks like pictures have been moved into the photostream folder... but they are not showing up on my computer.  Help!

    After updating my iPhone4s to the lastest update my photostream stopped updated onto my comuter.  From my phone it looks like pictures have been moved into the photostream folder... but they are not showing up on my computer.  Help!
    I have signed out then back into the cloud.  I have comfirmed location of the photostream folder.  I have have even restored settings on my phone.  any ideas on what I can do to get it working again?  or do I have to accept defect, and manually save my photos?

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Why is my Distiller 9.0 randomly choosing a folder on my Mac and distilling everything in it, and dropping the PDFs into another random folder, when I boot up the program?

    Acrobat Distiller 9, upon boot up, will sometimes just pick a random folder on my Mac or on a network drive over our server and start distilling all the files within that folder. Then if the files convert to a PDF, it will move them into another random folder of its choice. It's like the Distiller is creating its own set of Watch Folders without my consent or permission. All I do is start up the program when I log onto my Mac. When the program finishes booting up, it just connects to a completely random folder and starts distilling. It never connects to the Watch Folders I have created, just connects to whatever it wants when it boots up.

    Certainly weird, but you might want to post in the Acrobat forum as you aren't using Distiller Server (discontinued and never available on Mac).
    Best not to set up watched network folders, there's no way to force a mount to be done, and Distiller is not for sharing anyway.

  • HT3842 Does iTunes store the original music file and copy it into a separate folder? If i delete the original file from finder will it remove it from my iTunes library?

    Hi, on my last PC when transferring music to my new MacBook Pro i noticed i had about 6 duplicated of each song in every album i took hours in removing them.
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    If i delete the original file from finder will it remove it from my iTunes library or vice versa. I didnt want to lose any music like i have some how managed to on my old computer.
    Or should i keep both files of it in the Music folder and also iTunes library folder?
    Which is best ?

    DrewPowell wrote:
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    It does both at the same time.
    When you add files to iTunes, it copies them into /Music/iTunes/iTunes media/ folder. The original file remains where it was.
    You can drag a file to /Music/iTunes/iTunes media/Automatically add to iTunes/ folder.
    This will add to iTunes and move it to /Music/iTunes/iTunes media/.
    I keep a shortcut of this folder on my desktop then simply drag files to the shortcut to add to iTunes.
    Then there are no "extra" files around.

  • Every time that I play a tune from my itunes the file duplicates itself into my 'MyDocuments' folder. If I delete this the song is erased from itunes totally. Ideas??

    Everything worked fine for the last two years but now every time that I play a tune from my itunes the file duplicates itself into my 'MyDocuments' folder. If I delete this the song is erased from itunes totally. Ideas??

    You are of course deleting the tunes from within the iTunes interface.
    The settings that I am referring to are your device settings for the iPad. It should show in the left column of iTunes when your iPad is plugged in.
    Go through your playlists and make sure that the tunes(s) are removed from any playlist. You can prevent the sync as noted above then do a sync and the iPad should update with the content from you Mac.
    MJ

  • How can I open a PDF into an iBooks folder other than PDF folder?

    How can I open a PDF directly into a folder in iBooks other than the PDF folder?  I have different folders made and am currently having to open into the PDF folder and then move to the correct folder. Can I open directly into the needed folder? 

    No, I don't think so. The pdf isn't capable of knowing which folder you would like it to open in – all it knows is that it is a pdf. It's up to you to put it in the appropariate folder.

Maybe you are looking for

  • Business Event Imparts with Skills (GAP UPDATE)

    Dear Experts, If the Business Event Imparts with Skill; does skill gets automatically updated once course attended by an employee? If <b>YES</b> – please explain what is required to be done to achieve this. Thanks in advance for all your efforts & I

  • Problems in RFC Adapter

    Hi All, I'm using RFC adapter to send messages to XI. The import parameter of the RFC is a very complex structure. One of the embedded strcuture contains a table. During runtime, if I use "APPEND line TO tale" statement to fill that table in the clie

  • Incorporating Canon's DPP Picture Styles in LR

    I'm currently using Canon DPP for RAW conversion, but I'm really liking the the UI and workflow capabilities LR BETA is offering up so far. With Canon DPP, I can choose and apply any one of several Canon preset "Picture Styles", which I think is a gr

  • "Could not start Agent" with SunMC 3.6.1 on Red Hat Enterprise release 4

    Hi everyone, I'm trying to install the Linux agent from the SunMC 3.6.1 installation dvd on a RedHat system (kernel 2.6). The installation seems to go fine, but while seting up the agent I recieve the following eror: /opt/SUNWsymon/base/sbin/xget: er

  • What web templates come with creative cloud subscription

    What webtemplates comes with creative cloud subscription?