ABAP Limited Number of CHAR in File

Hi All,
I am writing txt data to a flat file and it appears I am not able to print more than 616 characters.  Is their a way to expand the line so I can write more than 616 characters?
Regard,
- Helen

This how my data is defined and the code below shows how the data is processed.
TYPES:
BEGIN OF t_final,
         pernr(4)          TYPE c,
         tab1(1)           TYPE c,
         mrms(1)           TYPE c,
         tab2(1)           TYPE c,
         tab51(1)          TYPE c,
         wrkcompcd         TYPE t5u25-wccode,
         tab52(1)          TYPE c,
END OF t_final.
DATA:
gt_final        TYPE STANDARD TABLE OF t_final       WITH HEADER LINE
                                                      INITIAL SIZE 0,   
w_final         TYPE t_final,
MOVE STATEMENTS TO POPULATE DATA, there are a lot so this is what they look like.
MOVE gt_pa0001-pernr+4(4) to w_final-pernr.
MOVE 'MID'               to w_final-mid.
MOVE 'WC'                to w_final-wrkcompcd.
APPEND w_final to gt_final.
SORT gt_final ascending by pernr.
LOOP at gt_final INTO w_final.
  TRANSFER w_final TO p_fileo LENGTH 1000.
ENDLOOP.
- Helen

Similar Messages

  • Help using scanner class to count chars in file

    Hi all, I am learning Java right now and ran into a problem. I need to use the Scanner class to accurately count the number of chars in a file including the line feed chars 10&13.
    This what I have and it currently reports a 201 byte file as having 194 chars:
         File file = new File(plainFile);
         Scanner inputFile = new Scanner(file);
         numberOfChars = 0;
         String line;
         //count characters in file
         while (inputFile.hasNextLine())
              line = inputFile.nextLine();
              numberOfChars += line.length();
    I know there are other ways using BufferedReader, etc but I have to use Scanner class to do this.
    Thanks in advance!

    raichle wrote:
    Wow guys, thanks for the help! I've got a RTFMWell, what's wrong to have a look at the API docs for the Scanner class?
    and directions that go against the specs I said.Is that so strange to suggest a better option? What if I ask a carpenter "how do I build a table with a my stapler?". Should I give the man an attitude if he tells me I'd better use a saw and hammer?
    I'm also aware that it "eats" those chars and obviously looking for a way around that.
    I've looked through the java docs, but as I said, I'm new to this and they're difficult to understand. The class I am auditing req's that this be done using Scanner, but I don't see why you demand an explanation.
    Can anybody give me some constructive help?Get lost?

  • Is there a way to increase the number of "Open Recent" files that is listed Lightroom 5?

    In previous versions this was unlimited. It allowed me a quick way to view catalogs I have worked on even months ago.
    There are no options inside Lightroom 5 to adjust this that I can find.
    So is there a file I can modify in the Lightroom system folder or in the registry that will remove the limited number or increase the number allowed in the list?

    JimHess wrote:
    I agree that there really isn't a benefit to having multiple catalogs. I have two catalogs that I use. One is my main catalog that has multiple years and all of the images that I want to keep. The other one is my "test catalog" that I use for experimenting with different photo techniques. None of those images are important enough for me to want to keep them with my other ones. I don't use it very often anymore. But it's there just in case. There's not a performance hit for having thousands of images in a single catalog. The catalog is primarily a database designed for high-volume use. Having all images in a single catalog simplifies searching and organization in general. But if you're happy with multiple catalogs then go for it. Sometimes the more difficult way is easier to understand.
    Ok so let the debate begin....
    So why have multiple catalog choices at all? When you load a catalog it contains all of the images and the modification data that you have done to each picture with in each module in Lightroom.
    Beyond that you have within that catalog a 1000 folders each with a day or name for the shots taken. You still have to rifle through those files and imagines anyway all the while having a years worth of photography packed in to one single catalog. Why?
    I am a professional photographer, I shoot daily, and I import my shots each day in a folder dated and named for the shot. I create a new catalog for those folders so that I can open only that catalog and what was done with it at the time.
    It is easy for me to pop open that catalog and keep it separate from all my other days of work and back it up individually. I can quickly run back through my archives and find a client for reprints and all of the setting done for that client or project stay with the catalog.
    So why pack everything in to one master huge catalog? even if it is just data it can be a lot over time depending on how much work you do. I myself take 100s of shots per day and this is the system I like best to protect mine and my clients work.
    But really thanks for your comments I will continue working my way with all of my work spilt in to separate catalogs.
    I wont be back on these forums anytime soon because like most of them you can not get an answer to the actual question you ask instead you get berated by some people who have too much time on their hands and not enough work to.

  • Exception:"Decrease the number of char between the beginning of the document and its root element"

    I'm now using a javabean in my jsp page to parse xml;when my xml file's size is
    about 10k,it just work fine;when my xml file's size became 50k,it throws the followng
    Exception:
    Failed to open xml document,Failed to retrieve Public id or system id from the
    document. Decrease the number of char between the beginning of the document and
    its root element. But when I run this javabean in JBuild ,it works fine no matter
    how big the xml file becomes;
    Why? the error message is in the attachment.

    The prologue must be included at the top of the document, followed by the root
              element.
              joden2000 wrote:
              > what does this exception mean:decrease the number of char between the beginning
              > of the document and its root element? When my xml file is about 10k,it works
              > just fine,when it becomes 50k ,the exception show.How can I deal with this?
              

  • I recently uploaded 10.8, but I have a number of VALUABLE old files which I can no longer read because "power PC applications are no longer supported.  How can I retrieve them?

    I recently uploaded 10.8, but I have a number of VALUABLE old files which I can no longer read because "power PC applications are no longer supported.  How can I retrieve them"?

    Here is a post I assembled for another with a similar problem:
    Unfortunately you got caught up in the minor miracle of Rosetta.  Originally licensed by Apple when it migrated from the PowerPC CPU platform that it had used from the mid-1990's until the Intel CPU platform in 2006, Rosetta allowed Mac users to continue to use their library of PPC software transparently in emulation.
    However, Apple's license to continue to use this technology expired with new releases of OS X commencing with Lion (and now Mountain Lion).  While educational efforts have been made over the last 6 years, the fact is that Rosetta was SO successful that many users were caught unaware UNTIL they upgraded to Lion or Mountain Lion.
    Workarounds:
    1. If your Mac will support it, restore OS X Snow Leopard;
    2.  If your Mac will support it, partition your hard drive or add an external hard drive and install Snow Leopard into it and use the "dual-boot" method to choose between your PPC software or Lion/Mt. Lion;
    3. Upgrade to an Intel compatible versions of your software, or find alternatives that will open your data files;
    3.  Install Snow Leopard (with Rosetta) into Parallels:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439
    NOTE: STEP ONE of the instructions must currently be completed on a Snow Leopard or Lion Mac and the resulting modified Snow Leopard.cdr install file can then be moved over to your Mountain Lion Mac for completion of the remaining steps.
    NOTE 2:  Computer games with complex, 3D or fast motion graphics make not work well or at all in virtualization.

  • How can I convert a number to char in javascript

    How can I convert a number i.e ascii number to char in javascript.
    ex: 55 to A

    How can I convert a number i.e ascii number to char in javascript.
    Quite simple: By asking in a forum that deals with javascript and not with java.
    Have no clue...
    Maybe on http://www.irt.org

  • How to load file thru reader which contains non-english char in file name

    Hi ,
    I want to know how to load file in english machine thru reader which contains non-english chars in file names (eg. 置顶.pdf)
    as LoadFile gives error while passing unicode converted file name.
    Regards,
    Arvind

    You don't mention what version of Reader?  And you are using the AcroPDF.dll, yes?
    Sent from my iPad

  • Serial number adobe has on file for me for my Adobe Acrobat 9 pro is not working

    I lost the installation disc for my long time love Acrobat 9 pro.  I checked with adobe and the serial number they have on file for me is not working on my downloaded version of 9 pro.  I have a running copy of the software on another machine.
    How can I solve this problem?

    start here, http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html
    if that info fails to resolve the problem, contact adobe support  https://helpx.adobe.com/contact.html

  • Column size and number of chars

    I have fixed Jtables column header size.
    when I put a large text in this colums ,half of text is hidden. I know this problem is solved with setAutoResizeMode, bat I don't wont to use it.
    I wont to know how many chars can I put in this column(with fixed size),
    How can I return number Of chars or length or text which can be possible tu put fixed columean size?

    Well, you can do something like (untested)
    TableColumnModel tcm = table.getColumnModel();
    TableColumn col = tcm.getColumn( n );
    int cw = col.getMaxWidth();
    String st = col.getHeaderValue().toString();
    JTableHeader header = table.getTableHeader();
    FontMetrics fm = header.getFontMetrics( header.getFont() );
    for( int sw = fm.stringWidth( st ); sw > cw; ) {
         st = st.substring( 0, st.length()-1 );
         sw = fm.stringWidth( st );
    col.setHeaderValue( st );That should at least give you some ideas.

  • Changing a number in an excel file that has been changed to a PDF

    Changing a number in an excel file that has been changed to a PD ?

    Hi llkwx,
    I would like to confirm ,do you want to change the page number of the PDF  or any other number in the data given in that PDF?
    For changing the page number display
    You can select Page Thumbnail option from the left hand side .In that panel ,right click and select the option "Number Pages" from the drop down menu.You can further change the page numbers as per your requirement.
    Adding page numbers to PDF
    Tools>Pages>Edit Page Design>Header and Footer>Add Header and Footer>click Insert Page Number
    Do write us back with your response .We will be glad to help you out with your queries.
    Regards
    Sukrit Dhingra

  • How can I get the number of chars in a String, without countig the Spaces?

    When I do String.length(), he returns the length with Spaces, but I want the number of chars and numbers.
    thx

    I'm afraid you'll need to write a method of your own for that. It's very simple fortunately:public static int getLengthWithoutWhitespace(String s) {
        java.util.StringTokenizer st = new java.util.StringTokenizer(s, " \t\r\n");
        int counter = 0;
        while (st.hasMoreTokens()) counter += st.nextToken().length();
        return counter;
    }This code is not tested... Here's another, a bit more reliable approach that simply passes through the characters of the string:public static int getLengthWithoutWhitespace2(String s) {
        int counter=0;
        for (int i=0; i < s.length(); i++)
            if (Character.isWhitespace(s.charAt(i))) counter++;
        return counter;
    }

  • Failed to start essbase process:  number of back up files exceeds limit

    Can someone help to take a look at this?
    More details is logged in bug 11887650
    Failed to start essbase process, message in log file:
    11/03/18 11:44:10 Start process
    Info: Essbase is reducing the number of soft file descriptors because the 32K limit has been exceeded. Exceeding the limit may significantly increase application load time.
    Environment variable [HYPERION_LOGHOME] is set - use it to define Log location folder.
    Log location is [u01/APPLTOP/instance/BIInstance/diagnostics/logs/Essbase/essbaseserver3/essbase].
    ODL log location is [u01/APPLTOP/instance/BIInstance/diagnostics/logs/Essbase/essbaseserver3/agent-log].
    [Fri Mar 18 11:44:10 2011]Local/ESSBASE0///4072736080/Warning(1056807)
    The number of back up files found on disk (40) exceeds the configured limit which is 2
    [Fri Mar 18 11:44:10 2011]Local/ESSBASE0///4072736080/Info(1051283)
    Retrieving License Information Please Wait...
    [Fri Mar 18 11:44:10 2011]Local/ESSBASE0///4072736080/Info(1051286)
    License information retrieved.
    65535 Essbase user 65535 Planning user system
    Logging configuration class "oracle.core.ojdl.logging.LoggingConfiguration" failed
    oracle.core.ojdl.logging.LoggingConfigurationException: ODL-52050: unable to process file '/u01/APPLTOP/instance/BIInstance/Essbase/essbaseserver3/bin/logging.xml', XML parse exception (line: 5, column: 38): org.xml.sax.SAXParseException: Attribute "class" is required and must be specified for element type "log_handler".
    Mar 18, 2011 11:44:14 AM oracle.security.jps.az.internal.common.scanner.PolicyChangeScannerThread run
    INFO: Policy store cleanup thread started.
    Mar 18, 2011 11:44:14 AM
    INFO: EPMCSS-CSS Fusion system initialized successfully. : [2724 ms]
    [Fri Mar 18 11:44:14 2011]Local/ESSBASE0///4072736080/Info(1051199)
    Single Sign-On Initialization Succeeded !
    [Fri Mar 18 11:44:14 2011]Local/ESSBASE0///4072736080/Info(1051639)
    Info: Essbase is reducing the number of soft file descriptors because the 32K limit has been exceeded. Exceeding the limit may significantly increase application load time.
    Essbase 64-bit - Release 11.1.2 (ESB11.1.2.1.0B154)

    I am an infrastructure idiot (I have all kinds of other idiocy available as well -- I am versatile), but I found:
    http://troubleshooot.wordpress.com/2010/05/26/essbase-login-is-not-working/
    To my ignorant eyes, this looks like some kind of *nix-centric issue.
    If the post doesn't help, perhaps one of the infrastructure guys will chime in.
    Regards,
    Cameron Lackpour

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • What is the limited number of users?

    What is the limited number of users?

    WHile your question is a bit too vague to answer with certainty I'll start with a res[ponse and you can fine tune it if it is not what you are asking about.
    The number of users of any single product for a single user license at any given moment in time is one.

  • What api would I use to get the number of chars in string?

    What api would I use to get the number of chars in string?

    Assuming that you really mean that you want the number of charaters in a String (not string), that would be documented in java.lang.String
    The method is length()

Maybe you are looking for

  • Safari and Mail Crashing

    Safari and Mail on my iPhone have been crashing alot over the last two days. It has been happening the most when I am on the "Edge" network. Safari seems to do it when I have 3 or more pages open. Mail crash when I try to send a "reply" message. Is a

  • Can I use 2 ipods on one itunes account?  I have also used 2 computers.

    I'll try to make this clear. I had one computer and one ipod set up on itunes. The computer ran on Windows XP. I gave the computer to my niece and left the itunes account alone. I bought a new computer that runs Windows Vista. I installed a new itune

  • Free at Last, Free at Last... I Finally Left Verizon - Much Cheaper and BETTER Service!!

    I've been with Verizon over six years and I listened to their marketing of how they're the best and how the fees are higher but "we have better service".  Now that I left?  Noooooo greater feeling.  I know, I know... the fanboys will be all over me o

  • Chapter Numbers in a table of contents

    Hi Experts, I'd like to add a table of contents (TOC) including chapter numbers in my template. For example: Table of Contents 1. Title 1.1 Sub-Title 1.1.1 SubSub-Title To do so: •     I created a template with a table of contents. •     In the repor

  • Special KB characters change when sending

    Like the function to just tap the letter, hold it and you get the other characters, but once you sending off the message, it changes back to the actual letter. Why?