How ot move an flat file from one location to another

Hi all,
My requirement is that i am having a flat file in my C drive(ex:- C:\123.txt) i have to move that file into One of the folders of the My Netqork places using ABAP Programing
How can i do this...Can we do this using OPEN DATASET   Plese give me sample code if having
Regards
Ajay

Hi Ajay,
  There is no need for using Open Dataset.
First you upload your text file using GUI_UPLOAD  from the present location.
Then you download the file using GUI_DOWNLOAD into the required location(Netwrk Places).
Check this link for GUI_UPLOAD and GUI_DOWNLOAD.
http://abaplovers.blogspot.com/2008/03/function-modules-guiupload-guidownload.html
If you are moving it onto Application Server, then go for
Open Dataset
Check this link for Open Dataset:
http://help.sap.com/saphelp_40b/helpdata/ru/34/55cad198482bc0e10000009b38f91f/content.htm
Hope this helps you.
Regards,
Chandra Sekhar

Similar Messages

  • Can someone tell me how to move an iweb file from one mac to another?

    I was told by a mac genius a year ago but I can't remember how it was done.

    On one computer, choose Go to Folder from the Finder's Go menu, provide ~/Library/Application Support/iWeb/ as the path, and move the Domain item inside to the corresponding location on the other computer.
    (56486)

  • How to copy file from  one location to another

    Hi,
    I am new to java, I tried the following code to move the file from one location to another
    public class CopyFiles {
    public String copy ( File source, File target)
    throws IOException {   
    FileChannel sourceChannel = null;
    FileChannel targetChannel =null;
    try {   
    sourceChannel =new FileInputStream(source).getChannel();
    targetChannel= new FileOutputStream(target).getChannel();
    targetChannel.transferFrom(sourceChannel, 0,
    sourceChannel.size());
    finally {   
    targetChannel.close();
    sourceChannel.close();
    return "Success";
    public static void main(String [] args) throws Exception{   
    File source = new File("C:\\users\\download.pdf");
    File destinationFile = new File("C:\\apple\\download.pdf");
    copy(source, destinationFile);
    The above code is working perfectly, but I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.

    kameshb wrote:
    I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.It's not totally clear what you're saying here, but what I think you mean is that you don't want to explicitly set the destination file name--you want to just give the copy the same name as the original. Yes?
    If that's the case, then break the original up into separate directory and file name portions, and then construct the destination path from the destination directory plus original file name. You can do that by manipulating the full path string, or by using the methods in java.io.File.

  • Copy File from One Location to Another Location through xcopy or any

    Hi,
    I Need to copy one file from one location to another location. That file need to save in C:\Windows\System32 folder
    I need to create one .bat file and i want apply that bat as a startup script through GPO.
    I tried through XCopy if i test in machine that is working. If i tried in other machine that is not working. becoz of some Credential issue
    I tried in the script by netuse command after that my script itself not working.
    SET username=XYZ\Administrator
    SET password=abcd
    @ECHO OFF
    cmd "cd C:\"
    net use "\\10.50.5.68\c$\Windows\System32" %password% /user:domain\%username%
    :copy
    Xcopy /S /I /E D:\DLL \\10.50.5.68\c$\Windows\System32 
    Regards, Hari Prasad.D

    You cannot do that in a startup script.  You do not need to do that in a startup script.
    To add files to the system use GP Preferences.
    On Window 7 and later only the Trussted Installer is allowed to add files. (That means only Microsoft.)
    No programs or users should ever alter files in the system area.
    ¯\_(ツ)_/¯

  • How to move tables with data from one client to another

    Hello friends
    I have 2 clients 001 and 002.
    I have created a table with lots of data on client 001.
    I have to get the same table on 002 also with the same data.
    Is there an easier way of transfering this data from one table to another?
    I would appreciate any feedback on this.
    I know that mappings etc., can be done using the export and import of tpz file. So I want to know if there is any similar thing to transfer a table with data.
    THanks
    Ram

    hi
    thanks for the response
    We are working on a sandbox system for demo purpose.
    Actually we have two different group of people using two different clients created on the same server.
    Our group is using client 001 and another group is using client 002.
    We don't want the changes that one group does to the table to affect the other.
    Our group has created a z-table and have entered considerable amount of data.
    However, the other group also need to create the same table with the same data.
    So to avoid double work, we were trying to see if there is a way to copy the table with data created on 001 to 002.
    Any suggestions / feedback will be greatly appreciated.
    Thanks
    Ram

  • How to copy a file from one location to another ???

    Hi,
    I have a file ('D:/Pictures/1.jpg') and I want to copy this 1.jpg file to a location called 'D:/Folder1'. I tried the WebUtil_File.copy_file function, but it does not work. it returns false boolean.
    I am using windows xp and oracle 10g.
    The webutil configurations are also completed.
    This D: drive is the one which has oracle 10g application server installed.
    Am I doing anything wrong or missed?. I need to complete this urgently. but it does not work.
    Or any other way to copy a file from one place to given any path?. After this I have to renaming (may be using Rename_File function) the copied file. Please advice me.

    An alternative could be HOST command, that calls OS prompt to run a command in the server and then return the focus to the Forms:
    HOST ('copy D:/Pictures/1.jpg D:/Folder1/1.jpg');
    Edited by: Kleber M on Sep 9, 2011 12:38 PM

  • How can i transfer iweb files from one computer to another?

    Hi,
    Recently my harddrive crashed and i had to rebuild my computer. I retreived most of my files but i cannot find where my iweb files are located. Does anyone know where iweb saves files or how to retreive my domain files from the web (if at all possible)?
    Thanks

    AYetis wrote:
    Could there be other location for the iWeb files?
    Unless you moved the Domain file, that's its default location. Make sure you're looking in the Library folder in your Home folder rather than Macintosh HD. See also THIS recent post.

  • How do I move my OS files from one drive to another on a Mac Mini server

    My main drive on my Mac mini is dying so I need to move all my files, including the OS, to the other drive.  Do I just copy all the files over then delete the old ones and reboot?

    The disk that was the "Lower" is the one you cloned to. When you clone, the name of source disk is copied with the contents to the target disk.
    The lower HD is the one closest to the bottom of the Mini.
    http://www.ifixit.com/Guide/Installing+Mac+Mini+Late+2012+Dual+Hard+Drive+Kit/11 713Thus if you cloned the bad drive, the bad drive is in the lower location.
    This says how to replae the lower drive.
    Are both drives identicatal drives (except for SN)? If not maybe y could comfirm by that.
    Also, how was it failing? The If it SMART errors you can tell in there are any SMART errors idenfied for that disk in Disk Utilty.
    Further, if you go to Disk Utility and click on the HD itself, not Server HD, that will say upper or lower in bottom left

  • How to move all app data from one user to another? (One mac)

    Hi. I've been having this problem for a while. So recently, I've made a new account for myself, since I was using my mom's user account. I don't want to keep all of my files, emails, and icloud on her user, since it's used by everyone in my family. I use iMail now because hotmail blocked my email because "Someone hacked me" and they kept it locked for all these months, and I can't give enough proof to show it was mine, since I forgot every email I've sent now.
    And iMail is pretty cool, adding your own rules and stuff. Except you don't need a password to log in. I just deactivate my iMail via system preferences as a log-out, and then re-activate it as a log-in.
    So, back to the question.
    How can I move ALL app data from my mom's user account to my new one? Her acount also has pictures of our germany vacation. So not every file.
    You see, I game on my mac mostly because steam is really complicated, using internet just to play a game that doesn't need internet and stuff.
    And steam doesn't have a lot of casual games.
    So I want to move my game data, save files and every little piece of application info that my games have on my mom's account to mine. I've asked this question on Yahoo answers, and all I got was an answer of "File IS data, or datum itself, You are wrong. I cannot give you an answer." -.-
    I'm not experienced with terminal either, so I'll need a ton of explanation of how to use it if that's how it can be done. It really really confuses me and I'll just give up.
    Thanks in advance.
    Oh and, side question, When will OS X Mavericks be open to public and how much will it cost?

    Nour j wrote:
    Oh and, side question, When will OS X Mavericks be open to public and how much will it cost?
    http://www.apple.com/osx/preview/
    Will be released sometime in the fall.  Cost unknow at this time as Apple has not released this info to the public.

  • How to to transfer protected files from one computer to another

    i was wondering how to transfer protected files from my small computer and delete them to free up space and put the on my new larger comptuer.

    Locate them in the Windows Explorer, move them to the new computer as you would any file, and then drag them into the open iTunes window. They can then be deleted from iTunes on the old computer.
    (43823)

  • Move a image file from one drive to another drive in Presentaion Server

    Hi,
    My business requirement is to move a image file which is in C:\ drive to another Drive ( Common Drive ).
    So I  need to that through programming.
    Kindly help me in this regard.
    Thanks
    Arbind

    Hi Arbind,
    <li>The logic is here.
    <li>Change the folder names and execute the program accordingly.
    REPORT ztest_program.
    DATA: wa_pfile  TYPE file_table.
    DATA: it_pfiles TYPE STANDARD TABLE OF file_table.
    DATA: count     TYPE i,
           dir       TYPE string VALUE 'C:\Venkat1\',
           source    TYPE string,
           dest      TYPE string.
    START-OF-SELECTION.
       CALL METHOD cl_gui_frontend_services=>directory_list_files
         EXPORTING
           directory                   = dir
           files_only                  = 'X'
         CHANGING
           file_table                  = it_pfiles
           count                       = count
         EXCEPTIONS
           cntl_error                  = 1
           directory_list_files_failed = 2
           wrong_parameter             = 3
           error_no_gui                = 4
           not_supported_by_gui        = 5
           OTHERS                      = 6.
       LOOP AT it_pfiles INTO wa_pfile.
         IF wa_pfile-filename CP '*.JPEG' OR
            wa_pfile-filename CP '*.BMP'  OR
            wa_pfile-filename CP '*.JPG'.
           CONCATENATE 'C:\Venkat1\' wa_pfile-filename INTO source.
           CONCATENATE 'C:\Venkat2\' wa_pfile-filename INTO dest.
           CALL METHOD cl_gui_frontend_services=>file_copy
             EXPORTING
               SOURCE      = SOURCE
               destination = dest
               overwrite   = 'X'.
         ENDIF.
       ENDLOOP.
    Thanks
    Venkat.O

  • Can I move the Lightroom Catalog from one location to another?

    Lightroom by default, places the Lightroom Catalog in the Pictures folder on my PC. My image library though, is located on an external hard drive. I've read that it is better to have the Catalog at the same location to avoid disconnected images, which sounds reasonable. Is it feasable to move the Catalog over to the same drive as my image library, or will that cause a problem? In other words would I need to start over again and create a new Catalog on the external drive? I know this sounds like a dumb question, but I've learnt to my cost that the obvious solution isn't necessary the correct one. 

    For better performance it is preferable to have the catalog located on an internal hard drive. By default the catalog and the preview files have to be located in the same folder since there is continual read/write taking place while working in Lightroom. Lightroom does not make any changes to the original files so its fine for them to be located on another hard drive internal or external. Lightroom loves lots of hard disk space to operate so if your catalog is on an internal drive make sure it not starved for disk space.
    However its ok for your catalog/previews files to reside on an external HDD with your original photo files.
    Your photo files can reside on a HDD conected to a network but your catalog and preview files cannot be located on a network.
    e.g I have my catalog / previews on the main HDD with my operating system with over 50% free disk space. My Photo files are on a secondary internal HDD with over 75% free disk space. I back up to external HDD.

  • How to move your library files from one internal hard drive to another

    I have two internal hard drives on my computer, one 500GB SSD for games and other programs that require fast access, and one 2TB for more bulky items, like videos, music and back ups.
    The problem is that my SSD is pretty much full because my iTunes library location defaults to the "my music" folder which is located on the SSD, I would like to move the location of the iTunes library files to my 2TB hard drive in order to free up some space on my SSD (about 100GB).
    I have tried to set the destination of the library via the preferences in the extras tab but that just seems to copy the files rather than move them, so it still needs them on my solid state in order to play them.
    Please if there is a solution to this problem could you tell me
    Cheers

    Close iTunes.
    Move the ENTIRE iTunes folder from the current drive to it's new location.
    While holding SHIFT launch iTunes.
    Continue holding until iTunes prompts to create a new library or locate an existing library.
    Select the option to locate and point iTunes to the new location of the iTunes folder.

  • How do I copy selected files from one HD to another?

    To date, the only way I can do this is by copying the entire folder (or one file at a time). Does another program exist where I can copy groups of files rapidly?

    Select...Select All, Ctrl+C to copy the contents to the Clipboard, then in the other PSD image use Ctrl+V to paste the contents in on its own layer.
    Ken

  • How do I transfer all files from one mbp to another mbp

    I want to duplicate the mbp that I use at home to another mbp for work.
    How do I do it?

    try http://support.apple.com/kb/HT4889?viewlocale=en_US&locale=en_US

Maybe you are looking for