Character # at the end of file in 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,

Hi,
U need to use one class. Refer below given code.
TYPES : BEGIN OF lt_record_input,
          rec(1000) TYPE c,
        END OF lt_record_input.
DATA : li_record_input TYPE TABLE OF lt_record_input .
DATA lv_cr TYPE c.
lv_cr = cl_abap_char_utilities=>cr_lf.
CONCATENATE '/opt/isv/cti_app/DOCU/INCOMING/PROCESSED/UNSUCCESSFUL/'
gv_filename INTO lv_path.
OPEN DATASET lv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
  DO.
    READ DATASET lv_path INTO lw_record_input-rec.
    IF sy-subrc EQ 0.
      REPLACE lv_cr IN lw_record_input-rec WITH space.
      APPEND lw_record_input TO li_record_input.
    ELSE.
      EXIT.
    ENDIF.
  ENDDO.
  CLOSE DATASET lv_path.
ENDIF.
Hope it help u.

Similar Messages

  • 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

  • Strange character at the end of some file/folder names

    I'm getting a strange character at the end of some of my file and folder names. This is it:  When I enlarge it, it says "private use" on the top and bottom, "E000" on the left side, and "F8FF" on the right side. It acts like a character within the font, but I'm not sure why it's there.
    In case that didn't work, I'm going to try to attach or embed a gif of the character. I'm not sure if it will work or not.
    Also, some longer file names seem to be dleeting some of the letters and are inserting a pound sign and a few numbers (e.g. #34) in place of the letters.
    What's going on?
    As usual, thanks in advance,
    Lloyd

    I thought that might be it...at first. Then I found some file names that were nowhere near 32 characters long whose names were truncated.
    It's not a huge problem, except in QuarkXPress when I collect the files for output and I have to reconnect to the ones whose names have been changed (to protect the innocent, I suppose).
    Thanks for the input mark.
    Lloyd

  • 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

  • INPUT THE END-OF-FILE CHARACTER/ CRTL-C in Jdeveloper

    I'm trynta input the end-of-file character in the program input window (JDeveloper) so i can exit the while loop below. The window accepts all other characters except the CTRL-C character sequence in windows. How does the user exit this loop?
    while (input.hasNext()) { //loop until EOF character
    try {
    //retrieve data to be input
    record.setAccount(input.nextInt());
    record.setFirstName(input.next());
    record.setLastName(input.next());
    record.setBalance(input.nextDouble());
    if (record.getAccount() > 0) {
    output.format("%d %s %s %.2f\n", record.getAccount(),
    record.getFirstName(), record.getLastName(),
    record.getBalance());
    } else {
    System.out.println("Account number must be greater than 0");
    } //end try
    catch (FormatterClosedException e) {
    System.err.println("Error writing to file.");
    return;
    } catch (NoSuchElementException e) {
    System.err.println("Invlaid input. Please try again.");
    input.nextLine();
    System.out.printf("%s %s\n%s", "Enter account number (>0), ",
    "first name, last name, and balance.", "? ");
    } //end while
    //...

    Hi,
    U need to use one class. Refer below given code.
    TYPES : BEGIN OF lt_record_input,
              rec(1000) TYPE c,
            END OF lt_record_input.
    DATA : li_record_input TYPE TABLE OF lt_record_input .
    DATA lv_cr TYPE c.
    lv_cr = cl_abap_char_utilities=>cr_lf.
    CONCATENATE '/opt/isv/cti_app/DOCU/INCOMING/PROCESSED/UNSUCCESSFUL/'
    gv_filename INTO lv_path.
    OPEN DATASET lv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc = 0.
      DO.
        READ DATASET lv_path INTO lw_record_input-rec.
        IF sy-subrc EQ 0.
          REPLACE lv_cr IN lw_record_input-rec WITH space.
          APPEND lw_record_input TO li_record_input.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE DATASET lv_path.
    ENDIF.
    Hope it help u.

  • Is it possible to export to PDF without a Return character at the end of every line?

    I am the author of a book whose first edition has been typeset and extensively amended in InDesign.  I now need to rewrite the first edition to produce a second edition.
    When I copy-and-paste from the PDF with which the publisher has supplied me into MS Word, I get a Return character at the end of every line, which means that text doesn’t automatically wrap and sentences are fragmented so that I get spurious grammar errors.
    I know that not all PDF files have a Return at the end of every line.  Is it possible to restrict Returns to the end of paragraphs when exporting from InDesign to PDF?  If so, what should the publisher be asking the typesetter to do?

    Thanks for your lightning-swift and helpful replies, Mike & Ellis.
    I don't have InDesign myself, so I know hardly anything about how it's used.  I'm just trying to research what an internationally-known publisher should already know how to do, but apparently doesn't!
    Following your suggestion, Mike, I have downloaded the trial version of Acrobat and exported the PDF to a Word file.  This has been moderately successful as there are far fewer spurious Return characters, just a few that I suspect may be hangovers from the typesetter having introduced soft returns in ID.
    As you've suggested Peter and Ellis, I'll suggest that the publisher asks the typesettter to export from ID to RTF and Text to see if that's even better.
    Message was edited 15:24 GMT by: AlanS5100

  • "\" Character at the end of alias source in databas

    Recently our application developer team faces a problem with crystal report v.14.0 (2011). They require to place “\“character at the end of alias source in database and there are no other character to replace the backslash. All the clients that do the designing, operate on x64 bit operating system (windows 7_x64) and this version of crystal report replaces “ \”  with  “ _ “ character.
    We recently found a patch file that in the following registry category fixes the mentioned issue only in 32bit operating systems but no solution can be found so far for 64bit OS.
    HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\Database]
    "InvalidAliasCharList"="!(){}"
    As the demands in the market force us to move to 64bit OS versions, finding a solution for this issue is crucial and we require your assistant to solve this subject.
    Regards,

    JoeBorland wrote:
    File is large about above 20,000 lines.
    I need to find the optimum solution.
    Like reading a file and find the end of character and writing into a file.
    The above way is correct or any other way?Try it and see. Such a program will only be a dozen lines long.

  • Ftp/xml: @ character at the end

    I receive a file from an AS/400 machine. The process is as follows: AS/400 generates an xml file. It ftps the file to a folder location. Biztalk uses the file adapter to pick this up.
    The weird thing that's happening is that the AS/400 generates a proper xml file. But when the AS/400 ftps this file to a Windows, it appends a bunch of @ characters at the end. Does somebody have an explanation? Additionally, can I workaround with this in
    Biztalk?

    Never seen a case when files from AS/400 had ‘@’ in it. Even you have secured ftp (FTP-S), the chances for some character to be appended at the
    end is less. I have seen BOM (Byter Order Marks) which appear at the beginning of the file content as opposed to end of the file content. Just to remove the probability of this problem due
    to “secured” part of ftp, drop (or ask the hosting team) the file manually at the ftp folder and see what comes to BizTalk. Just remove AS/400 from the picture and drop the file manually to see whether is it due to the end
    system (AS/400) to due to any process in the transportation (network infrastructure) add this extra character at the end of the file.
    If it’s the problem due to the source system (AS/400) or infrastructure, try to resolve the problem at their end, if not only solution is to use the custom receive pipeline component to remove the any additional characters from
    the file.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Itunes was working fine. Tries to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue.

    Itunes was working fine. Tried to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue. Program still works, simply cannor upgrade.

    Thanks b noir,
    I tried this solution without success. After FixIt ran and didn't find a problem, either in looking for issues with "software upgrade" or "iTunes" it kindly offered to help me uninstall iTunes. I had thought of this as a possibilty but it seems to me that if you do that you lose a lot of "non-native-to-Apple" information you might have entered. I did this once and recovery was painfull. Is there a way to uninstall iTunes without losing all of that sort of thing? Any help would be appreciated.

  • I really need help asap please..i have deadlines.."the end of file reached"

    im currently running logic pro 7 academic on my g5--"the end of file reached" pop up occured (i think it was error code 43) and it said something about preferences i accidently hit the save button and i guess it saved the preferences(since then it has not popped up again)--i cannot hear anything from any of my files--all i am able to is basically look at the arrange window with 4 audio tracks and tracks from my keyboard---when i try to create audio instruments a pop up says "no more tracks available"--ive reloaded both of the logic discs and still am unable to get anything to work

    OK, that's quite a lot in one go...and you have deadlines..let's see if we can clear things up?
    You say you cannot hear anything...Have you ever had output coming out of Logic or is this your first try? If you can't hear anything, how on earth are you recording?
    (I take it the "end of file" message shows up while recording?)
    Are you using an audio interface or running straight out of the G5's internal audio card?
    I've never had that "end of file" message but I suspect it can have something to do with the maximum recording time.
    You set it under the Audio menue/Set Audio Record Path (Apple/A)
    Now, to the Tracks:
    Have you ever run the Set-Up Assistant (Logic Pro menue/Preferences/Logic Set-Up Assistant)? If not, I recommend you do. Here you can set the framework for your Audio Environment, How many tracks, busses etc.
    Sorry if this is too basic for you, i'ts hard to tell how deep in to the application you are.
    Good Luck,
    Erik

  • How to hard code a records at the end of file

    Hello experts,
    I am doing IDOC to File scenario,I need to append 4 records at the end of file each time it is created in XI(These four records are need to be hardcode in the o/p file) .
    For example with IDOC to File,the o/p file like
    1 name number sal
    2 name number sal
    3 name number sal
    But my expected file is
    1 name number sal
    2 name number sal
    3 name number sal
    1 abc    123   2345676
    2 bdc     234 11111111
    3 aaa     123 11111111
    4 fffff       567 33333333
    Every time these 4 records are common.How can i hard code the last 4 records in XI.
    could u plz help me in this.Thanks in advance.
    Regards,
    KP

    Hi,
    Hope u are doing File Content Conversion in ur receiver adapter.
    Lets assume that u have structure like below
    -Record
      -RecordSet
        X
        Y
        Z
    Add one more Recordset like for Trailer records
    -Record
      -RecordSet
         X
         Y
         Z
      -TrailerRecordSet
         Trailer
    In ur mapping hardcode the Trailer node with the four lines (u can use '\n' char to represent nextlines)
    In ur Receiver communication channel add the TrailerRecordSet also...
    RecordSetStructure:  RecordSet,TrailerRecordSet
    TrailerRecordSet.fieldSeparator -
    '0'
    TrailerRecordSet.endSeparator -
    '0'
    RecordSet Parameters....
    Regards,
    Sudharshan

  • Blank at the end of file

    Hi,
    i must generate a text file with the following rule : each field of a record have a delimited size ; my problem is that by the end of the file the last field is truncated, there is no blank.
    Just a example :
    DATA: begin of struc_t,
        name      type char20,
        surname type char20,
    end of struc_t.
    struct_t-name = 'MYNAME'.
    struct_t-surname =  'MYSURNAME'.
    After TRANSFER call, the file is like :
    MYNAME              MYSURNAME
    represent the end of file, and i would like to have 11 blanks like this :
    MYNAME              MYSURNAME          
    So what can i do ?
    Cheers.

    how did you transfer to the dataset, do it using OFFSETS
    data : TRANSFER_STRUCTURE(500).
    TRANSFER    struct_t-name  to  TRANSFER_STRUCTURE+0(15).
      TRANSFER    struct_t-surname  to  TRANSFER_STRUCTURE+16(25).

  • Which version of Reader 9 (if any) has the End of File button?

    I sell CDs containing over 100 linked pdf files created in InDesign 4. The CDs also contain version 6 of Reader for navigating the bookmarks and links in the pdf files. The disc contains a Tutorial.pdf file with navigation instructions. These refer to the navigation buttons visible in Reader 6 and make extensive use of the End of File button (green with a white left pointing arrow) as a quick means of getting back to the Start file which is the portal to all the others.. Some owners who have Reader 9 installed say that the End of File button is not displayed on their screen. This has come from owners using XP, Vista and Win 7. Is there a version of Reader 9 for Windows that retains this button, please?

    What you are referring to is the First Page and Last Page buttons:  "|<"   and ">|" respectively.  These can be found by right-clicking on an empty part of the File toolbar and navigating to "Page Navigation Toolbar" in the More Tools pop-up-window.  They are not check-marked by default which is why they don't display.  The user can turn them on by placing a checkmark next to those icons in the pop-up window for "More Tools"

  • Help with "The end of file was reached" error message in Outlook 2011

    Hello, I am having an issue with Outlook 2011 that after 24 hours or so I am getting a “The end of file was reached” error message code -17895.
    Right after this error I get a disconnected from Exchange server and even after re opening the client it stays like this for about 5 minutes then restores. Has anyone else seen this error? I am able to reproduce this on multiple machines with multiple Exchange
    2010 mailbox accounts.  

    Same situation here:
    Outlook 2011 for Mac using Office 365, 3 users have reported the End of File Reached error when trying to send email.
    I have logged a ticket with Microsoft support and they have followed up with the following directions.
    1.    
    Repair Disc Permissions On A Mac
    o   
    1
    Log in to your computer with the administrative account. Open the hard drive, go into the "Applications" folder and then open the "Utilities" folder. Now launch the Disc Utility application.
    o   
    2
    Select your main hard drive. You'll probably see two options--one is the manufacturer's name of the disc and the other name is what you've called it. Choose the name of your hard drive.
    o   
    3
    Click on "Verify Disc Permissions" and the computer will perform a diagnostic test. After a few minutes, the problems with disk permissions will be reported in the Disc Utility window.
    Click on "Repair Disc Permissions" to fix them.
    o   
    4
    Insert your Mac OS X installation disk and restart your computer. Hold down the "C" key on your keyboard to boot from the disk rather than your computer's hard drive. Cancel the OS
    installation and open Disc Utility.
    o   
    5
    Click on "Verify" to have Disc Utility check your computer's hardware. Notice that this option is only available when the program is run from the CD. You can only test the hardware
    of a computer that isn't running the program locally.
    o   
    6
    Use Disc Utility to try and repair any hardware errors that it detects. Usually fixing the permissions will be enough to maintain your computer. If you still experience frequent lockups
    and crashes, then you should try repairing it with this method.
    Tips & Warnings
    If you use your computer for high-performance work, such as software compiling or video editing, then you may want to check the permissions weekly. Most computer users will only need
    to fix permissions after noticing problems with applications or the operating system.
    If the computer's performance does not improve after repairing permissions, then you'll have to troubleshoot for other issues. You may want to purchase more RAM for your computer to
    help speed it up.
    Permissions repairs will not correct problems caused by applications that did not use Apple's installer. Try deleting all files associated with the application and then reinstalling
    it.
    Avoid repairing the permissions after you've booted the computer from the OS X CD. It won't cause problems to your drive, but the version of "Disc Utility" on the CD may not be updated
    to address permission changes that are required by certain software updates.
    Secondly, the information for repairing an Outlook 2011 database is as follows:
    http://support.microsoft.com/kb/2360509

  • SOLUTION: Dealing with the 'end of file' error

    Adobe have not only failed to fix the constant 'end of file' error after 6 versions but also, even worse, failed to make the error in any way useful. If you get this error when building a complex project, you have to completely rebuild your project to find the cause. This is a huge issue when dealing with projects like the one I'm currently doing: 7 different discs (projects), each with about 20 timelines.
    A simple 'end of file: NAME OF FILE' in the error message would solve this.
    However, luckily (as I would have otherwise killed myself by now), I have found a much quicker way of finding problematic files. This is the Windows solution, but hopefully there's an equivelant Mac way of doing it.
    Get Process Monitor from here.
    Run it, and hit the Filter button on the toolbar.
    Add filters for:
    Process Name is Adobe Encore.exe
    Operation is ReadFile
    Go start your build process
    When the 'end of file' message appears, switch over to Process Monitor and scroll down to the bottom
    Scroll up until you see the last time a file of yours was accessed
    There's your culprit
    The actual problem with the file usually seems related to Encore not dealing with externally created files very well. Import a non-DVD/blu-ray ready copy of your video and transcode it internally, that seems to fix it.
    Adobe needs to stop work on every new feature or bugfix for Encore, and fix the error messages. Bugs are inevitable, but not having adequate error messages or logging so the bugs can be worked around is unforgiveable. It's a simple matter and should be fixed immediately.

    Here is where you tell Adobe about bugs, and also where you ask for new features
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Maybe you are looking for