Upload file Txt from Aix (unix)

Hi,
I need upload a text file a table of oracle. before it used "textio" but it now worked with Windows in UNIX I dont know not since I can do it.
thank for help me
P.d. Sorry for my english

Hi Ryan,
Copy each table in turn and paste into TextEdit. It will become tab-delimited. Save as plain text.
Regards,
Ian.

Similar Messages

  • Copying files and directories from AIX/UNIX to Client PC in ABAP.

    Hi all,
    Can someone help me. I have to make an ABAP program which copies the J2EE Visual Adminstrator programs from our AIX/UNIX server to the Client PC.
    I have to copy all files and directories in /usr/sap/DXI/DVEBMGS70/j2ee/admin/.  to  D:\j2ee\*.*
    Is it possibly in ABAP? How would you do it?
    Best regards
    Brian Strunge

    Hi,
    try this.
    DATA: lcl_directory TYPE char128,
    constants: c_mask TYPE char9 VALUE ',.,..'.
    lcl_directory = ''/local/data/interface/A28/DM/OUT'. <b>"target directory</b>
    CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    EXPORTING
    directory = lcl_directory
    filemask = c_mask
    IMPORTING
    serverfile = p_f2
    EXCEPTIONS
    canceled_by_user = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE e000(zmm) WITH text-039.
    flg_app = 'X'.
    ENDIF.
    ******************************************************8
    REPORT zdirtest.
    DATA lv_dir TYPE rsmrgstr-path VALUE '/usr/sap/trans/data'. <b>"source directory</b>
    DATA: wa_files TYPE rsfillst,
    it_files LIKE TABLE OF wa_files.
    START-OF-SELECTION.
    CALL FUNCTION 'SUBST_GET_FILE_LIST'
    EXPORTING
    dirname = lv_dir
    filenm = '*'
    TABLES
    file_list = it_files
    EXCEPTIONS
    access_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    WRITE /1 'Error! :-('.
    ELSE.
    LOOP AT it_files INTO wa_files.
    WRITE: /1 wa_files-name,
    wa_files-len.
    ENDLOOP.
    Regards
    Anver

  • UIX XML & Download Of Uploaded Files.txt

    What is the right way (in UIX XML) to show the content of an uploaded file (retrieving it from a BC4J component)?
    Documentation, Samples?

    your question is rather vague; are you asking how to handle a fileUpload using the UIX controller? Please see the javaDoc for the class
    oracle.cabo.servlet.AbstractPageBroker

  • What can i upload file( .txt,.doc,.zip) from iphone device ?

    <Edited By Host>

    Sorry, that doesn't work. First, there's no "Import" when I right click on the iPhone icon. The closest thing is "Get Pictures". When I click on that it brings up the Windows Scanner & Camera Wizard. When I click on Windows Scanner & Camera Wizard "next", it brings up the "choose pictures to copy", but all the frames are blank with big red crosses in them. If I click on "explore", it brings up all the IMG files showing under "type" that they're JPEG files. But when I click on any of the IMG files, it brings up the Windows Picture & Fax Viewer with no picture.
    HELP!!

  • How to store the File Name from a Unix Directory into a ODI variable?

    Hi,
    I have built a ODI package with the following steps:
    1. ODI is polling for a flat file in a Unix directory. I have used OdiFileWait tool for this purpose. Here the file name is not fixed, so I am using wild character (*) to poll for file. Example: DF*ABC1*.DAT where the first wild character denotes 1 letter and the second wild character denotes 2 digits.
    2. In the second step, if the file is found, I am moving the file to ODI file server path (../oracledi/demo/file). Here I have used ODIFileMove tool.
    3. Then I am using an ODI Interface to Load the file data into a Oracle database table.
    4. I am using a Process log table to keep the log for each step I am executing in ODI that is ODIFileWait, ODIFileMove, Interface etc. for each file. In this table a row needs to be inserted after ODIFileWait tool gets the file, with the File Name and File Date. Later on this row will be updated as the consequent steps are executed.
    Here is my concern, I need to get the exact File Name of the file after ODIFileWait gets the file and I need to insert that in the Process Log table after the ODIFileWait step gets a file. So if I can store the File Name in a ODI Variable, I can insert it into the Process log table at this point. This I am not able to do.
    The files are coming in a different directory (not in ODI file server path), So after getting the file it is moved to ODI file server path (../oracledi/demo/file)
    The Files which I am processing are fixed length format. Also, the File name and File Date is stored in the 1st Record(Header record) of the files.
    Kindly provide me suggestions to implement this in my code.
    Thanks and Regards,
    Anik
    Edited by: 809820 on Nov 10, 2010 11:36 PM

    Look at this link -http://odiexperts.com/getting-one-or-several-unknown-files-from-a-directory
    change the command to fetch the ls command and write into File and then using either java or jython break the data and fetch the file name and date and insert into log table.
    (or)
    you can use the os.system command and get the complete ls command into string and then process and insert it.
    Let us know if you need any other help.

  • How can I save a text-dilineated file (txt) from numbers?

    Trying to save this file format for an amazon upload. i know it works from excel, but only have numbers know. anyone know? Thanks

    Hi Ryan,
    Copy each table in turn and paste into TextEdit. It will become tab-delimited. Save as plain text.
    Regards,
    Ian.

  • Uploading files converted from vinyl

    Please excuse my ignorance but I am new to the iPod game. I have a large collection of mp3s that I created from my vinyl and tape collection. Unfortunately they don't seem to appear on my iPod Classic. Is there any way to get them to show?

    Hello Glosterfan,
    And welcome to Apple Discussions!
    Have you imported these mp3 files into iTunes first and then attempted to sync them to your iPod?
    If not, your first step would be to import these files in your iTunes library.
    Have you set your iPod up yet to Sync music with your iTunes library? If not, this guide may be of more help than anything explanation I can give on how to sync music to your iPod.
    [Syncing Music to iPod|http://support.apple.com/kb/HT1351]
    Just give a few more details regarding what you have done so far. Hope this helps you get started at least.
    B-rock

  • How to read and write(a file .txt) from a URLConnection

    I try to read and write on one URLConnection. Is it possible ? How can i make it ?
    The reading part of my application work's but not the writting part
    That's a part of rhe code that i use to write :
    String Line = "Hi";
    MyUrl = new URL(this.getCodeBase(), FichierEvenement) ;
    Con = MyUrl.openConnection() ;
    Con.setDoOutput(true);
    Con.setDoInput(true);
    Con.setUseCaches(false);
    Dos = new DataOutputStream(new BufferedOutputStream(Con.getOutputStream( )));
    Dos.writeUTF(Line);
    Please help me :)

    What are you doing with the bytes written to the OutputStream? This info would help, but i do have a suggestion. I ran into this problem when trying to write strings using writeUTF. The output was all screwed up. So, maybe change your string to a character array. That way Unicode is displayed properly. This in conjunction with writing to an .html file instead of to the connection itself might work.

  • Upload files from abap to portal

    Hi,
    I need to upload files (PDF) from Abap (R/3) to SAP Portal (into knowledge management).
    I found 2 functions but I don't know if they serve to me:
    BDS_BUSINESSDOCUMENT_CREATEF
    SDOK_PHIO_STORE_CONTENT
    Somebody can help me?
    Thank you!!
    Marc

    Hello marc,
    the two function modules you mention are:
    1. is for upload in BDS (business document service)
    2. is for upload to content server
    i think both are not what you look for, they are not related to KM.
    look at this, maybe it helps:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d465a209-0801-0010-e88d-f651c4084b9d 
    Johannes

  • GetRuntime().exec("chmod 777 a file.txt") - does not do the intended task

    Hi,
    I am trying to change the permissions of file (file name has spaces) using the Runtime.getRuntime().exec() method on AIX platform. My sample code is -
    import java.io.*;
    public class ChangeMode
         public static void main(String[] args)
              Process p = null;
         String cmd = null;
              cmd = "chmod " + "000" + " " + "a file.txt";
              try
              p = Runtime.getRuntime().exec( cmd );
              p.waitFor();
              catch( Exception e )
              e.printStackTrace();
              System.out.println("The exit value "+p.exitValue());
    In this case - I am getting exitValue of 2.
    But, the strange part is that - I am able to run the command
    "chmod 000 a file.txt "
    from the command prompt successfully.
    Any ideas what does an exitValue of 2 means and where is this program getting failed.
    Thanks!
    ~Saurabh

    Is 'a file.txt' the file name ?
    If I'm right, the Runtime.exec(String cmd) method will split the given string (using spaces.)
    The first token will be used a the command and the other ones as the arguments.
    In your example it will call chmod with three arguments: 000, a and file.txt
    In order to avoid that, you should either use the Runtime.exec(String[] cmd) method with: String[] cmd = new String[] {"chmod", "000", "a file.txt"};or try to put your file between ticks: String cmd = "chmod 000 'a file.txt'";You could have a look at this article to learn more about Runtime.exec() :
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    I hope it will help.

  • Uploading File with Umlaute (German) - solved

    I am using the .csv to table package from Vikas. The uploaded file comes from one of
    my customers. The customer is supposed to save an .xls file as .csv and upload it into
    a collection. So far so good. Whenever there are Umlaute (ä, ö, ü), they are not translated
    properly and the collection shows a character ¿ instead. So, a REPLACE would not work
    there. Is there any experience on how to solve this problem? I have no chance to educate
    my customer not to use Umlaute or to ask him to check the settings in their excel, since
    they are numerous and anonymous.
    Thanks,
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Okay,
    With a little help from John Scott, I found a solution changing this part of the package to:
    FOR i IN 1 .. l_record.COUNT
             LOOP
                htmldb_collection.update_member_attribute
                                         (p_collection_name      => p_collection_name,
                                          p_seq                  => l_seq_id,
                                          p_attr_number          => i,
                                          p_attr_value           => CONVERT
                                                                       (l_record
                                                                               (i),
                                                                        'UTF8',
                                                                        'WE8ISO8859P1'
             END LOOP;and it works properly for the German characters.
    Thanks,
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How find a word in txt from Java??

    Hi everybody...somebody knows how to find an especific word that is located in file txt from java somebody has the code???
    Thanks in advance

    Here is the code for finding a word in txt file from Java.
    import java.io.*;
    public class FindTextFromFile
        public static String getString(String fileName)
            StringBuffer fileContent = new StringBuffer(); //appending long String objects repeatedly is very costly
            try
                BufferedReader fileReader = new BufferedReader(new FileReader(fileName));
                String line = "";
                while((line = fileReader.readLine())!=null)
                    fileContent.append(line);
                    fileContent.append(System.getProperty("line.separator")); //size of line.separator=2
            catch (IOException e)
                e.printStackTrace();
            return fileContent.toString();
        public static int[] getIndicesOf(String fileName, String findWord)
            String fileContent = getString(fileName);
            int[] indices = new int[(int)(fileName.length()/findWord.length())]; //max possible occurances
            int index=0, from=0, incr=0;
            while ((index=fileContent.indexOf(findWord, from))!=-1)
                indices[incr++]=index;
                from=index+findWord.length();
            indices[incr]=-1; //marking the end of search result storing
            return indices;
        public static void main(String[] args)
            String fileName = "rawTextFile.txt";
            String findWord = "is";
            System.out.println(getString(fileName));
            System.out.println();
            System.out.print("Occurences of '"+findWord+"' found: ");
            int[] indices = getIndicesOf(fileName, findWord);
            for (int i=0; indices!=-1 && i<indices.length; i++)
    System.out.print(indices[i]+" ");

  • Selected rows in ALV to a file .txt

    Hi all, I need to generate a File (.txt) from the selected rows of an alv.
    Please, i need if you can help me with that.  I have to especify the name of the file with "concatenate" and inside the file, the data must be separated with ' ; '
    Thanks in advance.
    JCO

    Hi
    First separate the data of the selected lines in the ALV output into an internal table
    then download the data from that ITAb into a file separated by the separator(  string using GUI_DOWNLOAD or some other fun module
    Regards
    Anji

  • Place file in central instance(AIX/UNIX) from Application server in Windows

    Hi guys,
    We have the central instance running in AIX and app servers in AIX/UNIX as well. now we want to replace the app server by windows server.
    so central instance remain as AIX/unix server and app server becomes Windows NT.
    then how can i place a file in my central instance while using this Windows based app server... because open dataset with forward slash (/usr/sap/) will be not be interpretated by windows,
    so i used logical file name.. and kept both windows and unix path..
    unix path as /usr/sap/tmp/<File_Name>
    and windows path as
    servername\usr\sap\tmp\ and even tried with
    usr\sap\tmp\
    nothing worked.. when i used open dataset fetching the path from logical path, it ways unable to open the file..

    Hi,
    you can't directly open file on central instance if you are not connected to it. You have access only to files which are on application server which you are connected to. If you want to have a folder which will be accessible from all application servers then you need to map folder on application server to folder on central instance.
    To solve the issue with different paths for different operating systems you can use transaction FILE. Here you can define a logical filename where you can configure different paths for different syntax groups such as UNIX or WINDOWS NT. You can use FM FILE_GET_NAME to get valid path for application server.
    Cheers

  • Interface Mngr: Option for Uploading file from presentation or unix server

    Hi all,
      I want to upload file through interface manager where the file can be on the presentaion server or the unix server. How do i achieve the same? I need to create parameters for 'Filename' and 'Unix Filename'. Either of the 2 will be chosen at a time. But how do i retrieve the respective file?

    Hi!
    For handling a file on the apllication server (unix), you have to use the OPEN DATASET, CLOSE DATASET commands.
    For handling the files on the presentation server (local PC), you have to use the upload/download method (GUI_UPLOAD, GUI_DOWNLOAD function elements).
    You can make 2 parameters in your ABAP program like this:
    PARAMETERS: p_f_app LIKE rlgrap-filename.
    PARAMETERS: p_f_pre LIKE rlgrap-filename.
    both is filled - error
    IF NOT p_f_app IS INITIAL AND
    NOT p_f_pre IS INITIAL.
    MESSAGE E001(ZERROR).
    ENDIF.
    both is empty - error
    IF p_f_app IS INITIAL AND
    p_f_pre IS INITIAL.
    MESSAGE E002(ZERROR).
    ENDIF.
    IF NOT p_f_app IS INITIAL.   "application server
    open dataset...
    ENDIF.
    IF NOT p_f_pre IS INITIAL.   "presentation server
    call function 'gui_upload'...
    ENDIF.
    Regards
    Tamá

Maybe you are looking for

  • Sound not working in Windows 7 64bit

    I have an early 2008 macbook pro and I was previously running the 64bit Windows7 RC and the sound worked perfectly well. I did a clean install of the RTM Windows7 Professional and I haven't been able to get the sound to work properly. When I boot int

  • OLE object using MS Word -- Unprotect/Protect document

    Hi. I'm on ECC6.0. I need a functionality to open a Word file (.rtf / .doc) on user's temp folder, unprotect it (like using Word's Tools -> Unprotect Document because, by default, the doc is protected w/o a password) to be able to protect it with a p

  • IPhoto 1.0 and mac OS 10.4

    iPhoto 1.0 no longer works after upgrading to OS 10.4 The program loads but none of the file menu functions work and the viewer doesn't load. How do I restore iPhoto?

  • How to convert FormFile to File Object?

    Hi, I have one requirement for that I need to convert org.apache.struts.upload.FormFile to java.io.File format. Please help how to do this. Thanks in Advance, Mahendra.,

  • Dealing with escape characters

    I have a command that works if I represent it as "\003"+command+"\r" because my command needs to be preceded by the char 'x03' and tailed by the char 'x0d'. The literals "\003" and "\r" are being converted as I wish into their equivalent byte values.