+ Reply to Thread
Results 1 to 3 of 3

Importing txt data from SAP to excel - invisible character #

  1. #1
    Registered User
    Join Date
    01-03-2015
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    40

    Importing txt data from SAP to excel - invisible character #

    Hi,

    I have an odd issue with txt file from SAP.

    The issue happens when a ref key 3 (or I assume any other free text field) includes hash # at the end of the string as attached.

    The txt file looks normal and this hash is not visible, but when importing it to excel, either by VBA or manually, it always separates the row by # and moves the rest on the next row.

    Has anyone else experienced this and managed to work around it?

    Thanks a lot.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,742

    Re: Importing txt data from SAP to excel - invisible character #

    I don't know what is happening here and I don't see the "#". I observed something following the Ref key 3 "MCA052318" that may help some one identify the cause.

    In the text file ... opened in Notepad ... the field that contains the MCA052318: starting at the far right end of that field and arrowing left, when the cursor gets to the 8 I would expect the next left arrow to be to the right of the 1. It does not do that. It stays just to the right of the 8 until the next left arrow. So something is there but I can not tell what it is. Attempts to apply CODE/MID indicate nothing.
    Last edited by FlameRetired; 09-16-2018 at 10:25 PM.
    Dave

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,960

    Re: Importing txt data from SAP to excel - invisible character #

    The character is a Hex(OA) linefeed character without the Hex(0D) carriage return
    4D 43 41 30 35 32 33 31 38 0A 20
    M C A 0 5 2 3 1 8 ._

    I think the file would have to be opened via vba directly from disk using "LineInput" etc. and searched for a 0A without the preceding OD. They are almost always paired: 0D0A
    Attached Images Attached Images
    Last edited by protonLeah; 09-16-2018 at 11:53 PM.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Populate a Second Invisible Excel Worksheet When Data is Entered into the First
    By daneishbacon89 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2016, 08:15 AM
  2. Importing XML file with invalid character
    By agentblue in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2013, 11:09 PM
  3. Copying invisible columns, but not invisible rows
    By petalred in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2008, 11:17 AM
  4. [SOLVED] Character display problem importing into Excel
    By RateTheBuilder in forum Excel General
    Replies: 2
    Last Post: 07-25-2006, 06:50 AM
  5. Importing txt files one character per column/row.
    By albert.hoegberg@gmail.com in forum Excel General
    Replies: 0
    Last Post: 05-29-2006, 07:55 AM
  6. [SOLVED] importing undelimited text file data, character-by-character
    By The Mos$ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-26-2005, 07:10 AM
  7. [SOLVED] character restrictions when importing data from a text file
    By richtea in forum Excel General
    Replies: 3
    Last Post: 09-03-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1