Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

ABAP: Statements

Every Statement in ABAP starts with ABAP keyword and ends with a '.'.

If your Program is an executable, then the first non-comment line should be 'REPORT REPORT_NAME'. If your program is not executable, then the first non-comment line should be 'PROGRAM PROGRAM_NAME'.

ZHELLO_WORLD
*&---------------------------------------------------------------------*
*& Report zhello_world
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zhello_world.

Write 'Hello World'.

Colon Notation
If the statements are identical, then consecutive statements can be chained using : notation.

Write 'Hello'.
Write 'Good'.
Write 'Morning'.

Above statements can be chained like below.

Write: 'Hello', 'Good', 'Morning'.


ZHELLO_WORLD
*&---------------------------------------------------------------------*
*& Report zhello_world
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zhello_world.

Write: 'Hello', 'Good', 'Morning'.



Previous                                                 Next                                                 Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

ABAP: Statements

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×