Problem in transferring file(presentation server) contents to internl table

Hi Experts,
      My requirement is to upload a file from presentation server and get the contents into an internal table then I need to update bespoke table based on the values of the internal table. I tried using both funtion module : WS_UPLOAD and GUI_UPLOAD but the data is not getting populated properly to the correct fields of the internal table.
Hence Could you please tell me the pre requisites which needs to be done before uploading the file.I mean the format of the file and the parameters to be passed to the funtion module.
I am also confused with the file extension( i.e of the input file name . Eg. Demo.txt ) with the Filetype ( DAT / BIN/ ASC ) option provided in the funtion modules for upload.
Thanks in advance.
Regards,
Srinivas

if it is .txt file follow below steps
CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = gv_file
        filetype                = 'ASC'
      TABLES
        data_tab                = gt_text_file
for this your text file should be
1234|field2| field3|.....
here field seperator is pipe symbol(|)
your internal table must be same as your text file
then use SPLIT command  and append your internal table..
LOOP AT gt_text_file INTO wa_text_file.
      CLEAR wa_text_table.
      SPLIT wa_text_file-line AT gc_pipe  INTO   wa_text_table-objectid
                                                                                wa_text_table-lifnr
Append internal table...
endloop.

Similar Messages

  • Reading a file on presentation server to binary data table

    Hi Experts
    I have to provide a 'Add attachment' functionality in my application and check in the attachments to DMS. Now the DMS check-in api expects the attachment file on presentation server in form of an internal table of binary data. Could you please suggest me any function module to read file data to a table of binary data.
    Thanks and best regards
    Anand.

    hi,
    Try this FM,
    C13Z_FILE_UPLOAD_BINARY – Uploads a file in binary format
    C13Z_FILE_DOWNLOAD_BINARY – Downloads a file in binary format
    Hope this helps, Do reward.
    Edited by: Runal Singh on Mar 17, 2008 12:56 PM

  • Problem in placing files in server

    Hello,
    I am working on applet to servlet communication. I have developed the code but I have problem in placing the files in the tomcat server. these are my files
    test.html
    test.class (applet)
    inter.class (bean implementing serializable interface)
    testser.class (servlet)
    I have placed test.html, test.class and inter.class in webapps/examples folder. I have placed testser.class in webapps/examples/web-inf/classes folder.
    So that i can now see the applet and applet pass values to bean. But my servlet is not called. Can any one help what is going wrong or where should i place the files?
    Thanks

    Hello,
    Here goes my source code files. All of them are working source files,
    I am a bit confused in placing them in the Tomcat server. Can anyone try and post the results please?
    i.e placing the files in the proper directories of the server.
    // Register.java
    import java.sql.*;
    public class Register implements java.io.Serializable
        // data members
        private String firstname;
        private String lastname;
        private final String CR = "\n";     // carriage return
        // constructors
        public Register()
        public Register(String afirstName, String alastName)
            firstname = afirstName;
            lastname = alastName;
              RegistrationServlet regser = new RegistrationServlet();
         public String getFirstName()
                 System.out.println("In getFirstName(): " + firstname);
              return firstname;  
        public String getLastName()
            return lastname;  
    // RegistrationApplet.html
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    import java.awt.event.*;
    import java.io.*;
    public class RegistrationApplet extends Applet implements ActionListener
         String browser;
         public void init()
              setLayout(null);
              setSize(438,536);
              label1.setText("First Name*:");
              add(label1);
              label1.setFont(new Font("Dialog", Font.BOLD, 12));
              label1.setBounds(48,60,116,27);
              add(textField1);
              textField1.setBounds(168,60,180,30);
              add(textField2);
              textField2.setBounds(168,96,180,30);
              label2.setText("Last Name*:");
              add(label2);
              label2.setFont(new Font("Dialog", Font.BOLD, 13));
              label2.setBounds(48,96,94,20);
              button1.setLabel("Submit");
              add(button1);
              button1.setBackground(java.awt.Color.lightGray);
              button1.setBounds(120,444,98,30);
              label11.setText("Applet to Servlet Communication");
              add(label11);
              label11.setFont(new Font("Dialog", Font.BOLD, 24));
              label11.setBounds(108,12,288,36);
              button1.addActionListener(this);
         public void actionPerformed(ActionEvent ae)
              if(ae.getSource().equals(button1))
                   firstname = textField1.getText().trim();
                   lastname = textField2.getText().trim();
                   try{
                   String toservlet = "http://localhost:8080/servlet/RegistrationServlet";
                   URL servleturl = new URL(toservlet);
                   URLConnection servletconnection = servleturl.openConnection();
                   servletconnection.setDoInput(true);
                   servletconnection.setDoOutput(true);
                   servletconnection.setUseCaches(false);
                   servletconnection.setDefaultUseCaches(false);
                   servletconnection.setRequestProperty("Content-type","application/octet-stream");
                   // sending the values to the serialised class "Register.java"
                   register  = new Register(firstname,lastname);
                   ObjectOutputStream outputtoservlet = null;
                   outputtoservlet = new ObjectOutputStream(servletconnection.getOutputStream());
                   outputtoservlet.writeObject(register);
                   outputtoservlet.flush();
                   outputtoservlet.close();
                   catch(Exception e)
                        System.out.println("in submit  "+e);
                        e.printStackTrace();
         String firstname;
         String lastname;
         java.awt.Label label1 = new java.awt.Label();
         java.awt.TextField textField1 = new java.awt.TextField();
         java.awt.TextField textField2 = new java.awt.TextField();
         java.awt.Label label2 = new java.awt.Label();
         java.awt.Button button1 = new java.awt.Button();
         java.awt.Label label11 = new java.awt.Label();
         String parameters;
         Register register = null;
    // RegistrationServlet.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.net.*;
    import java.io.*;
    public class RegistrationServlet extends HttpServlet
         public void doPost(HttpServletRequest req,HttpServletResponse res)
              ObjectInputStream inputFromApplet = null;
            Register aRegister = null;       
              try
                   inputFromApplet = new ObjectInputStream(req.getInputStream());
                   //"Reading data..."
                   System.out.println("Reading Data.......");
                 aRegister = (Register) inputFromApplet.readObject();
                   System.out.println("Completed Reading Data.......");
                   //close the connection after reading the data               
                   inputFromApplet.close();
                   // getting parameters from the serilized class "Register.java"
                   String first = aRegister.getFirstName();
                   String last = aRegister.getLastName();
                   ServletOutputStream sos = res.getOutputStream();
                   sos.println("First Name:"+first);
                   sos.println("Last Name:"+last);
              catch(Exception e)
                   System.out.println("in doPost()  "+e);
                   //e.printStackTrace();
    }Thanks

  • Problem uploading Dreamweaver file to Server

    Using CS3
    I cannot get my job to upload to the server correctly. The error code says: "Dreamweaver is currently interacting with a server.
    Since putting a file on save requires interaction with a server as well, DW cannot currently perform this task.
    Please try again when current server task is complete."
    And then it DOES save it to the remote site - but my links are not active and I am not able to access the job on internet.
    When I compare the remote site info it is synchronized with the local.
    My site setup has been tested and is good.
    I've been doing this job for 5 years. Not had this problem before.
    I have no other files/programs open and nothing is being saved that I know of. Sauve' 

    JTANNA wrote:
    VSauve\' wrote:
    Thanks for your reply.
    No I have not used any third-party upload files.
    I have contacted my host, but they haven't gotten back to me - Dreamhost - and I'm
    waiting and waiting . . . as my deadline gets later and later.
    In the meantime you could start using FileZilla - a free tool to upload your files.  Don't rely on Dreamhost because they could destroy your livelihood.  They couldn't care less about customers.  This is my experience with them.
    JTANNA wrote:
    1. Jan 9, 2012 7:19 PM (in response to MichaelCo)
    Re: Nav Bar collapsing in Dreamweaver
    MichaelCo wrote:
    Not sure what I am doing wrong.Any help would be appreciated.
    It is unlikely we would know either but have you uploaded/linked the relevant scripts and CSS files?  I believe PVII products rely heavily on scripts so this might be the problem
    I suggest repost your query to their forums as they should know what the problem could be.  We don't use any third party products here.
    Good luck.
    Oh the irony...
    VSauve\' wrote:
    Using CS3
    I cannot get my job to upload to the server correctly. The error code says: "Dreamweaver is currently interacting with a server.
    Since putting a file on save requires interaction with a server as well, DW cannot currently perform this task.
    Please try again when current server task is complete."
    And then it DOES save it to the remote site - but my links are not active and I am not able to access the job on internet.
    When I compare the remote site info it is synchronized with the local.
    My site setup has been tested and is good.
    I've been doing this job for 5 years. Not had this problem before.
    I have no other files/programs open and nothing is being saved that I know of. Sauve'
    From what you're describing that's happening you're syncing the whole site each time you are saving changes and there's a problem with the permission settings. I'm not saying that's the case but just from the description that's what it sounds like.

  • Problems reading 2 files on server

    I have the code written to upload a file to the server. I want to be able to upload 2 files to the server with the same socket connection. Any ideas how to do this? Also when i upload the file it doesn't always send the whole file. Any ideas why this is happening and how i can fix this? I'll post the code I have below.
    import java.io.IOException;
    import java.net.ServerSocket;
    public class Server {
          * @param args
          * @throws IOException
         public static void main(String[] args) throws IOException {
              // TODO Auto-generated method stub
               ServerSocket serverSocket = null;
              boolean listening = true;
              try {
                     serverSocket = new ServerSocket(12345);
                 } catch (IOException e) {
                     System.err.println("Could not listen on port: 12345.");
                     System.exit(-1);
                 while (listening)
                      new ServerThreads(serverSocket.accept()).start();
                     serverSocket.close();
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.Socket;
    public class ServerThreads extends Thread {
         private Socket socket = null;
         ServerUtil archUtil = new ServerUtil();
         public ServerThreads(Socket socket) {
              // TODO Auto-generated constructor stub
              this.socket = socket;
         public void run() {
              try{
                   BufferedReader rd = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                   if(rd.readLine().equals("file")){
                        archUtil.generateTmpDir();
                        archUtil.uploadFile(socket,rd);
                   else
                   System.out.println("this is some crap");
              catch(IOException e){
                   System.out.println("is this you that's given me a problem");
    public class ServerUtil {
         String tmpDir;
         String fileName;
         Process proc;
         Runtime runtime = Runtime.getRuntime();
         public static final int BUFFER_SIZE = 1024 * 50;
         private byte[] buffer;
         public ServerUtil() {
              // TODO Auto-generated constructor stub
         public void generateTmpDir(){
              java.util.Date d = new java.util.Date();
              long off = (long) Math.random();
              GregorianCalendar todaysDate=new GregorianCalendar();
              int hour,mins,secs;
              hour=todaysDate.get(Calendar.HOUR);
              mins = todaysDate.get(Calendar.MINUTE);
              secs = todaysDate.get(Calendar.SECOND);
              String SECS = java.lang.Integer.toString(secs);
              String HOUR = java.lang.Integer.toString(hour);
              String MINS = java.lang.Integer.toString(mins);
              String time = HOUR + MINS + SECS;
              /** Unique String Name created  **/
              String RANDOM_OFFSET = new String ();
              RANDOM_OFFSET =time + d.hashCode() + RANDOM_OFFSET.hashCode()+ off;
              setTmpDir(RANDOM_OFFSET);
              boolean success = (new File("tmp/" + RANDOM_OFFSET)).mkdir();
             if (!success) {
                 // Directory creation failed
              /**try {
                   proc = runtime.exec("mkdir tmp/" + getTmpDir() );
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public void uploadFile(Socket socket, BufferedReader rd){
              buffer = new byte[BUFFER_SIZE];
              System.out.println("accepted Socket");
              try {
              BufferedInputStream in = new BufferedInputStream(socket.getInputStream());
              setFileName(rd.readLine());
              BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(tmp/" + getFileName()));
              int len = 0;
              while ((len = in.read(buffer)) > 0) {
                   out.write(buffer, 0, len);
                   System.out.print("#");
              in.close();
              out.flush();
              out.close();
              socket.close();
              System.out.println("\nDone!");
              catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
          * @return the tmpDir
         public String getTmpDir() {
              return tmpDir;
          * @param tmpDir the tmpDir to set
         public void setTmpDir(String tmpDir) {
              this.tmpDir = tmpDir;
          * @return the fileName
         public String getFileName() {
              return fileName;
          * @param fileName the fileName to set
         public void setFileName(String fileName) {
              this.fileName = fileName;
    public class Network {
         public static final int BUFFER_SIZE = 1024 * 50;
         private byte[] buffer;
         public Network() {
              // TODO Auto-generated constructor stub
              buffer = new byte[BUFFER_SIZE];
         public void sendFile(String fileLocation, String filename) throws Exception {
              Socket socket = new Socket("localhost", 12345);
              PrintWriter pout = new PrintWriter(socket.getOutputStream(), true);
              pout.println("file");
              pout.println(filename);
              BufferedInputStream in =
                   new BufferedInputStream(
                        new FileInputStream(fileLocation));
              BufferedOutputStream out =
                   new BufferedOutputStream(socket.getOutputStream());
              int len = 0;
              while ((len = in.read(buffer)) > 0) {
                   out.write(buffer, 0, len);
                   System.out.print("#");
              in.close();
              out.flush();
              out.close();
              socket.close();
              System.out.println("\nDone!");
          * @param args
          * @throws Exception
         public static void main(String[] args) throws Exception {
              // TODO Auto-generated method stub
              Network nw = new Network();
              nw.startClient();
    }

    Ok this is the code that I wrote in those sections and I am getting an error on the server...can you tell me what I am doing wrong. I just want to copy over 2 files and give them the same names.
    Client: Network.java( up top)
         public static final int BUFFER_SIZE = 1024 * 50;
         private byte[] buffer;
         public Network() {
              // TODO Auto-generated constructor stub
              buffer = new byte[BUFFER_SIZE];
         public void sendFile(File f1, File f2) throws Exception {
              Socket socket = new Socket("localhost", 12345);
              PrintWriter pout = new PrintWriter(socket.getOutputStream(), true);
              File [] files = {f1,f2};
              DataOutputStream out = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream()));
              BufferedInputStream in = null;
              pout.println("file");
              for(int i = 0; i < files.length; i++){
              out.writeUTF(files.getName());
              out.writeLong(files[i].length());
              in = new BufferedInputStream(new FileInputStream(files[i]));
              int len = 0;
              while ((len = in.read(buffer)) > 0) {
                   out.write(buffer, 0, len);
                   System.out.print("#");
              in.close();
              out.flush();
              out.close();
              socket.close();
              System.out.println("\nDone!");
    Server: ServerUtil.java (up top)
    public void uploadFile(Socket socket, BufferedReader rd){
              buffer = new byte[BUFFER_SIZE];
              System.out.println("accepted Socket");
              try {
                   BufferedOutputStream out = null;
                   DataInputStream in = new DataInputStream(new BufferedInputStream(socket.getInputStream()));     
              for(int i = 0; i<2; i++){
              setFileName(in.readUTF());
              System.out.println(getFileName());
              out = new BufferedOutputStream(new FileOutputStream(getFileName()));
              int len = 0;
              while ((len = in.read(buffer)) > 0) {
                   out.write(buffer, 0, len);
                   System.out.print("#");
              in.close();
              out.flush();
              out.close();
              socket.close();
              System.out.println("\nDone!");
              catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         }I am getting the error:
    java.io.UTFDataFormatException
    at java.io.DataInputStream.readUTF(DataInputStream.java:713)
    at EpkgArchiveServerUtil.uploadFile(EpkgArchiveServerUtil.java:100)
    at ServerThreads.run(ServerThreads.java:38)

  • Reoccuring HANGING problem with transferring files from old MACBOOK

    ok, so I recently bought a iMac and i wanted to transfer my music and photo files from my older (waterdamaged a while back but still works fine) macbook. I've tried basically every method to try and get this done.
    I've tried migration assistant, transferring the files through a shared wireless network, through firewire/disk target mode, but all of those methods i tried resulted in hanging very early on in the transferring and copying operation.
    I believe it must have something to do with my macbook's hard drive, but i have no idea what to do at this point. Could someone please help me?

    the thing is tho, the hard drive had no problems copying and transferring for over a year after the damage, while i continued to use it. I don't a reason why it wouldn't work now when i finally want to move a larger number of files at once (itunes music folder, iphoto library)

  • Problem while transferring files within my external drive

    Hi!
    I hope you can help me with my problem. Here's what happened:
    I just copied a bunch of files from my MBA to my external drive and it went flawlessly. Then i tried to copy one file in the external drive to another folder when i was prompted that "the operation can't be completed because an item with the name " " already exists." I was puzzled, so i checked the folder, there's no such file in it. So i dragged the file again to the folder and assumed that it was transferred successfully because the file disappeared from the root folder, but there was no "transferred sound" when it was "moved." I tried with another file, same message. Dragged it again to another folder and i was prompted with an error but the file disappeared from the root folder. So again i assumed it was transferred. A few minutes later i opened the folder again but my file was nonexistent. I tried "unhiding" hidden files using Terminal, and yet it's still nowhere to be found. It is not in the Trash bin either. Is there some way that i could retrieve/recover this file? I fear that it might have been deleted permanently from my external drive! The file is very, very important for my work. Thanks very much to anyone who could help me with this. xx
    Some important info:
    Device: Macbook Air late 2013
    HDD: Toshiba 1 TB (NTFS) -- I have Paragon v10.0.2 installed

    Tuxera eh, you went from bad to worse.  That program brings new definition to the slang 'iffy'
    Did you keep your resident file on your Air's SSD ?
    never operate on a single backup #1
    secondly, ext. HD are cheaper than dirt, purchase a couple and format them for your Mac, and unless its a necessity, dont use as a constant communication software for NTFS drives.
    if you need a HD for PC / Mac, format one on your PC for EXFAT for read /writes / transfers to and from your PC and Mac.

  • How I solved my problem of transferring files (without spending a dime)

    I was trying to figure out a cheap way to transfer stuff from my old iMac to my "new" old iMac. I asked you guys. One person suggested buying a crossover cable, but that ended up being really a complicated idea since I'm using OS 10.3.9 and the old system was OS 8.6 (I could have perhaps sent it to my classic OS 9. Who knows).
    Someone else said I should get a cheap Flashdrive, which was a good idea, and I will.
    But I'm broke, and I needed my fonts right away. Here's what I did. I emailed them to myself as .sit (stuffed) attachments. It took a while, but it worked.
    Just wanted to share. If you have any other suggestions, feel free to reply.
    Thanks,
    Allan

    Allan:
    Pretty neat work-around. Unfortunately, you can't do that for everything. But, for you, this one worked. Congratulations.
    Cheers.
    cornelius

  • Upload excel file and display content in sapui5 table

    hi:all
       how to upload  excel files and display its contents in the view of sapui5  table ,then  'create ' these data into the abap database using odataservice.
         Do you have any solutions ? I appreciate for your help.

    Two possible way come to mind.
    1. ADF DI (desktop integration): sorry, don't know enough about it to give a how to :-(
    2. POI (http://poi.apache.org/) : open source project to read and write excel file with java. Using POI you can open the .xsl file, read it's contents and display it as af:table. For this you need to read the xsl into a data structure (this can be a temporary db table or a list of POJOs) and build a data control out of it. This you can drop on a page as table.
    Timo
    Edited by: Timo Hahn on 15.02.2010 13:59

  • How do I upload only a few lines of a file from the presentation server?

    Hi there guys,
    I'd like to upload the contents of a file on my HD (presentation server) to an internal table. I know this can be achieved by using the GUI_UPLOAD function module. But what if I only want to upload a part of the file, not the whole thing? Like the first 100 bytes or 10 lines or something like that. Some files are just way too big to upload them as a whole. I tried using the OPEN DATASET statement, but that seems to work only for files on the application server. If I try to open 'C:     emp     est.txt' (for example) with OPEN DATASET, I get an error. Do I have to put the filename differently or am I totally wrong with OPEN DATASET? I'm kinda stuck here and I'd appreciate your help.
    Cheers,
    Björn.

    Hi Shashi,
    thanks for your reply. If I understand you correctly, this means I will have to wait for GUI_UPLOAD to upload the whole file and afterwards filter into another table. I don't want to upload the whole thing because it's that big, I'd like to only upload a portion of it in the first place. Can this be done?
    Cheers,
    Björn.

  • "Bad data format" when reading txt file from the presentation server

    Hello,
    I have a piece of code which reads a txt file from the presentation server to an internal table like below:
    DATA : lv_filename type string.
    lv_filename = 'C:\abap\Test.txt'. "I created a folder called abap under C:\
    CALL method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
    EXPORTING
       FILENAME              = lv_filename
    CHANGING
       DATA_TAB            = lt_tsd. " lt_tab has the exact same fields as the Test.txt's. Test.txt has only one line, tab delimited.
    When running this code, exception BAD_DATA_FORMAT is issued.
    Is it because of the file encoding or delimiter or other reason?
    Thanks,
    Yang

    Hello,
    If its tab delimited then use the has_field_seperator parameter and check
    DATA : lv_filename type string.
    lv_filename = 'C:\abap\Test.txt'. "I created a folder called abap under C:\
    CALL method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
    EXPORTING
       FILENAME                = lv_filename
       FILETYPE                 = 'ASC'
       HAS_FIELD_SEPARATOR          = u2018Xu2019
    CHANGING
       DATA_TAB            = lt_tsd.
    Vikranth

  • Reading file from the presentation server in the background

    Hi,
    I am trying to read a .csv file from the presentation server into an internal table in the background. what should I do for it? In the foreground it works fine.
    I have declared a selection parameter 'p_file' that has the path of the file. It wokrs fine in the foreground and how to set it up in the background?
    Any thoughts would be helpful. Thanks in advance,
    VG

    hii
    did you achieved the required functionality , i,e, accessing presentation server file i nbackground .
    I too got the same requirement, can you explain the process.
    There is no way you can do it... The best method is to put the file on Appln server and then call it in the background mode.
    Regards,
    Vishwa.

  • Is there a way to turn off using ram as intermediary when transfering files between 2 internal hdds? (write cache is off on all drives)

    right forum?  first time here. none of the options seem perfect. so i guess this applies to 'setup.' i tried to describe what's happening verbosely from the start of a file transfer to completion of writing file to 2nd hard drive.
    win 7 64bit home - i2600k 3.4ghz - 8gb of ram - 2hdd 1 ssd
    I have this problem when transferring files between 2 internal hard drives. one is unhealthy (slow write speeds but not looking for advice to replace it because it serves its unimportant purpose). so, the unhealthy drive drops into PIO mode - that's acceptable.
    however, a little over 1gb of any file transfer is cached in RAM during the file transfer. after the file transfer window closes, indicating the transfer is "complete" (HA!), it still has 1gb to write from RAM which takes about 30minutes. This would
    not be a problem if it did not also earmark an additional 5gb of ram (never in use), leaving 1gb or less 'free' for programs. this needlessly causes my pc to be sluggish - moreso than a typical file transfer file between 2 healthy drives. i have windows write
    caching turned off on all drives. so this is a different setting i can't figure out nor find after 2 hours of google searches.
    info from taskmanager and resource monitor.
    idle estimates: total 8175, cached 532, available 7218, free 6771 and the graph in taskman shows about 1gb memory in use.
    at the start of a file transfer:  8175,  2661,  6070,  4511free and ~2gb of ram used in graph. No problems, yet.
    however, as the transfer goes on, the free ram value drops to less than 1gb (1gb normal +1gb temporary transfer cache +5gb of unused earmarked space = ~7gb),  cached value increases, but the amount of used ram remains relatively unchanged (2gb
    during transfer and slowly drops to idle values as remaining bits are written to the 2nd hard drive).  the free value is even slower to return to idle norms after the transfer completes writing data to 2nd hard drive from RAM. so, it's earmarking an addition
    5gb of ram that are completely unused during this process.  *****This is my problem*****
    Is there any way to turn this function off or limit its maximum size. in addition to sluggishness, it poses risk to data integrity from system errors/power loss, and it's difficult to discern the actual time of transfer completion, which makes it difficult
    to know when it's safe to shutdown my pc (any data left in ram is lost, and the file transfer is ruined - as of now i have to use resmon and look through what's writing to disk2 -> sometimes easy to forget about it when the transfer window closed 20-30minutes
    ago and the file is still in the process of writing to the 2nd disk).
    Any solution would be nice, and a little extra info like whether it can be applied to only 1 hard drive would be excellent.

    Thanks for the reply.
    (Although i have an undergrad degeee in computers, it's been 15years and my vocab is terrible. so, i will try my best. keep an open mind. it's not my occupation, so i rarely have to communicate ideas regarding PCs)
    It operates the same way regardless of the write-cache option being enabled. It's not using the 5gb for read/write buffer - it's merely bloating standby memory during the transfer process at a rate similar to the write speed of destination (for my situation).
    at this point i don't expect a solution. i've tried to look through lists of known memory leaks but i dont have the vocabulary to be 100% certain this problem is not documented. as of now it can't affect many people - NAS's with low bandwidth networks, usb
    attached storage etc. do bugs get forwarded from these forums? below i can outline the consistent and repeatable nature not only on my pc but on others' pcs as well (2012 forum post i found).
    I've been testing and paying a little more attention and i can describe it better:
    Just the Facts
    Resmon Memory Info: "In Use" stays consistent ~1gb (idle amount and roughly the same when nothing else is running during file transfer)
                                     "Modified" contains file transfer
    data (meta data?) which remains consistent at little over 1gb (minor fluctuations due to working as a buffer). After the file transfer window closes "Modified" slowly diminishes as it finishes lazy writing (i believe that's the term). I forget idle
    pc amount, but after transfer this is ony 58mb)
    "Standby" as the transfer starts it immediately rises to ~2gb. I'm sure this initial jump is normal. However, it will bloat well over 5gb over time with a large enough transfer increasing at a consistent rate during the entire transfer
    process. the crux of the matter.
    "Free" will drop as far as 35-50megabytes over time.
    as the transfer starts, the "Standby" increases by an immediate chunk then at a slow rate throughout entire transfer process(~1mb/s). once writing metadata to RAM no longer occurs, the "Modified" ram slowly (@500kb/s matching resmon disk
    activity for that file write) diminishes as it finishes lazy writing, After file is 100% written to destination drive, "Standby" remains a bloated figure long after.
    a 1.4gb transfer filled 3677MB of "Standby" by the time writing finished and modified ram cleared. after 20minutes, it's still bloated at 3696MB. after 30-40mins it's down to 2300mb - this is about what it jumps immediately to when transfer starts
    - it now remains at this level until i reboot.
    I notice the "standby" is available to programs. but they do not operate well. e.g. a 480p trailer on IMDB.com will stop-and-go every 2-3seconds (stream buffers fine/fast) - this would be during the worst case scenario of 35-50mb "Free"
    ram. my pc isn't and never was the latest and greatest, but choppy video never happens even with 1 or 2 resource hogs running (video processing/encoding, games, etc).
    Conjecture Below
    i think it's a problem when one device is significantly slower at writing than the source device - this is the factor that i share with others having this problem. when data is written to modified ram then sent to destination, standby memory is expanded
    until it completely or nearly fills all available RAM - If the transfer size is large enough relative to how slow the write speed of destination device is. otherwise it fills it up as much as the file size/write speed issue allows. the term "memory leak"
    is used below but may not technically be one, but it's an apt description in layman's terms.
    i saw a similar post in these forums (link at end). My problem is repeatable and consistent with others' reports. I wasn't sure if i should revive it with a reply. some of these online message boards (maybe not this one) are extremely picky
    and sensitive, lol.the world will end if an old thread revives - even if for a good reason.
    i can answer some of the ancillary issues. one person (Friday, September 21, 2012 8:33 PM) mentions not being able to shutdown, i asume he means stuck on the shutdown screen - this is because lazy writing has not completed - his nas write speed is significantly
    slower than reading from source - the last bits of data left in ram still needs to be writen to the destination. shutdown will stall for as long as needed until the data finishes writing to destination to prevent data loss.
    another person (Monday, September 24, 2012 6:31 PM) mentions the rate of the leak, but the rate is more likely a function of read speed from source relative to write speed of destination. which explains why my standby expands closer to a 1:1 ratio compared
    to his 1:100 (he said 10mb per 1000mb)
    we all have the same exact results/behaviour, but slightly different rates of bloating/leaking. as the file is written from from the ram to the destination, standby increases during this time - not a problem if read and write speeds are roughly equal (unless
    your transfering a terabytes then i bet the problem could rear its head). when writing lags, it gives the opportunity for standby ram to bloat with no maximum except the amount of installed ram. slower the write speed, the worse the problem.
    The reply on Wednesday, September 26, 2012 3:04 AM has before and after pictures of exactly what i described in
    "Just the Facts". Specifically the resmon image showing the Memory Tab.
    The kb2647452 hotfix seems to do some weird things relative to this problem. in the posts that mention they've applied it: after file completes it looks like the "standby" bloat is now "in use" bloat. as per info from Tuesday, October
    09, 2012 10:36 PM - bobmtl in an earlier post applies the patch. compare images from earlier posts to his post on this date. seems like a worse problem. Also, his process list indicates it's very unlikely they add up to ~4gb as listed in the color coded bar.
    wheres the extra gb's coming from? likely the same culprit of what filled up "standby" memory for me and others. it looks like this patch relative to this problem merely recategorizes the bloat - just changes the title it falls under.
    Link:
    https://social.technet.microsoft.com/Forums/windows/en-US/955b600f-976d-4c09-86dc-2ff19e726baf/memory-leak-in-windows-7-64bit-when-writing-to-a-network-shared-disk?forum=w7itpronetworking

  • Transfering files from windows to linux

    Hi,
    My requirement is Client will select files from widows and then click zip.In server(linux) i have to get those files and zip.Here i am unable to get the files sent by the client.
    Suppose client will select the file in C:\xxx then click zip.In linux am using request.getParameter() from getting those files.Here in linux it is getting the path of the file as C:\xxx and unable to locate.Giving FIleNotFound Exception.
    How can resolve this issue.
    Regards,
    Babu

    Hi Boss am getting the problem in transfering files from windows to linux.
    In linux it is unable to locate the file which was selected by the client in windows.
    Am using request.getParameter () to get the file.How to solve this.

  • Reading a CSV file from server

    Hi All,
    I am reading a CSV file from server and my internal table has only one field with lenght 200. In the input CSV file there are more than one column and while splitting the file my internal table should have same number of rows as columns of the input record.
    But when i do that the last field in the internal table is appened with #.
    Can somebody tell me the solution for this.
    U can see the my code below.
    data: begin of itab_infile occurs 0,
             input(3000),
          end of itab_infile.
    data: begin of itab_rec occurs 0,
             record(200),
          end of itab_rec.
    data: c_comma(1) value ',',
            open dataset f_name1 for input in text mode encoding default.
            if sy-subrc <> 0.
              write: /, 'FILE NOT FOUND'.
              exit.
            endif.
    do
      read dataset p_ipath into waf_infile.
      split itab_infile-input at c_sep into table itab_rec.
    enddo.
    Thanks in advance.
    Sunil

    Sunil,
    You go not mention the platform on which the CSV file was created and the platform on which it is read.
    A common problem with CSV files created on MS/Windows platforms and read on unix is the end-of-record (EOR) characters.
    MS/Windows usings <CR><LF> as the EOR
    Unix using either <CR> or <LF>
    If on unix open the file using vi in a telnet session to confirm the EOR type.
    The fix options.
    1) Before opening the opening the file in your ABAP program run the unix command dos2unix.
    2) Transfer the file from the MS/Windows platform to unix using FTP using ascii not bin.  This does the dos2unix conversion on the fly.
    3) Install SAMBA and share the load directory to the windows platforms.  SAMBA also handles the dos2unix and unix2dos conversions on the fly.
    Hope this helps
    David Cooper

Maybe you are looking for

  • External VGA Projector Screen Blue when MacBook Pro Connected

    I love using my laptop for Powerpoint and Keynote presentations at work. I used to have a Powerbook 1.5GHz 15" and now have a MacBook Pro 2.2GHz 15". With some external VGA projectors, after connecting the MacBook Pro, everything works great. I turn

  • Acrobat_com  update error message

    I have Windows XP Professional. I went into  START >  PROGRAMS  > ACROBAT_COM.  When I double clicking ACROBAT_COM,  I get the following window. When I try to download, I get the following window. With error 16820. What does it mean and what should I

  • Opening raw files in PS7.0

    want to open raw files. Add on?

  • Possible to insert a countdown timer into an iMovie clip?

    I'm making an exercise video, and I want to insert an occasional small clip with a countdown timer.  Ideally, it would be some beautiful nature footage (like waterfalls or wildlife), with a countdown timer in the corner. Does anydbody know how to ins

  • Licensing Adobe Document Services

    Can any one tell me what all components of ADS are free and what all components require any licence. Also there are some SAP provided PDF forms. Do we require and licence for changing them ? also is there any licence required for creating new Forms?