Saturday 2 September 2017

ABAP: Comments

Comments are used to document the ABAP application. There are two kinds of comments.

a.   Full line comments
b.   Partial line comments

Full line comments
Full line comments are start with *.

Example
* I used to document the code.

ZHELLO_WORLD
*---------------------------------------------------------------------
* Report zhello_world
*---------------------------------------------------------------------
*
*---------------------------------------------------------------------

REPORT zhello_world.

Write: 'Hello World'.

Partial line comments
Partial line comments starts with " (Double quote).


ZHELLO_WORLD
*---------------------------------------------------------------------
* Report zhello_world
*---------------------------------------------------------------------
*
*---------------------------------------------------------------------

REPORT zhello_world.

Write: 'Hello World'. "I am partial line comment




Previous                                                 Next                                                 Home

No comments:

Post a Comment