Teknologi

LightBlog

Breaking

LightBlog

Tuesday, 28 August 2012

10 Rules for ABAP coding


ABAP code can be quite free-flowing. The broad syntactiac rules governing where a statment starts and ends are:

  1. Leading white space is ignored.you can start an ABAP statment any where you want at the beginning of the line,or even right justified if you like. Lines may be up to 72 characters long.
  2. Statements are terminated with a periods(.)
  3. white space outside of string literals is irrelevant;one space is a good as a hundred.That means you can split most statements over several lines for clarity, and you can place several short statments on the same line.
  4. Literal strings are delinited by single-quotes(').
  5. Anything on a line after a double-quote(") is ignored, and any line beginning with an asterisk(*) is ignored. use this pepper yout code with useful comments. The next line breaks ends the comment.
  6. Many statements may follow the keyword with a colin(:) and accept comma-seperated multiple predicates; each element (keywords, parameter, grouping parentheses must be separated by one or more space or a line break. case is not distinguished by the processor, except for string comparison; you are fee to use case to enhance readability. A statment is terminated by period.
  7. ABAP statement are not case sensitive, eg :- data, DATA, Data.
  8. ABAP is space sensitive.
  9. Back slash (/)  is used for new line character.
  10. The customized programs name should start with (Z) or (Y).

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Adbox