Excel to Txt file

Hi,
I have data from Excel sheet, but the program I am using needs .txt tab delimited format. When I save the Excel as text(tab delimited) file, the Amount is moving under Docu Date and Reson code data is moving under Customer.
Can you please help me to get the data that won't move to the left when blank space is there.
Document Num     Docu Date     Amount     Customer     Reason Code
1060308          -4,760.00     1012     66
1060309          -1,018.70     1012     66
1204010          -290,248.00     1012     66
3053323          -307.30     1012     73
71182264     060711     -189.12           
71183727     060717     126.08           
71188171          -496.44          25
71188946     060724     1,154.42           
71194119     060731     598.88           
71199613          252.16          25
71199664     060801     252.16           
71204974          -453.00          21
71204974     060808     5,389.92           
71205113     060808     567.36           
71207288          94.56          25
71207614          153.66          25
71207895          94.56          25
1060308          -4,760.00     1012     66
1060309          -1,018.70     1012     66
1204010          -290,248.00     1012     66
3053323          -307.30     1012     73
71182264     060711     -189.12           
71183727     060717     126.08           
71188171          -496.44          25
71188946     060724     1,154.42           
71194119     060731     598.88           
71199613          252.16          25
71199664     060801     252.16           
71204974          -453.00          21
71204974     060808     5,389.92           
71205113     060808     567.36           
71207288          94.56          25
71207614          153.66          25
71207895          94.56          25
Thanks
Veni.

ya Veni,
I think ur docu date column is empty that y these values moving to left side but there would be 2 tabs distance between the first and second value check it out....
If not in the micro u have to write some coding so that there would be some particular specific characteristics of space...
SRI

Similar Messages

  • Export to Excel and Txt File

    Is there a way to export a report to more than one option?
    In other words, I need to be able to provide an option to
    report to excel and report to a txt file in a tilde-delimited format.

    I too am asking if there is an API to do things like this -
    i imagine I could run a trace and see what it does ....

  • Transfer Data from excel to text file or SAP R/3

    Hi,
    Can anyone please let me know if there is any function module to transfer data from excel to a .txt file.
    I am using a CRM 5.0 system and some standard SAP function modules are missing.
    I want to fetch data from excel to SAP R/3.
    Wish you great time.
    Best Regards
    Sid

    Hi Sid,
    extracting data from an excel sheet to SAP u can use the function module GUI_UPLOAD.
    I am providing u its parameters also as it might be useful to u.
    The mandatory fields here are FILENAME n in TABLES (in which u will be saving ur data).
    and also if u need to download from sap to any file u can use GUI_DOWNLOAD in which u can save data in both excel or txt file.
    U can also use SAP_CONVERT_TO_TEX_FORMAT function module to convert into text file.
    Rewards would be highly appreciated. Thanks.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      =
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How can I write waveform data to a txt file or an excel sheet?

    I want have a table that I can follow up in excel. In first column should be the timestamp (in ms or better in us), in the second column should be the value. I made an effort but it doesn´t work.
    Attachments:
    PWMReadWrite.vi ‏167 KB

    Yes, you must change block (Get Date/Time String.vi).
    You must write new subVI - this new VI convert date and time to the second [or ms or us].
    First choice is: time column will be count of second [the better ms or best us] since 12:00 a.m., January 1, 1904, Universal time[function "Get Date/Time In Seconds.vi"].
    Text file:
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333
    Second choice is: first record in TXT file will be time when test start and after will be table with time [ms or us] and value.
    Text file:
    Start time: Monday 30-th February 2005.
    0,000 0.000000
    0,050 0.062791
    0,100 0.125333
    Have a nice day.
    JCC
    P.S.: I recommend you creat header of result table to text file.
    Text file:
    time [ms] U [V]
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333

  • Export Excel Table in .txt File with space delimited text in UNICODE Format

    Hi all
    I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very good solution is
    given by the converter in Excel "Save As" .prn File. All works fine, the formattation is perfect (it does not matter if some parts are cutted because are too long), but unfortunately the greek letters are converted into "?"!!!
    I've tried to convert my .xlsx File in .txt File with formatting Unicode and the greek letters are still there! But in this case the format is not good, the structure of a table is gone!
    Do you know how to save an Excel file in .prn but with Unicode formatting instead of ANSI or a .txt with space delimited text?
    Thanks a lot to everyone that can help me!
    M.L.C.

    This solution works in Excel/Access 2013.
    Link the Excel table into Access.
    In Access, right-click the linked table in the Navigation Pane, point your mouse cursor to "Export", and then choose "Text File" in the sub-menu.
    Name the file, and then under "Specify export options", check "Export data with formatting and layout".  Click "OK".
    Choose either Unicode or Unicode (UTF-8) encoding.  Click "OK".
    Click "Close" to complete the export operation.

  • Invalid charater in Excel when input .txt file that run from Oracle discove

    Hi All,
    I ran a report from oracle discover and saved as txt file, then open it with excel, the chinese will be shown as invalid character.
    The problem is that Chinese characters can't be displayed well if I download the report (in csv ) from discover desktop version on my computer and open it with excel.
    Pls. help to resolve the problem.
    Thanks.

    Hello
    I'm afraid that I don't have much experience of working with Chinese characters and can see nothing in my notes that might help. Give it a couple of days for others to reply and if you don't get anywhere I recommend raising this as a service request with Oracle Support.
    Best wishes
    Michael

  • Remove control characters in txt file (saved from Excel)

    Hi,
    I have a txt file that contains invisible control characters and I want to remove those characters. I've been thinking of 2 options
    1/ Get the content of the file into a string, then go through each character and basically takes only alphanumeric, new lines, Alt+Enter character (character that is created in txt files in Excel that breaks line). With this approach, I'm stuck on getting the character code for Alt+Enter so if anyone could point out. That helps a great deal.
    2/ Use some pattern matching {ctrnl} or something to remove all control characters. I've tried this approach and it didn't work for me.
    Please help me with this problem. Any help or suggestion is greatly appreciated.

    (saved from Excel) Why not save it as csv?
    trivektor wrote:
    With this approach, I'm stuck on getting the character code for Alt+Enter so if anyone could point out. That helps a great deal.
    You can figure that out with a hex editor or just write a small app that prints int values for each byte, not character, and print the file.
    Presumably you already found the Character class and its methods.
    Edited by: jschell on Sep 22, 2008 4:29 PM

  • How to open TXT file with excel 2007

    With Excel 2003  if we right click the txt source file name, there will be an option to open the file Excel, but with Excel 2007, then we right  click txt fiel name , there is no option of open the file with excel, is this mean that we have to copy the txt file to excel file to manipulate the source file? Any idea how to do this?

    just find out that we can use the browser to find the excel and open the file, next time the excel option will be there.

  • Excel doesn't open .txt files automatically

    Until 10 minutes ago Excel opened downloaded .txt files, now Itunes pops open when I try open the downloaded .txt file. I have no idea how idea how I did this, any help reversing this would be great.
    Thanks,
    Rush

    Hi Rush,
    What about other programs or files types? According to your description, the issue seems related with the default program or files association, please launch control panel\Default Programs\Associate a file type or protocol with a program, then scroll down
    to find .txt, make sure that its default program is Notepad.
    Or you can simply right click the txt file, then click "Openwith" choose Notepad.
    Yolanda Zhu
    TechNet Community Support

  • Excel 2007 throws "this action is valid for the products which are currently installed" while i try to open .txt file format.

    Hello,
    We have Windows 2008 r2 TS, on which we have MS office 2007 Standard installed. There are almost 50 users on this particular machine.
    The problem is we get an error message when we try to open a .txt file in Excel (Right click on .txt file--> Open with --> Excel). Error message is as follows  "this action is valid for the products which are currently installed".
    Previously this was faced by all users so we completely reinstalled it, which worked, except for 1 user.  Currently i have recreated the profile for that particular user but that also didn't helped.
    A drag-drop approach works but user don't want it that way.  
    Now am clueless in terms of where should i look into. Any help would really be helpful.
    Thanks,
    Amol S

    Hi Amol S,
    As per the description, I understand that you are trying to register .dll files in your computer now.
    I suggest you to go through the following article to know more about registering .dll file.
    Refer to the Link:
    https://support2.microsoft.com/kb/844592?wa=wsignin1.0
    Unregister or Register DLL or OCX files:
    The Regsvr32 tool is a command-line utility that can be used for registering and un-registering OLE controls like DLL and ActiveX (OCX) controls in the Windows operating system. If you find
    that some of your Windows functions are note working properly, you may need to register your
    dll files.
    Register dll file
    To register a dll or
    ocx file, open a command prompt windows as an administrator, type the following and hit Enter:
    regsvr32 “path & filename of dllor
    ocx
    Unregister dll file
    To un-register a dll or
    ocx file, open a command prompt windows as an administrator, type the following and hit Enter:
    regsvr32 /u “path & filename of dllor
    ocx“
    Note: This will register or unregister the
    dll file.
    Hope this information is helpful. Please do let us know if you need further assistance, I’ll be glad to assist you.
    Regard,

  • How can I convert an xls file to a txt file

    I would like to know How I can convert an xls file to a txt file.

    Look for this on google.com:
    "Java Excel API"
    With that, it would be easy to convert an excel file to flat text.

  • Set Adobe Acrobat XI Pro. When I want to save the file in WORD, EXCEL or esporta file into ... immediately throws an error "save as failed to process this document no file was created". What's the problem?

    Set Adobe Acrobat XI Pro. When I want to save the file in WORD, EXCEL or esporta file into ... immediately throws an error "save as failed to process this document no file was created".
    What's the problem?
    Any help in finding a solution is greatly appreciated.
    Thank you,

    Installed AcrobatXI PRO 11.0.09  on seven computers and laptops. Two of them gives an error when you try to save a document in WORD, EXCEL, Power Point, or when exporting to... error: Save failed to process this document. No File was created.
    But all good saves in the format of TXT and jpg.
    I have uninstalled and restored and re-installed and updated and registry cleaned and removed using the special utility Cleaner Tool for Acrobat, but nothing helps.
    On one notebook with Windows 8.1 and Microsoft office 2013, on another laptop with Windows 7 and Microsoft office 2010, the same problem, although there are computers with Windows 7 and Microsoft office 2010 and everything works.
    Tell me where to find the problem and how to solve it.
    Thank you.

  • Issue in .txt file saving from .xls to .txt

    Hi,
    I am downloading output in to excel sheet. when i am downloading excel data into tabdelimited.txt file i am getting '  "  ' in text file but in excel i am not getting this .
    anybody can tell me how to fix this issue. Initially i have to download the data into excel sheet only this is my requirement.
    Thanks,
    Maheedhar

    Hi,
    Excel normally does this if there is an embedded delimiter within the cell, i.e. a comma within the text and you are delimiting by a comma. Try using a TAB delimiter and you are less likely to see this.
    Darren

  • Can I use Bridge to export image data into a .txt file?

    I have a folder of images and I would like to export the File Name, Resolution, Dimensions and Color Mode for each file into one text file. Can I use Bridge to export image data into a .txt file?

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • Problem when I upload txt files to the server

    Hi, I have a problem when I try to upload files to the server, and I can't understand the fail.
    My case is:
    I have a jsp page where a from is.
    This form is sended to a servlet that proccess its content and upload the attach file to the server.
    It works correctly (it uploads the files, txt, xls and csv), the problem is when I try to upload a txt file like this, for example:
    Depth     Age
    0     0,1
    2     0,9
    3     2
    5     6
    6     9
    8     12
    34     25
    56     39
    101     40When I verify the uploaded file, this one has a character extra of return of line (a small square). This character prevents me from working then correctly with the file, on having detected a column of more.
    Which can be the problem?
    The code I use to uploaded the file is:
    try
        MyConnection Objconnection = new MyConnection();
        boolean isMultipart = FileUpload.isMultipartContent(req);
        // Create a factory for disk-based file items
        FileItemFactory factory = new DiskFileItemFactory();
         // Create a new file upload handler
        ServletFileUpload upload = new ServletFileUpload(factory);
        // Set overall request size constraint
        upload.setSizeMax(1024*512); //524288 Bytes (512 KB)
         // Parse the request
        List items = upload.parseRequest(req);
        // Process the uploaded items
        Iterator iter = items.iterator();
        String dat = new String();
        String typeFile = new String();
        while (iter.hasNext())
            FileItem item = (FileItem) iter.next();
            if (item.getFieldName().equals("typeFile") )
                typeFile = item.getString();
            if (!item.isFormField())
            String fieldName = item.getFieldName();
            String fileName = item.getName();
            String contentType = item.getContentType();
            boolean isInMemory = item.isInMemory();
            long sizeInBytes = item.getSize();
            int numbers=0;
            for(int i=fileName.length();(i=fileName.lastIndexOf('\\',i-1))>=0;)
                 numbers++;
            String stringFile[] = fileName.split("\\\\");
            HttpSession session = req.getSession(true);
            String loginSesion = (String)session.getAttribute("UserLogin");
            String newUserFolder = loginSesion;
            File createFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/"+newUserFolder);
            if ("AgeModel".equals(typeFile))
                createFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/AgeModels/"+newUserFolder);
            if (!createFile.exists())
                createFile.mkdir();
            fileName = stringFile[numbers];
            File uploadedFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/"+newUserFolder+"/"+fileName);
            if ("AgeModel".equals(typeFile) )
                uploadedFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/AgeModels/"+newUserFolder+"/"+fileName);
            existe = Objconnection.existFile(fileName, typeFile, loginSesion);
            if ( true == existe )
                 exito = false;
            else
                item.write(uploadedFile);
                ....// NOW REGISTER THE FILE IN TH DATA BASE
        } // if (!item.isFormField())
    } // WHILE ( iter.hasNext() )
                catch(Exception e) {
                out.println("Error de Aplicaci�n " + e.getMessage());
                return exito;
    ...THANKS

    Hi,
    Sorry I am aware this question was posted way back, but I am having similar problem and haven't been able to find the fix yet.
    So please let me known if you have got any ideas.
    My problem is same that I have to upload a CSV file from Client Machine (Windows) to Unix Application Server.
    I am using JSP method post and multipart/form-data (as in http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml).
    The file is uploaded fine but the problem is it displays carraige Return (^M) a square boxes on Unix file.
    I can't ask user to convert file to Unox format before uploading. They just convert excel file to CSV and upload.
    Is there any way I can get rid of these characters as I have to use this file further.
    Sorry, I can't use any paid utility or tool for it.
    I would appreciate if you could please help.
    Thanks,
    SW

Maybe you are looking for

  • Assigning a value to a Read-only Segment of DFF

    Hi Friends, I have a read-only segment of DFF. I want to assign a value based on the value entered in other segments to this read-only segment. There are a couple of issues I am facing. I am not able to get a handle to this read-only segment and also

  • When I back up to my iomega external drive is this creating a bootable backup?

    I recently noticed in disc utility that my HDD was in red and when I click on it I see the text that reads "this drive has a hard ware problem that can't be repaired". This is a replacement hard drive that I had installed just about a year ago. I gue

  • Standard report for customer Debtors analysis

    Hi Everyone, Can anyone pls let me know if there is any standard report for customer Debtors analysis ..... Thanks, Srikanth.

  • Enqueue AQ$_JMS_OBJECT_MESSAGE via PLSQL to JMS and Dequeue via Bean

    Hi, I want to be able to enqueue on to AQ$_JMS_OBJECT_MESSAGE queue and the dequeue to via Java Bean. Unfortunately I am having problems dequeuing via the messege driven bean as it is not able to dequeue any of the messages enqueued via oracle SQL pl

  • "System Extension cannot be used" problem...

    Okay, so I have a brand new MacBook Pro, running the latest OS. Now, for some reason, I keep getting this error notice: "System Extension cannot be used." I've been through DISK UTILITY, verified and repaired all "disk permissions," as well even "ver