Tab carachter at the end of line

Hello!
I am trying to upload a text file separated by Tab into SAP by an Abap program, but I have the following problem:
- Code:
constants: l_tab                 type x value '09'.
split vl_line_file at
            l_tab
            into
             vl_type_h
             vl_cod_fla.
- Problem: in the vl_cod_fla, I always get ## after data.
I have tried to change l_tab to cl_abap_char_utilities=>horizontal_tab but the problem persists.
Any suggestion would be appreciate,
Thanks!
Michel Khouri
Mars, Inc

Thanks for your help, but the problem persists.
Take a look at my new code:
split vl_line_file at
            l_tab
            into
             vl_type_h
             vl_cod_fla.
        split vl_cod_fla at
          cl_abap_char_utilities=>cr_lf
          into vl_cod_fla another_field.
The result is:
vl_cod_fla = BRL##
another_field = (no data)
Thank you again!

Similar Messages

  • How to delete the ends of line ["\n"] in a String before parsing

    hi, i'd want to parse a String with Regex/Pattern.
    This String contains ends of line i want to delete before applying my parsing treatment.
    I've tried to do that by replacing the character "\n" with "" :
        // the original text
        String orgTextToParse = new String(buffer);
        //we create a pattern to recognize the ends of line
        String regExpEol = "\n";
        Pattern patternEol = Pattern.compile(regExpEol);
        Matcher matcherEol = patternEol.matcher(orgTextToParse);
        // the new text without end of line
        StringBuffer newTextToParse = new StringBuffer();
        // we replace the "\n" by ""
        while(matcherEol.find()) {
          String REPLACE = "";
          matcherEol.appendReplacement(newTextToParse,REPLACE);
        matcherEol.appendTail(newTextToParse);
        System.out.println("[new string start] " + (newTextToParse.toString()) + " [end of new string]");Is there an appropriate way to delete "\n" ?
    (perhaps a method of the Pattern or Matcher classes... ?)
    thanx
    Edited by: jfact on Dec 29, 2007 11:05 AM
    Edited by: jfact on Dec 29, 2007 11:06 AM

    The second (optional) argument to Pattern is a set of flags. Take a look at the Javadoc.
    The 'genomic' implication is that the EOL is an arbitrary line break for human consumption so it does look like you need to remove the EOL. I would just use replaceAll() since it can be done with one line of code (or just a couple if you pre-compile the regex) without the need for any looping.
    line = line.replaceAll("\n","");Edited by: sabre150 on Dec 29, 2007 10:27 AM

  • I'm using FF 3.5.18 and I do not want newer versions because : using in the Open in New Tab page opens the near tab and not as a FF 3.5.18 or is it possible to do that open in new tabs would be the end. of the new FF version

    I'm using FF 3.5.18 and I do not want newer versions because : using in the Open in New Tab page opens the near tab and not as a FF 3.5.18 or is it possible to do that open in new tabs would be the end. of the new FF version

    You can change a preference to make tabs open
    # at the end of all open tabs
    # immediately after the current tab.
    See: http://kb.mozillazine.org/About:config
    *Type '''about:config''' in the URL bar and press the Enter key.
    *If you see the warning, accept it (promise to be careful).
    *Filter = browser.tabs.insertRelatedAfterCurrent
    *Look at the "Value" column ('''false'''=open at end, '''true'''=open after current tab); Value = true is the default.
    *Double-click that preference to toggle the value from true to false, or false to true
    *Restart Firefox (File > Restart Firefox)
    See: http://www.mydigitallife.info/2010/02/01/change-firefox-to-open-new-tab-at-far-right-end-of-tabbar-disable-insert-next-to-current-active-tab/

  • How do I change the color of the tabs arrows at the end of the bar so I can see them better?

    How do I change the color of the tabs arrows at the end of the bar so I can see them better?
    == This happened ==
    Every time Firefox opened
    == Every time Firefox opened

    Try to find a different Firefox theme (Tools > Add-ons > Appearance/Themes):
    *Firefox 3 theme for Firefox 4: https://addons.mozilla.org/firefox/addon/firefox-3-theme-for-firefox/
    *Strata XP: https://addons.mozilla.org/firefox/addon/strata-xp/
    *Colorful Tabs: https://addons.mozilla.org/firefox/addon/1368

  • At the end of line # is coming in output file at application directory

    Hi experts,
    I am doing a file to file tunneling in which from a file server I am picking the file and putting it into SAP application server nothing is done in IR .However when the file is reaching in application server its end seprator is coming as # .I am surprised from where the #is coming at the end of every line.When  i am dowloading the same file to my local directory in that file # is not there.
    Please help me as my client is not accepting the file with endsepeartor as # .
    Might be # is coming as the apllication server is in uniq env . But how to get rid of it .Please guide me with whatever input you have in this regard.
    Regards,
    Neha

    Hi Neha,
    I think you do not have to do anything because see you said on saving the file locally, you are not able to see the # character at the end of line..........but when you are seeing in SAP window, then this # character is displayed..............so your SAP server can be a UNIX server and it is displaying the End of Line and Carriage Return ASCII characters as # because these are non-displayable characters.....
    But still if you do not want this # character to be displayed, then you can try Binary and no character encoding........then see if your file is displayed without # character.
    Regards,
    Rajeev Gupta

  • Preserve a single space at the end of line using spool command

    Hi,
    Can you please help me to write the result of an sql query into a file with the last column of the row ending with a single space?
    For example:
    COL1DATA|COL2DATA|COL3DATA<space1>
    As mentioned in the example the col3 value in the file should end with a single space. And there should not be any delimiters at the end of the row.
    I tried with set trimspool on/off. But, it didn't work. When I say trimspool on - it is trimming all the trailing spaces.
    When I say trimspool off - it is retaining all the trailing spaces to the size of the line.
    But, I do not wish to modify the file through shell commands once it is written thru spool. I mean I do not wish to append spaces to the end of a line using shell script or any other method.
    I do not wish to use other methods like UTL_FILE also.
    Please help me how to do it using spool command?
    Thank you.
    Ramana

    My requirement is that all the trailing spaces should be truncated except the last one in the row.Why?
    As you have discovered a single column in sqlplus, is always a fixed length regardless of the size of the data, if the length of the data varies the output is padded to the maximum or line size with spaces. The trim and trimpsool commands are there to remove all the spaces from the end of a line if there are any. There are no commands to trim all the spaces except one, or even to trim all the spaces except two, or three even.
    If you want such custom processing you should post process the file in the OS using sed, awk or perl or something designed for such things.

  • Character # at the end of line with transaction AL11

    Hi gurus,
    In version 46c if I upload a file to application server with program RC1TCG3Z and in mode BIN when I display the file with transaction AL11 the file is correct.
    In version 60 if I upload a file to application server with the same program and in mode BIN when I display the file with transaction AL11 appears character # at the end of some lines. How it is possible?
    Thanks,

    > I don't have access to OS level.
    Check the file on OS level (ask the admin to copy that file), it may be a display issue in the GUI.
    Markus

  • I need to specifiy the end of line in a delete comand in sed.

    Hi,
    With the substitute option ,s, I can do it easily with \\$.  Example is
    sed '
    s\Serial0\/0\\$\Serial0\/1\g
    This replaces Serial0/0 with Serial 0/1 globally only if Serial0\0 is the whole string to the end of the line i.e. it won't match Serial0/0.1 or Serial0/0.2 etc.
    When I want to remove a line with just Serial0/0 or a series of lines starting with Serial0/0 I try using the same method but it just matches on the $ character and won't allow me to find the line that ends Serial0/0.
    \Serial0/0\\$/d
    Can anyone help me here?
    I have tried all sorts of versions of the $ expression i.e. \'$, \|$. [regex]\$ etc.
    Mac OSX 10.6 with posix sed.
    Thanks in advance.

    Why are you using backslash?  Sed uses forward slash to specify a search string
    sed '/Serial0\/0$/d' input.file >output.file   # delete lines ending with Serial0/0
    sed '/^Serial0\/0/d' input.file >output.file   # delete lines starting with Serial0/0
    sed '/^Serial0\/0$/d' input.file >output.file  # delete lines with ONLY Serial0/0
    The 1 backslash I used was to escape the slash in your search string, so sed does not think that slash was the end of the regular expression.

  • MS Word - words get cut in half at the end of line

    I am doing English editing of a Word document written in Korean and then translated by someone. I am using MS Word 2011 for Mac. I have to edit about 60 of these documents, each is about four pages.
    I edited about eight of them without any problems of formatting.
    Then with the last four of them, I noticed that the words at the end of the line would get cut in half with one half of the word appearing at the end of one line, and the second half of the word appearing at the beginning of the next line.
    I don't know how to fix this.
    The documents have macro with them. Could that be the problem? Before, I was asked whether I wanted to turn on macros or not, and I chose "No" initially, and then I switched to "Yes". Now even though I went into preferences and chose "Warn me before opening macros", the documents open without this opening message.
    I don't know what to do. I know Hangeul (Korean) is written so that it doesn't matter whether words get chopped in half and the original document was written on MS Word for Koreans (and has Korean fonts and things like that).
    But the person who sent me the original document is not available and besides can't speak English so I can't ask her about this.
    It might not have anything to do with macros. I remember vaguely a while ago I had the same problem and I fixed it using some simple measure but I can't remember what I did.
    I browsed the web looking for solutions but have not found any.

    I noticed this formatting problem is present in lists but not all lists.
    If the list is
    1.
    2.
    3.
    there is no problem
    When the list is
    i.
    ii.
    iii.
    there is  a problem.
    When the list is
    A.
    B.
    C.
    there is NO problem.
    When the list is


    There IS a problem.
    I am making these lists using the list function in Word as well as the indenting function. I don't have a choice as the document already came with these lists.
    So I think this is a bug in MS Word because the words don't get chopped in half when the lists are a certain way but they do get chopped when the lists are in  another way.
    Words are chopped:
    Words are not chopped:
    Words are chopped:

  • With a high volume of tabs, scrolling to the end of the tab list often resets to the first tab

    Firefox 34.0.5
    When using a large number of tabs, around 300 inactive and 30 active tabs, when the currently selected tab is a tab on the far left side of the tab bar, attempting to scroll to the end (far right) side of the tab bar will often cause scrolling to freeze momentarily, and then reset to far left, to the currently selected tab, and continues scrolling from the beginning of the tab bar, making it unnecessarily difficult to scroll to the end of a long tabs bar.
    This occurs when scrolling up/down with the scroll-wheel on a mouse, when scrolling up/down/left/right on a touchpad, and when scrolling using the left and right scroll buttons in the tab bar.

    hello kirbysama, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • We have just upgraded to Firefox 5 at work and I no longer have a new tab thingy on the end of my tab list. I now have to go to file and choose new tab. I would love my wee plus at the end of my tabs back. I use lots of tabs!

    I thought it might be due to having colourful tabs so have disabled that but it made no difference. I prefer having my tabs under the bookmark toolbar

    You can find the New Tab button showing as a '+' on the Tab bar.<br />
    You can open the Customize window and drag the New Tab button that shows as a plus sign (+) from the Tab bar on another toolbar and it will become a regular toolbar button like the New Tab button that you have in Firefox 3 versions.<br />
    If you can't find the new tab button then click the "Restore Default Set" button in the Customize window.<br />
    If you want the New Tab button at the far right end of the Tab bar then place a flexible to the left of it.
    * New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

  • Automatic tab when reaching the end of a field with limited character number

    Hello!
    Is there a way of activating an automatic tab behaviour when the user reaches the end of a field with limited character number?
    I'd like the cursor to jump to the next field in tab order automatically.
    Possible?
    Thank you for any hints!
    Marcos

    Hi,
    What if you tried something like the following example? This works using formCalc on the change event for the field the user is currently typing into:
        var fullCount = 3
        var currentString = xfa.event.newText
        if(Len(currentString) >= fullCount)then
            xfa.host.setFocus("TextField2")
        endif
    Or, if you prefer javaScript:
        var fullCount = 3;
        var currentString = xfa.event.newText;
        if(currentString.length >= fullCount){
            xfa.host.setFocus("TextField2");
    These work very smoothly.
    Hope this helps!
    Stephen

  • BOX character at the end of line when file transferred from SAP to  WINDOWS

    Hi,
    We have a file interface program which creates a comma seperated '.txt' file in application server. Once it is created in application server in provided path an UNIX script runs which transfers this file from SAP application server to a network drive in WINDOWS platform. This file looks fine  when opened through WINSCP from SAP application server but when checked the file in network drive opened with note pad, it found each line come at the end of another line seperated by 'BOX' character.
    If we opened the file in word pad instead of note pad it looks fine.
    If any one of you have any idea to resolve this issue it will be a great help.
    Thanks,
    Ranadev

    Hi Ranadev,
    This happens because when you transfer the file to the Windows platform using the UNIX script it removes uses only a newline character at the end of each line instead of the Windows platform standard which is carriage return/newline.  The Notepad program displays this character alone as the box that you see.  If you want to verify take the same program and convert to Windows format using Notepad++ and you'll see that the same file then displays properly in Notepad.
    Regards,
    Ryan Crosby

  • Tab stealing focus - Tabs opening at the end instead next to the current one

    Two major issues for me with Firefox 4.0 Beta 9, all to do with tabs
    When I click "Open link in a new tab", lets say when I'm reading an article in an online site, it opens to the right of the last tab, instead of opening immediately to the right of the tab I'm viewing. This behaviour is not consistent, for example if I'm inside a website and I click on a menu, then it will open the tab immediately to the right, as I like. Sometimes it will not.
    What is consistent is that when I click on any of the bookmarks I've in my bookmarks toolbar the tab will steal focus and it opens at the very end. This is actually quite annoying, because sometimes I'm just opening the links I would to check later on and not at the very moment.
    Thanks

    Try this: When you are in the window you wish to be "pinned", eg; not go away when you click elsewhere, right click on the tab representing that window, and click on "pin as App tab". Can also be abbreviated as alt-p WITHOUT hitting the tab, as long as you are inside the window you wish to preserve.
    This appears to solve the "steal focus" issue, I hope it is useful to you wrt your problem.

  • My Mac has developed 2, 1 inch wide white lines vertically down either side of the screen. Is this the end?     lines

    My iMac has developed two 1 inch wide white vertical lines down either side. Is this the end? Or is there a fix?

    LornaDer,
    Run Apple Hardware Test in Extended Mode, you probably will need to run the test 2-4 times as errors do not always appear on the first pass. If you get errors then that indicates you have a hardware issue and need to take the machine into an Apple Store or AASP to be professionally diagnosed. At that point you can then determine your options.

Maybe you are looking for

  • Outlook -- Ical

    I recently bought my first mac for home use - a MacBook Air. I use MS Office 2007 at work on my PC, and would like my outlook calendar to transfer to my Mac. I have searched and searched online and in help files to figure out how to do this. It seems

  • How to exclude tables from default scheduled stats job in 10.2.0.4

    I am using Oracle default stats job GATHER_STATS_JOB in my database. But i need to exclude stats gathering for few tables as part of my business requirement.

  • Autoconfig faild after database upgrade to 10.2.0.1

    Hi I am upgrading the database from 9.2.0.6 to 10.2.0.1 with R11.5.10 on rhel4 linux. I am referring Doc "Oracle Applications Release 11i with Oracle 10g Release 2 (10.2.0.3) [ID 726982.1]". I have only one issue that when i am running autoconfig on

  • IPhone issue after OS8 upgrade

    After upgrading to OS8 my incoming phone calls also ring on my wives iPhone when we are both connected to our home wifi. How do you stop this

  • 10.9.4 not responding when logging in from screen saver

    I have a MacBook Air with Mavericks and this wee I updated to 10.9.4. I have password activated restart from screensave; everything was normal but today, when I close the display and it sleeps, at the start screen I type my password and it freezes, i