File copy through  cl_gui_frontend_services= file_copy

Hi,
   Can I use
call method cl_gui_frontend_services=>file_copy
    exporting
      source      = filenam
      destination = ifile2
      overwrite   = abap_true
    exceptions
      others      = 13.
for copying file from local machine to folder which is created on server.
thanxs
Pratibha
Edited by: pratibhas on Jan 15, 2010 12:46 PM

Hi,
You will not be able to use CL_GUI_FRONTEND_SERVICES. U can use FILE_UPLOAD ui element to upload the data from local system to the internal table.
Rangananthan

Similar Messages

  • File copy CL_GUI_FRONTEND_SERVICES-FILE_COPY and WS_FILE_COPY

    Hello
    I have an existing program which uses FM WS_FILE_COPY to copy file from presentation server to destination server.
    This function modules return code is 1.
    Need to investigate what is the reason for return code <> 0.
    Have also tried the method CL_GUI_FRONTEND_SERVICES-FILE_COPY this returns 5 --> access denied...
    Can anyone help me to find what the problem is ...
    Thanks!!

    Hi ,
    That means you do not have the permission.
    Please find the series of errors you will get by using CL_GUI_FRONTEND_SERVICES-FILE_COPY
    No     ERROR_NO_GUI     Description
    1     CNTL_ERROR     Control error
    2     ERROR_NO_GUI     No GUI Available
    3     WRONG_PARAMETER     Incorrect parameter
    4     DISK_FULL     Disk full
    5     ACCESS_DENIED     Access Denied to Source or Destination File
    6     FILE_NOT_FOUND     Source File not Found
    7     DESTINATION_EXISTS     Destination Already Exists
    8     UNKNOWN_ERROR     Unknown Error
    9     PATH_NOT_FOUND     Path to Which You Want to Copy File(s) Does not Exist
    10     DISK_WRITE_PROTECT     Disk Is Write-Protected
    11     DRIVE_NOT_READY     Disk drive not ready
    12     NOT_SUPPORTED_BY_GUI     GUI does not support this
    Regards,
    Adil

  • Save a copy of file sent through FTP Send Port

    How can we save a copy of the file sent through an FTP Send Port?
    Here are the details of the scenario:
    1. I have an Orchestration which after processing, creates a Flat File
    2. Orchestration has a Static One Way Send Port with specify later
    3. FTP Send Port is bind to the orchestration
    Problem is, I don't want to create an extra file send port in the orchestration.
    Requirement is:
    When orchestration send the flat file to FTP, I want a copy of the file in a local file location.
    BizTalk Specialist

    Create a Send Port Group with the two ports in question and bind your orchestration to the Group.
    Alternatively you can leverage the BizTalk Archiving Pipeline component from codeplex at
    http://biztalkarchiving.codeplex.com/ and use this pipeline on your existing send port.
    Regards.

  • Runtime Error : cl_gui_frontend_services file_copy

    Dear Experts,
    I am using the method cl_gui_frontend_services=>file_copy to copy file from one location to another location.
    But when either of the input parameters are invalid, the program throws a short dump like path_not_found, access_denied, file_not_found.
    I think internally, the program calls raise satement.
    How to handle these exceptions in order to avoid runtime errors/short dump?
    Is there any exception class for all these type of exceptions?
    Thanks in Advance

    Hi,
    You may use ST22 and check which exception is beign raised under which scenarion.
    Once you are ready with list of all Exceptions keep the Method call in TRY. ENDTRY. Block
    and after the Method call use Catch Exception to catch all the possible exception into their Class Reference.
    Thanks,
    Preyansh

  • Problem with UTL FILE COPY

    Hi,
    I am facing one small problem in UTL FILE COPY package. We have an automated scheduled batch process. As a daily batch process it moves the files from one folder to other. During movement, it first copies the file from source folder to destination folder using FILE COPY package and then removes the file using FILE REMOVE package from the source folder.
    Few cases are found that the file when files are copied they are copied as 0 bytes in destination folder but the source file had 1 MB file size. The interesting part is I am unable to replicate the issue. Means when i try to run once again the package its working properly and files are copied with correct size. This kind is issue is occuring very rarely though as once in month but the question is why FILE_COPY package is not working properly sometimes.. I am unable to understand.
    Thanks a lot for going through this. Any suggestions.
    Regards,
    Ashish

    Anyhow make sure that the copy will start after the full generation of files.
    You can think like a spool file generation with huge data. In that case initially spool file available with 0 byte only. After finish of query only it shows its actual size.

  • Is it possible to have media files copied to a new location as you import them into a project?

    I have roughly 800gb of footage i've taken over the past 2 years of traveling, and I am making a single video montage... The files are located on an external drive, making them slower to work with. I have a 1tb ssd but not enough free space to copy all the files to it for sorting. What i want to do is have the files copy over to the SSD as i add them to the project, so that only the footage i'm going to use gets copied over to the SSD. The only way i can determine if i am going to use the footage or not is to scrub through and mark Ins and Outs in premiere...
    So i guess my question, in the simplest terms i can ask is, Is there a setting in Premiere, like the project manager tool which allows you to consolidate used media files to one destination, but one that will consolidate files as you add them to the project? or could i do this manually by repeatedly using the project manager tool to consolidate files periodically?
    Hope that makes sense...
    Oh, and yes, i have considered other methods to my madness, like reviewing the footage outside of premiere before deciding if i will use it or not, frankly, i have over 4000 pieces of footage and it's just much faster to scrub through them in premiere than to open each one in vlc to review. It's also much more convenient to mark my ins and outs as i review the footage, so premiere is my only option.
    Thanks!

    You can easily (and better, IMHO) do what you want in Adobe Prelude.  It's part of the CC subscription, and may have been included with CS6.
    Open the Ingest panel, navigate to the external drive where you have your source clips, make the thumbnails in the Ingest panel comfortably large, click a video clip to enable scrubbing, and use the J-K-L keys to navigate playback through the clips.  Put a check mark on the clips you want and be sure to select and set up the Transfer option on the right side of the panel before ingesting.  Don't select the Transcode option.
    Cheers,
    Jeff

  • File copy speeds to CSV vs non-CSV

    I'm working on bringing up a 2012 R2 cluster and doing a basic test.  In this cluster, I have two adapters for iSCSI traffic, one for network traffic, and one for the heartbeat.  Cluster node has all the current updates on it.  Everything
    is set up correctly as far as I can see.  I'm taking a folder with 1GB of random files in it and copying it from the C: drive of a node to an iSCSI LUN.  If I have the LUN set up as a non-CSV disk, the copy happens about three time faster than if
    I have it set up as a CSV disk.  All I'm doing is using FCM to change the disk from CSV to non-CSV (right-click, Remove from CSV, right-click, Add to CSV).  I can swap it back and forth and each time the copy process is about three time slower when
    it's a CSV.  Am I missing something here?  I've been through all the usual stuff with regard to the iSCSI adapters, MPIO, drivers, etc.  But I don't think that would have anything to do with this anyway.  The disk is accessed the same with
    regard to all that whether it's CSV or not, unless I'm missing something.  Right now, I only have a single node configured in the cluster, so it's definitely not anything to do with the CSV being in redirected mode.
    I'm not trying to establish any particular transfer speed, I know file transfers are different than actual workloads and performance tools like iometer when it comes to actual numbers.  But it seems to me like the transfers should be close
    to the same whether the disk is a CSV or not, since I'm not changing anything else. 

    Which system owns the CSV?  If the system from which you are copying does not own the CSV then all the metadata updates have to go across the network to be handled by the node that does own the CSV.  If you are copying a lot of little
    files, there is more metadata.
    Actually, metadata updates always happen in redirected IO from what I'm reading, that has been the part that I was missing.  This explains it. 
    https://technet.microsoft.com/en-us/library/jj612868.aspx?f=255&MSPPError=-2147217396 "When certain small changes occur in the file system on a CSV volume, this metadata must be synchronized on each of the physical nodes that access the
    LUN, not only on the single coordinator node... These metadata update operations occur in parallel across the cluster networks by using SMB 3.0. "
    So a file copy, even when done on a coordinator node, does the metadata updates in redirected mode.  Other articles seem to say the same thing, though not always clearly.  So it's still accurate to say that a file copy isn't the best way to measure
    CSV performance, but there doesn't seem to be a lot of pointing to the (I think) important distinction regarding how the metadata updates work.  From what I can see, that distinction is probably trumping anything else such as who is the
    coordinator node, CSV cache, etc.  For me anyway, it makes a 3X performance difference, so I think that's pretty significant.  

  • Has anyone else had Mountain Lion 10.8.2 file copying trouble?

    Has anyone had any trouble with file copying to external disks?
    I have used a third party programme called "Synchronize! Pro X" (SyncPX) for many years with OS X up to 10.5.8 and it has never given any trouble at all.  In July I bought a new MacBook Pro 15", upgraded to 10.8.1 and bought the latest update for SyncPX (6.5.1).  This worked perfectly as far as I know until I downloaded the 10.8.2 Mountain Lion upgrade about a week ago.
    The symptoms are:
    1) When files are copied in backup mode (running as a single user, updating only files that have changed) to an external disk using Firewire, a high percentage of them do not have their file information copied correctly.  The "Last modified" date is often set to the time that the copy was made rather than being replaced with the  "Last modified" date from the source file.  Also, "further information" is sometimes not copied.
    2)  When files are copied in "Full bootable backup" mode (SyncPX runs "as root", copies files from ALL users and tries to set owner and group to be same as source file), the same symptoms as in (1) occur, but also SyncPX hangs right at the end of copying.  Sometimes it says "Updating dyld cache…", sometimes "Updating aliases…".  When this happens it is impossible to halt SyncPX except by forcing a quit, and then the external disc is not released so that it cannot be ejected except by forcing a shutdown.  In that case the external disk usually needs repairing.  The errors are always "incorrect number of extended attributes".
    I have tried lots of things.
    a) Restart
    b) Reformatting the external disk and starting over.
    c) Reinstalling the system (after checking and repairing the main system disc), followed by (b)
    d) Turning off indexing for the external disc
    e) Repeating the test with a different external disk (to make sure it's not down to a faulty external disk)
    f) I have looked at Console logs but they do not indicate anything odd going on.
    None of this makes any difference.  By contrast, a straight drag and drop copy from Finder works with no errors.
    At this point you probably think the errors are SyncPX's fault.  But:
    i) The same version of SyncPX worked until 10.8.2 was released
    ii) If the destination disk for a SyncPX backup is a network disk, everything works OK.
    I started by taking the fault up with SyncPX's developer, Qdea.  One other user had noted a fault similar to (2).  Qdea maintain that there's nothing wrong with their code, and blame Apple's disc drivers.
    On balance I think Qdea could be right, or at least Apple have changed some specifications but not told the developer world.
    I haven't yet tried to take this up directly with Apple (through AppleCare) as I think they will probably wash their hands of it and blame the developer.  The point of this post is to see if anyone else has had a similar problem, perhaps with different software, and if there is anyone with sufficient experience to give advice on how to take this forward.  Is the case for an OS bug convincing or do others feel it's a fault with SyncPX alone?  If so how does one explain its perfect behaviour until 10.8.2?
    What steps can I take to pin this down further?  All advice and comments will be gratefully received..

    RobertDHarding wrote:
    At this point you probably think the errors are SyncPX's fault. 
    And you would be right.
    I started by taking the fault up with SyncPX's developer, Qdea.  One other user had noted a fault similar to (2).  Qdea maintain that there's nothing wrong with their code, and blame Apple's disc drivers.
    What steps can I take to pin this down further?  All advice and comments will be gratefully received..
    Dump Qdea for someone who knows how to write Mac software.
    1. Qdea displays the following logo: . This is a pre-MacOS X logo.
    2. Qdea displays the following review:
    MacFixit had a good reputation, if you are old enough to remember when it used to exist.
    3. Qdea provides download links to SynchronizeX and version in French, German, and Japanese. Apparently they don't know that Mac software can be localized into a single executable.
    I'm sure there are any number of similar utilities available, all of them cheaper than SynchronizeX's $99.99 price.

  • MacBook slow Wifi (file copying)

    Hi there,
    I'm running a 802.11n 2,4GHz Wifi at home. My Mac Mini (2011) and Macbook (2007, white) connect to my network using it. My server is connected through gigabit LAN.
    Using my Mini I get very decent speeds copying files, a 700MB file takes just a few seconds to copy. But using my Macbook speeds are incredibly slow.
    The same file takes minutes to copy.
    I've tried changing the Wifi channel and also the router without success. It seems to be a problem with my MacBook. It's running 10.6.8. Had 10.7.4 installed before, wasn't better. The Mini of course runs 10.7.4.
    I also remember connecting the MacBook to a friends Wifi in 2008 who already had 802.11n and it was ultra fast. So it should be able to handle it.
    Any ideas on how I can get better speeds?
    Tried several channels, no interferences, signal is full bars on both machines which are sitting next to each other by the way. So no physical objects blocking the MBs wifi. Also did a clean install on 10.6.8.
    Help!?

    Thank you for your reply.
    I think we have the very same Macbook.
    As yours mine is maxed out with 4GB of installed RAM, where 3GB can be addressed. Same specs as you see.
    Also I'm not running anything except Finder when testing. Currently there's plenty of RAM free. With Safari, Mail and iTunes open I still have 800MB free.
    I'm going to install Leopard or even Tiger on a spare partition, just for testing..
    By the way, did you try Lion? Even in 10.7.4 I had Wifi drops on wakeup plus the same slow file copying speeds..

  • Why memory card files sent through PC suite cannot...

    Any files I transferred onto the memory card through PC Suite and USB cable does not show up when I plug the memory card into my computer's card reader. The same happens vise versa. Why is that?
    Solved!
    Go to Solution.

    1. Use File Transfer mode instead of PC Suite.
    OR
    2. Use the card reader to transfer files.
    OR
    3. Check with PC Suite File Manger that the files are indeed in the folder.
    AND
    - Wait until the files are copied. Just because Windows showed the files copied doesn't mean they've copied. You should see a PC Suite pop-up window showing that the files are actually being copied.
    OR
    4. Don't use PC Suite
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Any solutions to Apple's poor file copy function

    For many years Apple's OS - all versions on all computers does not have the intelligence to copy files from drive to drive.  Does anyone know of a different software program that can help the Apple OS do this simple task?
    A little more info - I have never been able to get any Apple product - all the way back to System 7 to be able to copy files unattended.  The latest annoying problem comes from a need to move files from my Thunderbolt 1 TB SSD drive to an attached Toshiba 2TB drive.  I have a folder with about 1500 photos that I need to move from the SSD to the Toshiba drive to clear up space on my SSD drive.  I am using my MB Pro with OS 10.9.5 with 16 GB ram and a 1 TB internal SSD drive and it does not matter if I select 5 files or 500 files, it never gets more than 20 files into the copy and then very stupidly thinks some random file is in use.  No Apple OS has the intelligence to think that if this one file can't be copied at this time, that it should continue the copy operation.  The copy process shuts down then I have to look file by file to see which files it did successfully copy.  Then delete the files on the drive and select another 50 files and get another 4 or 5 copied and then do it again and again and again and again, etc... 
    I have the same problem using my Mac Pro workstation with 32 GB ram, the same problem on all 4 of my MbPro notebooks.  The problem is 100% within Apple's OS.  Obviously none of the files are ever in use.  Also, rebooting the computer does not change the situation.  Problem has existed since my PowerMac 8100/80.  It would be nice to see Apple address this problem or someone else write a basic file copy program that works.
    Thanks
    George

    Mark
    Appreciate your observations but there are a couple of issues at point
    #1 - The OS incorrectly thinks a file is in use when it is not.  It does not matter if I select and copy or drag and drop.  Minutes later the same file will usually copy.  Does not matter if it is an image from the iphone or a word doc or excel file or a video file.
    #2 - The OS is incapable of continuing a copy function when it has incorrectly told itself that a file is in use.  A superior file copy function would flag the error and continue copying.  No idea why Apple has not fixed this about a decade ago.  It has to be deeply embedded in their system software.
    The issue is the same if it is with an original Mac Pro copying between internal hard drives or involving external hard drives or a NAS drive.  It has plagued me for a very long time.  As I find hard drives that I want to move everything off of so I can reformat or replace I have to go through this painful ordeal which involves initiating the copy function hundreds of times.  I have almost finished copying 657 photos that were copied from my iPhone to the SSD drive and I wanted to get them off the SSD drive.  It took several hours yesterday and I have been at it for about 4 hours tonight.  It sure seems like it should be as easy as dragging the folder from one drive to the other and it would be if there was some way to disable that stupid "file in use" error in the Apple OS.
    Thanks
    George

  • File Copy Operation

    Hi,
    I am developing a desktop application that needs a file copying feature. I basically need to copy mp3 files from a PC drive to another external drive that is connected to my PC through a USB Port...this external device is USB2.0 compatible. Currently I have coded a simple filecopy thread using Buffered Reader/Writer. The operation for a 6 MB file takes about 6.3 secs, but the same operation in C took me about 1.4 seconds. I am wondering if this is the best speed I can get using Java...and if so should I switch to using C and writing a JNI wrapper around the C function.
    Please suggest me on a suitable course of action.

    I have been investigating the use of buffered streams
    in network transfers (bigger files than mp3s though)
    and i have noticed that the size of the buffer as in
    byte [] buf = new byte[8096];makes very little difference, Yeah it is fun benchmarking.........what i observe is that as we increase the array size the time taken also reduces but then there comes a point (of inflexion?)at which u get a best speed and beyond that any increase in the array size does not make any difference...has anyone observed such a thing??
    Anyway I equalled/beat the C code...and I am just happy for that!!!!!

  • Multithreaded File Copy takes more time 1.5 times than single thread.

    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.nio.channels.FileChannel;
    public class TestMulti implements Runnable {
         public static Thread Th1;
         public static Thread Th2;
         String str = null;
         static int seqNumber = 1000000000;
         public static void main(String args[]) {
              Th1 = new Thread(new TestMulti("1_1"));
              Th2 = new Thread(new TestMulti("1_2"));
              Th1.start();
              Th2.start();
              try {
                   Th1.join();
                   Th2.join();
              } catch (Exception e) {
                   e.printStackTrace();
         public TestMulti(String str) {
              this.str = str;
         public void run() {
              File f = new File("C:/Songs2/" + str);
              File files[] = f.listFiles();
              String fileName = "";
              String seqName = "";
              String seq = "";
              int sequenceNo = 0;
              try {
                   for (int j = 0; j < files.length; j++) {
                        File musicFiles[] = files[j].listFiles();
                        for (int k = 0; k < musicFiles.length; k++) {
                             seq = "18072006";
                             seqName = seq + seqNumber;
                             sequenceNo = 10000 + seqNumber % 100;
                             seqNumber = seqNumber + 1;
                             fileName = musicFiles[k].getName();
                             String fileExt = fileName.substring(fileName.length() - 3,fileName.length());
                             String targetFile = "C:/Songs1/" + sequenceNo;
                             File fi = new File(targetFile);
                             if (!fi.exists()) { fi.mkdir(); }
                             targetFile = "C:/Songs1/" + sequenceNo + "/" + seqName+ "." + fileExt;
                             FileInputStream fin = new FileInputStream(musicFiles[k]);
                             FileChannel fcin = fin.getChannel();
                             FileOutputStream fout = new FileOutputStream(targetFile);
                             FileChannel fcout = fout.getChannel();
                             fcin.transferTo(0, fcin.size(), fcout);
                             fout.flush();
                             fcout.close();
                             fcin.close();
                             fout.close();
                             fin.close();
              } catch (Exception e) {
                   e.printStackTrace();
    Multithreaded File Copy takes more time 1.5 times than single thread.
    Is there any issue with this code. Please help me.

    If all of your threads are doing CPU-intensive work, or all are doing I/O to the same interface (for example, writing to the same physical disk), then multithreading would not be expected to help you.
    Multithreading does not magically make your CPU able to do more work per unit time than it could otherwise.
    Multithreading does not magically make your network interface or disk controller able to pump more bytes through than it could otherwise.
    Where multithreading helps (some or all of this has already been mentioned):
    * When you have multiple, independent CPU-bound tasks AND multiple CPUs available on which to execute them.
    * When you have tasks that involve a mix of CPU-bound and I/O-bound work. The CPU-bound stuff can crank while the I/O-bound stuff waits for bytes to be written or read, thus making use of what would otherwise be CPU "dead time."
    What you're doing does not fit either of those scenarios. Copying a file is pure I/O. If the source and destination file are on the same phsyical disk or controller, adding threads only adds overhead with no real possibility to do more work per unit time.
    If your source and destination are on different disks or controllers, then it's possible that you could get some benefit from multithreading. While one thread is waiting for bytes to be written to the target disk, the other thread can be reading from the source disk.

  • File copy of large file fails.

    I am trying to copy a large file, say "file.txt", from an external drive to my hard drive. The size of the file is 140 GB. I have tried twice, and both times the copy operation has stopped (after a couple of hours and 135 GB) with the message: "Operation cannot be completed. File already exists." The only file named file.txt that exists at that time is the partial one that was copied.
    What's going on and how can I perform the file copy?
    Thanks!

    Can you tell me if the external drive (for any of the respondents) was NOT formatted with a Mac partition? Instead something like NTFS or FAT?
    The file transfer failure issue is a recurrent frustration to a lot of users for many iterations of the Finder. Either through singular large file transfers or through multiple files (thousands) that in total are large in size.
    I am speculating that the issue arises from files being transferred between storage locations of differing formats or in the case of internet based storage varying file translations. In part this speculation exists because I do not seem to experience this issue if the drives are all Mac OS Extended (Journaled).
    Just looking to confirm your configuration.

  • Need guidance on file-copy .otl file.

    I created ASO application with only dimension and members.I need to create the same outline through File-copy method.i copied the .otl in to c:/oracle......./essbaseserver/app/.
    Now i am able to see only dummy outline.If i right click on database and proview data.I am getting error and can't preview dimension and members.Any additional files to be copied in to that directory.
    Even my next task is to load the data in to the dummy outline which consists of dimensions and memebrs only.

    Since there's not much background here, my answer will be very basic.
    If you want to copy an existing outline and paste it to a different database, you must first create the new application and database in EAS.
    It will create a directory such as c:/oracle......./essbaseserver/app/newapp/newdb.
    Once the application is created, stop the new database.
    Paste the .otl file into the newdb directory with the same name as the database, i.e. in the above example it should be named newdb.otl.
    Restart the database.
    You should be off to the races.
    Alternately you could open the outline in EAS, do "save as", and overwrite the outline in the newdb. Or use the Migration Wizared in EAS.
    By the way: None of these will allow you to see data. You will have to load the new database separately.
    Hope this helps,
    Tim Young
    Edited by: tyoung358 on Jul 9, 2012 7:21 AM
    Edited by: tyoung358 on Jul 9, 2012 8:21 AM

Maybe you are looking for

  • HTTP 500 internal server error with jsf pages in OC4J 10.1.2

    Hi all. I am trying to use the Sun RI o fJSF1.1 together with a standalone OC4J 10.1.2. My jsf pages are not being displayed. Any clues.

  • SQL Server 2012 Transactional Replication with updateable subscriptioins

    Hi All, It is heard that Transactional Replication with Updateable Subscriptions is deprecated in SQL 2012 so it is not possible to configure through the wizards but we can still configure it by using T-SQL Script. Would you please share that script

  • Technical Support in Turkey

    I bought my phone 3 months ago from greece and I am in turkey now. I can not find any support here that will repair my phone via guaranty. My phone problem is that I can not hear caller.Please Help!

  • 10.6.7 Update No sound   5 mins to boot!

    Updated from 10.6.6 to 10.6.7 last week and lost sound. There's now no input or output options in the sound control panel and the Mute checkbox is greyed out but 'Mute' in checked.  It's as if the OS sees no sound drivers or no sound hardware now Can

  • Thumbnails in new CS6 PS6

    I've been trying to post this so if it gets posted twice, sorry. Just installed my new CS6 PS6 and does anyone know where the thumbnail view is? I have to use Bridge to see the thumbnails which adds an extra step. I know the thumbnail view is probabl