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

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

  • HT1338 I try to update twice at the end it show me could not save file or corrupt

    I try to update twice at the end it show me could not save file or corrupt

    10.7.5 ?
    Tried direct download?
    http://support.apple.com/kb/DL1582

  • On imac running10.6 I reset factory settings and start up only got logo andspinning wheel. I've tried safe mode w no luck. Tried recovery mode. Just tried shift command and v and the last three lines say dubious permission on file skipping. It stops ther.

    On imac running10.6 I reset factory settings and start up only got logo andspinning wheel. I've tried safe mode w no luck. Tried recovery mode. Just tried shift command and v and the last three lines say dubious permission on file skipping. It stops there.

    I also started in single user mode. Typed in the sbin fsck fy command. Said appears to be ok but also files were modified. When I type reboot it goes back to logo and spinning wheel

  • 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:

  • 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

  • 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.

  • Old Toad!  I'm Missing the expected DPI lines in iPhoto 6 .plist File

    Old Toad:
    Using Pref Setter to examine my iPhoto 6's com.apple.iPhoto.plist, I have discovered something very strange. Some of the lines you say we should edit are outright missing from the file. See below for lines present and not present in my plist:
    BookTargetDPI - 300 (present)
    BookTargetImageDPI - 150 (not present)
    BookTargetMediumDPI-300 (present)
    BookTargetMediumImage - 150 (not present)
    BookTargetSmallDPI - 300 (present)
    BookTargetSmallImageDPI - 300 (not present)
    The "low DPI" lines are outright missing, even after searching with Pref Setter's nice search function. Could this be the very reason that so many people are complaining about books coming back from Apple with such low quality? Should these non-present lines be added into to our iPhoto 6 plist? This could resolve the book quality issue...My most recent book was lousy and I sent it back.
    Thanks!
    STEVE

    Steve:
    I just brought up my pref file for a new library and it is missing those particular keys also. Maybe the 6.0.2 update did away with them. It looks like iPhoto is assigning 300 dpi to all portions of the book uniformly and got rid of the image dpi settings. The three book target image keys is set at 300 and probably applies to images as well.

  • Need to insert 'end of line' while writing to a file

    I am writing strings to a file using FileWriter, but have a problem writing each string on a new line.
    Here is a sample of my Code
    FileWriter MyFileWriter = new FileWriter(ToFile);
    while (NotDone){
    MyFileWriter.write(MyListModel.getElementAt(OrderListIndex) +"\n");
    OrderFileWriter.close();
    As the result, in my new file all strings appear on the same line with a weird character at the end representing new line.
    Any suggestions on how to write each string on a new line?
                   

    I am sorry.. what i gave was not the line seperator charecter....
    You can use either
    String sep=System.getProperty("line.separator");
    MyFileWriter.write(MyListModel.getElementAt(OrderListIndex) +sep);or use a PrintWriter
    PrintWriter MyFileWriter = new PrintWriter(new BufferedWriter(new FileWriter(ToFile)));
    //FileWriter MyFileWriter = new FileWriter(ToFile);
    while (NotDone){
    MyFileWriter.write(MyListModel.getElementAt(OrderListIndex));
    MyFileWriter.newLine()
    }Hope it helped

  • CR & LF characters at the end of records when using delimited flat file (CR is missing)

    Hi All,
    I have a requirement where data of SQL query needs to be loaded to a CSV file.
    The row delimiter of the CSV file has to be CR-LF.
    In the flat file connection manager, I have mentioned Header Row delimiter as "{CR}{LF}" and under columns section, row delimiter is specified as "{CR}{LF}".
    But when I open the detsnation CSV file using notepad++, I see only "LF" at the end of all rows.
    Can you please let me know how can I get both CR & LF at the end of each row
    Below is the screen shot of the flat file connection manager which I have used for CSV destination file:
    Raksha

    Hi Raksha,
    Just as Vaibhav said, I’m curious why you need use “CR & LF” as row delimiter in Flat File Connection Manage. Since you can use "CR" as row delimiter in Flat File Connection Manager and it worked fine, you can directly specify "CR"
    as row delimiter in Flat File Connection Manage.
    Besides, if you still want to replace “LF” with “CR & LF” in the text file, we can use Notepad++’s Find/Replace feature or Edit -> EOL Conversion to achieve the goal. Then we can specify "CR & LF" as row delimiter in Flat File
    Connection Manage.
    The following blog about conversion between “LF” and “CR & LF” row delimiter in Notepad++ is for your reference:
    http://sqlblog.com/blogs/jamie_thomson/archive/2012/08/07/replacing-crlf-with-lf-using-notepad.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Trouble in the colour of line when saving a AI file into PDF format

    I am using ai CS5. When i save it the colours of line get changed to some other colour.

    OK…
    How about some information? What colour is the line to begin with? What colou is it changing to? What foramt are you saving the file to? How are you determining the colour of the line after saving? What is the Document Color Mode (File menu) Of the Illustrator file to begin with? If saving as a PDF what preset are you using?

  • How to remove ^M at the end of lines?

    Hi,
    A war file is created in Windows xp. If I deployed it on Solaris + Tomcat 5.0.28, I can see ^M following each line in apps.xml and web.xml, of course, the application doesn't work properly.
    In windows xp, I used command: jar -cf myapp.war *.*, then deploy it thru Tomcat Web Application Manager.
    How can I fix the annoying ^M?
    Thanks in advance.
    Wolf

    The ^M happens because the source files are created using Windows line termination. The best way to keep this from happening is to edit your XML files in an editor that lets you choose what type of line termination to use. I use TextPad, which is great.
    ~ Robert

Maybe you are looking for

  • Reconstruction of FM Documents

    Hi All We had a GO LIVE on ECC 6.0 about 2 years back. At that time we did not implement FM. WE have decided to implement FM now after about 2 years. In this case I will have to reconstruct FM documents. The process of reconstruction of FM documents

  • Setting up a portfolio page

    I'm pretty new to dreamweaver, but have been viewing tutorials and working on my new website for a couple of weeks now and have a somewhat general question. As an illustrator, I want to have a portolio section in my website that displays about 24 sam

  • BAdI Workflows: Items rejection - problem in workflow

    Hi SRM Freaks, I'm currently working with SRM_SERVER 500(SAPKIBKS09) release, and we've implemented the SHC Approval(BADI) workflow (WS14000133). After a few SNotes installation the worklflow is quite stable, but we have some problems with rejected i

  • Is logic pro x compatible with mac os x 10.6.8 ?

    is there anyone knowing that?

  • 2 Column Label side to side in Pivot Table

    Dear Gurus, I have this pivot: 2 Column 2 Row Dim 4,Dim 5 Dim 1, Dim 2 Measures Dim 6, Dim 7 The question is, I can't arrange Dim 4 and Dim 5 side by side, but it only can arrange line this: Dim 4 Dim 5 How to arrange it to Dim 4 || Dim 5? Please Hel