SAP Tutorials Blog




ABAP Syntax Contains Statements and Comments .Statements consists the keywords ,Operands and Additionals and ends with the Period .Comments in ABAP Programming are two types full comments and Partial Comments.

How to Understand ABAP Programming Syntax

ABAP Statements

Normally, each ABAP statement begins with a keyword. A statement can contain operands and additions of the keyword and is always concluded with a period.

ABAP has no format restrictions. You can enter statements in any format, so a statement can be indented, you can write several statements on one line, or spread a single statement over several lines.

You must separate words within a statement with at least one space. The system also interprets the end of line marker as a space.

  Write 'test'. write 'test'.

Call function FM 

   exporting 

------

Importing

----  .

Chained Statements

The ABAP programming language allows you to concatenate consecutive statements with an identical first part into a chain statement.

WRITE EKKO-EBELN . WRITE EKKO-BUTXT .


OR 


Write: EKKO-EBELN,

           EKKO-BUTXT.

Comments

Comments are texts that you can write between the statements of your ABAP program to explain their purpose to a reader. 


*COMMENT

                      "Partial comment.

More ABAP Tutorials.




Serkan AKKAVAK

Computer Engineer BSc

SAP Department Deputy Manager

Contact : serkurumsal@yandex.com