Wednesday, September 19, 2007

Basic ABAP Syntax with Examples

  • ABAP programs are made up of individual statements.
  • The first word in the statement is called a ABAP keyword.
  • Each statement must end with a period.
  • Statements can be intended.
  • Can have multiple statements in a single line.

Example:

DATA wa_flight TYPE sflight.

SELECT * FROM sflight INTO wa_flight.

NEW-LINE.
WRITE:
wa_flight-carrid,
wa_flight-connid,
wa_flight-fldate.

ENDSELECT.

No comments: