SAP ABAP Keywords

SAP ABAP keywords are used to identify the type of statements. Each ABAP statement should begin with a keyword. ABAP is not a case sensitive live JAVA language, predefined words can be in any Lower case or Upper case.

WRITE 'Hello WORLD'

wRITE 'Hello World'

ABAP keywords are categorized according to their functionalities and the important types of keywords are

  1. Calling Keywords
  2. Controlling Keywords
  3. Declarative Keywords
  4. Definition Keywords
  5. Database Keywords
  6. Event Keywords
  7. Operational Keywords
ADVERTISEMENT

1. Calling Keywords : – Calling keywords are used to call re-usable modules that are already defined.

PERFROM to CALL FORM - ENDFORM
CALL FUNCTION to CALL FUNCTION - ENDFUNCTION
MODULE to CALL MODULE - ENDMODULE

2. Controlling Keywords : – These keywords are used to control the default flow of a program execution.

IF, ELSE, ENDIF
DO-ENDDO, WHILE-ENDWHILE

3. Declarative Keywords : – These keywords are used to declare the variables in SAP ABAP.

TYPES, DATA, TABLES, CONSTANTS.

4. Definition Keywords : – These keywords are used to define re-usable modules (blocks).

FORM - ENDFORM
FUNCTION - ENDFUNCTION
MODULE - ENDMODULE

5. Database Keywords : – These keywords are used to work with database operations.

SELECT - To select data
INSERT - To insert data
UPDATE - To change data
DELETE - To delete data

6. Event Keywords : – These keywords are used define event blocks

TOP-OF-PAGE : Used to print the same heading on top of every page
END-OF-PAGE : Used to print the same footer on every page of output list.

7. Operational Keywords : – These keywords are used to operate the data with declarative statements.

WRITE
MOVE
ADD