Question: why default line length as 72 ?

hello everyone,
i was just adviced to stick to default line length in abap editor as 72 [which ABAP recommends too] or else in complex and lengthy programs it will generate core dump !!
is it true ?
and why it is adviced to stick to 72 length  and not greater than that and why it will give core dump ??
thanks in advance

@Rohan,
ABAP is not new language. It old language and intiallly it support the 72 character per row. Which is the non graphical display support maximum 80 column per row and each row has begin some previlage space around the 8 characters. 
But after each release and graphical display come to exist, It support more then 72 character per line, it is not mandatory but in case of dynamic program(program generate runtime). it has internal check  character per rows should not be 72 character/line. For dynamic program you should have to restict the line size which should not go beyond the 72 character.
Kind Regards
Ravishankar Lanjewar
Moderator Message: Please check the date of the original post before replying. Thread locked.
Message was edited by: Suhas Saha

Similar Messages

  • How can i plot a histogram with using the results of Line Length

    PLS HELP.How can i prepare a histogram with using the results of line length code(It is somewhere in the middle).
    This is a final exam take-home question. I would appreciate if you can help?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.text.*;
    import java.io.File;
    public class WordAnalyser extends JFrame implements ActionListener
    private JMenuItem jmiAc, jmiSil, jmiCikis, jmiAnaliz, jmiHakkinda, jmiKullanim;
    private JTextArea jta1, jta2;
    private JFileChooser jFileChooser = new JFileChooser();
    File hafizada;
    File aktarilan = new File("Sonuc.txt");
    // Main method
    public static void main(String[] args)
    WordAnalyser frame = new WordAnalyser(); /* Ana ekran olusturulur */
    frame.setSize(400, 300); /* Degerleri belirlenir */
    frame.setVisible(true); /* Gorunebilirligi ayarlanir */
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    public WordAnalyser()
    setTitle("Serkan Ozgen Dosya Inceleme Programina Hos Geldiniz");
    JMenuBar mb = new JMenuBar();
    setJMenuBar(mb);
    JMenu fileMenu = new JMenu("Dosya");
    fileMenu.setMnemonic('F');
    mb.add(fileMenu);
    JMenu helpMenu = new JMenu("Degerlendirme");
    helpMenu.setMnemonic('H');
    mb.add(helpMenu);
    JMenu kullanimMenu = new JMenu("Kullanim Kilavuzu");
    mb.add(kullanimMenu);     
    fileMenu.add(jmiAc = new JMenuItem("Ac", 'A'));
    fileMenu.add(jmiSil = new JMenuItem("Sil", 'S'));
    fileMenu.add(jmiCikis = new JMenuItem("Cikis", 'C'));
    helpMenu.add(jmiAnaliz = new JMenuItem("Analiz", 'D'));
    helpMenu.add(jmiHakkinda = new JMenuItem("Hakkinda", 'H'));
    kullanimMenu.add(jmiKullanim = new JMenuItem("Kullanim"));     
    getContentPane().add(new JScrollPane(jta1 = new JTextArea()), BorderLayout.CENTER);
    getContentPane().add(jta2 = new JTextArea(), BorderLayout.SOUTH);
    jmiAc.addActionListener(this);
    jmiSil.addActionListener(this);
    jmiCikis.addActionListener(this);
    jmiAnaliz.addActionListener(this);
    jmiHakkinda.addActionListener(this);
    jmiKullanim.addActionListener(this);
    public void actionPerformed(ActionEvent e)
    String actionCommand = e.getActionCommand();
    if (e.getSource() instanceof JMenuItem)
    if ("Ac".equals(actionCommand))
    Ac();
    else if ("Sil".equals(actionCommand))
    Sil();
    else if ("Cikis".equals(actionCommand))
    System.exit(0);
    else if ("Analiz".equals(actionCommand))
    sayim();
    else if ("Hakkinda".equals(actionCommand))
    JOptionPane.showMessageDialog(this,
    "!!!! Bu program text analizi gerceklestirir. Her hakki saklidir SERKAN OZGEN!!!!",
    "Bu program hakkinda",
    JOptionPane.INFORMATION_MESSAGE);
    else if ("Kullanim".equals(actionCommand))
         JOptionPane.showMessageDialog(this,
         " Ilk once dosya menusunden Ac i tiklayarak analiz etmek istediginiz Dosyayi seciniz (Lutfen uzantisi *.txt \nveya *.log olsun). Daha sonra Degerlendirme menusunden analizi tiklarsaniz dosyanizda kac adet rakam, harf, \ncumle ve kelime oldugunu gorebilirsiniz. Simdiden kolay gelsin",
         "Programin kullanim detaylari",
         JOptionPane.INFORMATION_MESSAGE);
    private void Ac()
    if (jFileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
    hafizada = jFileChooser.getSelectedFile();
    Ac(hafizada);
    // Acilan Dosyayi ana ekranda gostermeye yariyan bir method
    private void Ac(File file)
    try
    // Acilan dosyayi okuma ve ana ekranda gosterme
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta1.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    // Temizle tusunun hangi ekranlara etki edecegini secme
    private void Sil()
    jta1.setText("");
    jta2.setText("");
    private void sayim()
    int buff;
    int sayac = 0;
    int Cumleler = 0;
    int Kelimeler = 0;
    int Karakterler = 0;
    int Satirlar = 0;
    int Rakamlar = 0;     
    boolean start = true;
    int linenum = 0;     
    try
    FileInputStream instream = new FileInputStream(hafizada);
    FileOutputStream outstream = new FileOutputStream(aktarilan);
         BufferedReader infile = new BufferedReader(new InputStreamReader(new FileInputStream(hafizada)));
    PrintStream out = new PrintStream(outstream);
         out.println("---Kelime Avcisinin Sonuclari---");
         String line = infile.readLine();
         while (line != null){
         int len = line.length();
         linenum++;
         line = infile.readLine();
         out.println("Line Length :"     + linenum + "\t" +len);
    while ((buff=instream.read()) != -1)
    switch((char)buff)
    case '?': case '.': case '!': /* Eger "?", "." veya "!" gorurse program cumleleri ve kelimeleri arttirir*/
    if (start == false)
    Cumleler++;
    Kelimeler++;
    start = true;
    break;
    case ' ': case '\t': case ',': case ';': case ':': case'\"': case'\'': /* Eger /t,;:\ ve \" bu isarteleri goruruse program kelimeleri arttirir */
    if (start == false)
    Kelimeler++;
    start = true;
    break;
              case 'n': case '\n': /* Eger \n gorurse satirlari arttirir */
              if (start == false)
                   Satirlar++;
                   Kelimeler++;
                   start = true;
              break;
    default:
    if (((char)buff >= 'a' && (char)buff<='z')|| /*a-z, A-Z veya - degerlerini gorurse karakterler arttirilir */
    ((char)buff >= 'A' && (char)buff<='Z')||
    ((char)buff == '-'))
    Karakterler++;
    if ((Kelimeler % 50) == 49)
    if (start == true)
                   out.println();     
    out.print((Kelimeler+1) + " ");
    out.print((char)buff);
    start = false;
              if ((char)buff >='0' && (char)buff <='9') {  /* 0-9 gorurse rakamlari arttiri */
                   Rakamlar++; }
    }// switch
         }//while
    instream.close();
    out.println();
    out.println();
    out.println("Karakter sayisi: " + Karakterler);
         out.println("Kelime sayisi: " + Kelimeler);
    out.println("Cumle sayisi: " + Cumleler);
         out.println("Satir sayisi: "+ Satirlar);
         out.println("Rakam sayisi: "+ Rakamlar);
    outstream.close();
    try
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(aktarilan));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta2.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    catch (Exception e)
    System.out.println(e);
    }

    Why is it that you're not interested in IOExceptions?
    catch (IOException ex)
    } Empty catch blocks is a hallmark of foolish Java code. At least print out the stack trace.
    %

  • Arrowhead adds to line length?

    Ai 10.0.3
    OSX 10.3.4
    I am trying to dimension some signage for a set of architectural plans. Previously I had always used 'Filter > Stylize > Add Arrowheads...' to do this. Recently I've found that arrowheads are also available under 'Effect > Stylize > Add Arrowheads...'. I really enjoy all the live effects and the ability to edit them after the fact as well as preview when first creating them. I particularly enjoy the live arrows from the standpoint that when I move the line endpoint, the arrowhead automatically reorients to the correct angle.
    That's all good, but on to the problem. Both types of arrowheads do NOT fall within the original line endpoints. It boggles my mind why someone would design arrowheads to behave this way? It obviously makes dimensioning very difficult and time consuming. Instead of snapping to the endpoints of some artwork or using the transform palette to numerically enter a distance, compensations have to constantly be made for the length of the arrow.
    I've always had to do this with the 'filter arrows'. It was a pain, but since the arrow was actually artwork, I could get info about it concerning how much length it added. The 'live arrows' do not even provide this level of workaround because being 'live', they are not selectable as artwork without expanding their appearance, which removes their 'live' characteristics.
    Question? My question is this - does anyone know of a method whereby the arrowhead (live or filter) does NOT add to the overall line length? Has anyone come across another, more efficient workaround to what I've been trying.
    I know of one fairly elegant solution in plugin form - HotDoor CadTools. I would love to be able to use that for a number of reasons, but have not been able to get management approval for purchase. So in the meantime, any help would be greatly appreciated.
    Thanks.

    > How is it possible to add your own symbol to the start and end of a path...
    I have long argued that anything you define as a Symbol (in the Symbols Palette) should be made available for application as Arrowheads. Meanwhile, try this to get a basic principle down:
    1. Rectangle Tool: ClickShiftDrag to draw a small square.
    2. DoubleClick the rotate tool to rotate the square 45 degrees.
    3. Press the minus key to get the Remove Point Tool. Click the leftmost point to delete it. You now have a right-pointing triangle. Give it a fill of none, solid stroke.
    4. Drag the triangle and drop it into the Brushes Palette. In the resulting dialog, choose Pattern Brush.
    5. Drag the new Pattern Brush from the Brushes Palette onto the page.
    6. Note that the bounding box of the triangle is rectangular. This is a Group which contains two objects: The triangle you drew, and an unfilled, unstroked rectangle, which is under the triangle in the stacking order. This invisible rectangle is what determines the "tile size" of the artwork when it is used in the Brush.
    7. With the DirectSelect Pointer, press Alt and drag across where you know there is an edge of the invisible rectangle, without dragging across the triangle. This "directSelects" the whole rectangular path.
    8. Transform Palette: Click one of the right points of the 9-point proxy icon. Then set the Width to some small value, like 1 pt. (but not to zero).
    9. Deselect. Then normal-select the whole group. Press Alt. Drag and drop the group onto the End Tile of your Pattern Brush.
    10. The Group is still on the page. DoubleClick the Rotate tool and rotate it 180 degrees. AltDrag and drop this onto the Start Tile of your Pattern Brush.
    11. Rectangle Tool: Draw a small square. Fill of none. Stroke of none. AltDrag and drop this onto the Side Tile of your Pattern Brush (the tile where the very first triangle originally appeared when you first defined the Brush. This replaces the Side Tile of the Brush with, effectively, nothing.
    Now try it out:
    12. Line Tool: Draw a line. Apply the Brush. Note that the "arrowheads" are positioned very near the ends of the path, instead of protruding out beyond them as do AI's normal Arrowheads.
    13. DirectSelect one endpoint of the path. Drag it nearer and nearer the other end. Note that even when it gets very near, the triangles retain their shape. Drag even closer until the two triangles actually overlap. Still they retain their proportion (within a very small variance--it's a function of how narrow you made the invisible box. If, however, you had given the width of the invisible box a value of zero, the end tiles would distort when the path is very short.)
    14. Now draw another line or curvey path. Apply the Brush. Expand Appearance. Ungroup. Note that the invisible box you used to define the Side Tiles did not result in a bunch of invisible boxes along the length of the path. (This is a good thing.)
    15. So now you have custom arrowheads. But the length of the path is invisible. Appearance Palette: Add New Stroke. Make the new stroke whatever color, width you want. Drag the whole path to the Graphic Styles Palette to define a Style which you can apply to other paths with one click.
    All this convoluted bother is
    almost like a custom arrowheads feature common in som many other drawing programs. But it is not perfect. If the path is tightly curved at either of its endpoints, the End and Start Tiles artwork will still deform in an attempt to bend around the curve. In most cases, you can circumvent this by placing a short straight segment beyond the curvepoint.
    Again: Illustrator need these improvements:
    The existing Arrowheads Effect dialog needs to be changed to simply include popup menus showing the currently defined Symbols, and a little preview frame that lets you position the Symbol in relation to the endpoint of the path.
    The Brush Options dialog for Pattern Brushes needs to be given a checkbox which disallows distortion of end tiles.
    JET

  • How can I set the default line height?

    Greetings,
    I have a report that displays observed behavior in a list format like the one below:
    Behavior Observed:   
        Withdrawn           
        Happy
        Sad
        angry
    There are 5 responses as to the severity of the behavior or it is left blank if the behavior was within normal limits.
    So the output would look like this:  
    Behavior Observed:   
        Withdrawn            (mild)
        Happy
        Sad                      (moderate)
        angry
    The problem is that when this report was designed the details sections were not uniformy formatted and the spacing between data elements is hard to follow from the label to the data field.  I tried to set the details to be uniform by selecting "Arrange Lines",  however when I do this, the data is displayed too close horizontally.  So my question is how do I set the default line height for each field so that they are uniform in distance from each other but not too close due to the font height?
    Does this make sense?
    Thank you,
    Kevin

    I'm confused... How are you associating line height with horizontal field spacing???
    If you have this...
    Behavior Observed:     Severity:
    Withdrawn          (mild)
    Happy
    Sad               (moderate)
    angry
    But want it to look like this...
    Behavior Observed:
    Withdrawn (mild)
    Happy
    Sad (moderate)
    angry
    all you have to do is create a concatenation formula. Something like this...
    {TableName.BehaviorObserved} & " (" & {TableName.Severity} &")"
    Sorry if I've misunderstood what you are trying to do.
    Jason

  • Custom fields and line length in Address Book

    Hi everyone. Does anyone know how to alter the permitted line length of a label in Address Book? If I create a custom label the label will be truncated if it is too long. This does not seem necessary as there can be loads of blank space to the right of the card window. In other words the label will not resize dynamically to accommodate a long custom label. I have a feeling that you may be able to edit a .plist file in the Package to adjust the default number of characters the label can have, but I'm a bit nervous about poking about when I'm not too knowledgeable. Any ideas?

    In other words the label will not resize dynamically to accommodate a long custom label.
    Of course not. You've chosen a specific label style/size, so if it were to resize dynamically, that would cause text to print where there is no label stock.
    You cannot edit any file to change the number of characters per label; at best, you could creae your own label size and define the margins, but that's it.
    Mulder

  • Changing default layer length?

    How do I change the default layer length, when inserting an image into a composition?
    (I always seem to insert images, and forget that the layer length (time) is very short, then wonder why I can't see it).
    It's a minor thing, but help with this so I don't have to go spend 20 minutes Googling would be much appreciated.

    Preferences --> Import --> Default Duration
    Mylenium

  • How can I establish a line length (72 chars) and get TB to wordwrap at that length?

    I would like to establish a line length for email that I compose or receive. How can I do that? How can I get TB to wordwrap at that length and not some shorter length?

    I did that - and found several items for wrap.
    All except the one noted - mailnews.wraplength - have a status of default, type boolean and value false.
    mail.compose.wrap_to_window_width
    mail.wrap_long_lines
    plain_text.wrap_long_lines
    view_source.wrap_long_lines
    mailnews.wraplength
    status: default
    type: integer
    value: 72
    I promised to be careful, so a last check here - can I change that value to 80 or 50 or something other than 72 without messing up Thunderbird?
    Thanks,
    Terry_S

  • Set line length

    I belong to a travel discussion group and they request that all e-mails are received in plain text and with a 60 character per line limit. How do I set the line length to a maximum of 60 characters?

    Dear Diana,
    This seems really antiquated. I can't think of any discussion groups I belong to that ask you to set the line length of my contributions.
    Whatever. Since no one has replied to you, I offer a completely clunky way of doing this. I can't see where Mail has this capability/preference setting.
    Anyway, go to barebones software's web site and download the free application TextWrangler. It's just a text editing program. BBedit will do the job too but I'm assuming you don't have that.
    In TextWrangler, set up a document with a 60 character width (open a new document, go to Edit-->Text Options... and check "Soft Wrap Text" and under the "to character width" option put "60" in the box).
    You can save this document with a silly name so you don't have to create it every time you want to format a mail.
    Next, either compose a mail in the document or paste your text into it.
    It will be 60 characters wide at this point, but the breaks will be "soft"; you need to go to Text-->Add Line Breaks. Now you can copy your text and paste it into an email.
    This sounds like a lot of steps but it is easy. You could probably Applescript it.
    Anyway, there is probably a much better answer to your question, but I didn't want to leave you hanging longer. Once your problem leaves the front page it gets less and less attention.
    Also, note that in Mail preferences you can find the option to compose and send mails as plain text rather than rich text.
    G4 933 mhz Quicksilver   Mac OS X (10.4.8)   Wacom Intuos 2 tablet; Epson 2400 Photo; HP Deskjet 6840; LaCie 80gb D2 FWDV

  • Please Help!  Line Length Outside of Window

    I'm not stating this properly. But suddenly, my Safari windows have content which is not all contained therein. I can only read part of it. Same problem with my e-mail.
    Unable to shorten length of lines in e-mail, and unable to adjust window. Have gone to Preferences/Appearance, etc.
    Please tell me how to explain this problem, if I am not being clear.
    Thanks for any help you can offer.

    I would suggest you revisit the Universal Access to double check that you did what I suggested.
    Also make sure that "Use Grayscale" is not checked in Universal Access.
    Your line length problem might be caused by your changing the resolution of your monitor. What kind of monitor are you using and do you know what its advertised resolution is? Something like 1280x1024 pixels, for example.
    I notice in an earlier post in another forum that you reported the following, which I will quote for the benefit of those joining this thead later:
    "I'm using a MacMini OS 10.2.9. Everything was great, then on start-up all was different. My Desktop picture had disappeared, everything was in purple etc. My e-mails have long line length and I am unable to shorten. Have looked at preferences etc. and nothing helps. (I put back the desktop picture, but everything else is beyond me.)
    I don't recall if I recently updated software, but suspect that is why everything is messed up.
    Sorry if this has been asked before, but I'm quite frustrated. This font is not what I thought was selected, either! "
    I'm a bit confused about your reporting OS 10.2.9. Is that a typo? I think Minis never shipped with anything lower than 10.3.x. Your signature reports 10.4.6.

  • Before your Firefox Help question (Why is it that text is transposed over text when viewing certain websites. I'm running win 7 and the latest version of FF.)

    Before your Firefox Help question (Why is it that text is transposed over text when viewing certain websites. I'm running win 7 and the latest version of FF.)

    If you have increased the minimum font size then try the default setting "none" as a (too) high value can cause issues.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    *https://support.mozilla.org/kb/Changing+fonts+and+colors
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with overlapping text.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/

  • Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file bu

    Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file but not working. What is the matter and how can I deal with it?

    I am trying it on Adobe Acrobat Reader 9.2.1. Tried to fix Hex code, and also tried 'edit-preference-trust manager'. I focusing on Adobe registries but still couldn't fix the problem.

  • Question why has my balance on my itune account have totally disappeared when I have only been using it for less than a year? had still fair bit of money in it too. around $60

    Question why has my balance on my itune account have totally disappeared when I have only been using it for less than a year? had still fair bit of money in it too. around $60

    First, make sure you're logged into the iTunes Store using the account ID and password you set up, or used, when you redeemed your card/gift.  If you are, try signing out of the account and back in.
    If you're sure you are using the correct account and that you're signing in to the iTunes Store, and signing out and back in doesn't help, go to the Purchase History and review your purchases to make sure that you should indeed have a balance left. iTunes doesn't always refresh the balance it shows, so it's possible you spent the money and it just wasn't being reflected in the display. This display error can usually be corrected by logging out of the iTunes Store and then back in.
    If you confirm that you should have balance left but the iTunes Store isn't showing it correctly, send a message to the iTunes Store customer service department through the contact form you'll find by selecting the most applicable section of their Support page (select the Contact Support link and follow the instructions) and explain the problem to them.
    Good luck.

  • Calculating line length in Java

    Hi all;
    I've been using LineBreakMeasurer & AttributedString to measure line lengths. However, I now need to take into account:
    Small Caps
    Scaling (making each character thinner/wider).
    Spacing (adding/subtracting space after each character).
    Hyphenation, where line breaks can occur at specific places within words.
    Is there a way to do this using Java? The two fundamental things I need to get is:
    How long is a passed in string.
    For a passed in string and length, how many characters of the string fits in that length.
    I can do this using LineBreakMeasurer & AttributedString and calling it character by character. But is there a better way?
    thanks - dave

    Hi, Have you had a look at the FontMetrics class? That might be an option.

  • How to default Line item display in GL master record???

    Hi..Guys
    How to default Line item display selection in GL master creation.....When we create GL master it will automatically get selected.
    Is it possible to do.
    Plz reply .

    Hi
    With sample account you can succeed your requirement
    Give all the defualt fields whtatever you want then use this sample account while creating GL account
    One more possibility is with SHD0 screen layout change with defaults (this thing i am not sure)
    Reg
    Vishnu

  • HT6170 I have forgotten the answers of security questions and the line of "forgot your answers? send reset security info email to ......."

    I have forgotten the answers of security questions and the line of "forgot your answers? send reset security info email to ......."
    how can i reset them?

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.

Maybe you are looking for

  • Arch freezes for a few seconds from time to time

    It freezes for a 5-10 seconds and after that, everything work fine again. After one of these, I made dmesg: [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.8.8-2-ARCH (tobias@T-POWA

  • Glitch on a Macbook Pro Retina 13"

    Hi! My problem is identical to this: http://www.youtube.com/watch?v=IlUiqmGcT44 First i was thinking that it was a driver problem, only in windows the problem was annoying but now in OS X i have the same problem. It is a driver or display problem? I

  • Illustrator cc crashing when using curvature tool

    OK, the new curvature tool is very easy and saves time in certain situations, but every time I try to move a point on a curve using the tool Illustrator crashes. Anyone had a similar experience?  I am using a Sony VAIO laptop I7 with 8g RAM and an AM

  • Installing from app store????

    Ok my first attempt at using ANYTHING from the app store failed. I downloaded (and it appeared to install properly), one of the freebies, "WeatherBug", and although it appeared to install (I had the icon on the home screen and when I went back to the

  • Boot camp issues

    I realize that this may not be the forum for this, but I don't know where else to post. I was one of the onmac.net early adopters. I just got everything up and running a couple days ago. Then I get this little jem from apple this morning. Well, the i