How to Understand ABAP Programming Syntax
How to Understand ABAP Programming Syntax
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.
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.
Formatting ABAP Statements
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.
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place..
ReplyDeleteDefinition of SAP