ABAP Keyword Documentation → ABAP - Overview
ABAP Statements - Overview
This section contains a thematically organized overview of all statements that are opened with ABAP keywords. For an alphabetical list of all ABAP words, see ABAP words.
Other versions: 7.31 | 7.40 | 7.54
Introductory Statements for Programs
| CLASS-POOL | Introduces a class pool | 
|---|---|
| FUNCTION-POOL | Introduces a function group | 
| INTERFACE-POOL | Introduces an interface pool | 
| PROGRAM | Introduces a module pool orsubroutine pool | 
| REPORT | Introduces an executable program | 
| TYPE-POOL | Introduces a type pool | 
Modularization Statements
Procedures
| FUNCTION ... ENDFUNCTION | Defines a function module | 
|---|---|
| METHOD ... ENDMETHOD | Defines a method | 
Dialog Modules
| MODULE ... ENDMODULE | Defines a dialog module | 
|---|---|
Event Blocks
Source Code Modules
| DEFINE ... END-OF-DEFINITION | Defines a macro | 
|---|---|
| INCLUDE | Includes an include program | 
Declarative Statements
Data Types and Data Objects
| CONSTANTS | Declares a constant | 
|---|---|
| DATA | Declares a variable | 
| FIELD-SYMBOLS | Declares a field symbol | 
| INCLUDE | Includes a structure | 
| NODES | Declares a table work area | 
| STATICS | Declares a static variable | 
| TABLES | Declares a table work area | 
| TYPES | Defines a standalone data type | 
Classes and Interfaces
| ALIASES | Declares an alias name | 
|---|---|
| CLASS ... ENDCLASS | Defines a class | 
| CLASS-DATA | Declares a static attribute | 
| CLASS-EVENTS | Declares a static event | 
| CLASS-METHODS | Declares a static method | 
| EVENTS | Declares an instance event | 
| INTERFACE ... ENDINTERFACE | Defines an interface | 
| INTERFACES | Includes an interface | 
| METHODS | Declares an instance method | 
| PRIVATE SECTION | Introduces the package visibility section | 
| PROTECTED SECTION | Introduces the protected visibility section | 
| PUBLIC SECTION | Introduces the public visibility section | 
Object Creation
| CREATE DATA | Creates an anonymous data object | 
|---|---|
| CREATE OBJECT | Creates an object | 
Calling and Exiting Program Units
Calling Programs
| CALL TRANSACTION | Calls a transaction | 
|---|---|
| LEAVE TO TRANSACTION | Calls a transaction | 
| SUBMIT | Calls an executable program | 
Calling Processing Blocks
| CALL FUNCTION | Calls a function module | 
|---|---|
| CALL METHOD | Calls a method dynamically | 
| PERFORM | Calls a subroutine | 
| RAISE EVENT | Raises an event | 
| SET HANDLER | Registers an event | 
| SET USER-COMMAND | Raises a list event | 
Exiting Program Units
| CHECK | Exits a loop pass or processing block | 
|---|---|
| CONTINUE | Exits a loop pass | 
| EXIT | Exits a loop or processing block | 
| LEAVE PROGRAM | Exits an ABAP program | 
| RETURN | Exits a processing block | 
| STOP | Exits a processing block | 
Program Flow Logic
Control Structures
| DO ... ENDDO | Loop | 
|---|---|
| CASE ... WHEN ... ENDCASE | Branch | 
| CASE TYPE OF ... WHEN TYPE ... ENDCASE | Case distinction | 
| IF ... ELSEIF ... ELSE ... ENDIF | Case distinction | 
| WHILE ... ENDWHILE | Loop | 
Program Interruption
| WAIT UP TO | Interrupts a program for a specified time | 
|---|---|
Exception Handling
| RAISE | Raises a non-class-based exception | 
|---|---|
| RAISE EXCEPTION | Raises a class-based exception | 
| TRY ... CATCH ... CLEANUP ... ENDTRY | Handles class-based exceptions | 
| RESUME | Resumes after a resumable exception | 
Assignments
Special Assignments
| MOVE-CORRESPONDING | Assigns structure components | 
|---|---|
| UNPACK | Unpacks a packed number | 
Setting References
| ASSIGN | Sets a field symbol | 
|---|---|
| UNASSIGN | Initializes a field symbol | 
| GET REFERENCE | Sets a data reference | 
Initializations
| CLEAR | Initializes a data object | 
|---|---|
| FREE | Initializes a data object | 
Processing Internal Data
Character String and Byte String Processing
| CONCATENATE | Concatenates character strings orbyte chains | 
|---|---|
| CONDENSE | Condenses a character string | 
| CONVERT TEXT | Converts a character string | 
| FIND | Searches in a character string orbyte chain | 
| GET BIT | Reads individual bits in a byte chain | 
| OVERLAY | Makes a replacement in a character string | 
| REPLACE | Makes a replacement in a character string orbyte chain | 
| SET BIT | Sets individual bits in a byte chain | 
| SHIFT | Moves a character string or byte chain | 
| SPLIT | Splits a character string orbyte chain | 
| TRANSLATE | Transforms a character string | 
| WRITE TO | Formats values as a character string | 
Date and Time Processing
| CONVERT INTO UTCLONG | Converts a date and time to a time stamp in a time stamp field | 
|---|---|
| CONVERT UTCLONG | Converts a time stamp in a time stamp field to a date and time | 
| CONVERT INTO TIME STAMP | Converts a date and time to a time stamp in a packed number | 
| CONVERT TIME STAMP | Converts a time stamp in a packed number to a date and time | 
| GET TIME | Fills the system fields for date and time | 
| GET TIME STAMP | Creates a time stamp in a packed number | 
Internal Tables
| APPEND | Appends rows to an internal table | 
|---|---|
| COLLECT | Inserts collected rows into an internal table | 
| DELETE | Deletes rows from an internal table | 
| FIND IN TABLE | Searches in an internal table | 
| INSERT | Inserts rows into an internal table | 
| LOOP AT itab ... ENDLOOP | Loop across an internal table | 
| LOOP AT GROUP ... ENDLOOP | Loop across a row group in an internal table | 
| AT | Group level processing | 
| MODIFY | Changes rows in an internal table | 
| READ TABLE | Reads a row of an internal table | 
| REPLACE IN TABLE | Makes a replacement in an internal table | 
| SORT | Sorts an internal table | 
| SUM | Sums numeric fields in an internal table | 
Meshes
| SET ASSOCIATION | Sets a mesh association for a mesh path | 
|---|---|
Attributes of Data Objects
| DESCRIBE | Determines the attributes of a data object | 
|---|---|
Processing External Data
ABAP SQL
| CLOSE CURSOR | Closes a database cursor | 
|---|---|
| DELETE | Deletes rows from a database table | 
| FETCH NEXT CURSOR | Reads rows using a database cursor | 
| INSERT | Inserts rows into a database table | 
| MODIFY | Changes or inserts rows in a database table | 
| OPEN CURSOR | Opens a database cursor | 
| SELECT ... ENDSELECT | Reads rows from a database table | 
| UPDATE | Changes rows in a database table | 
| WITH | Defines common table expressions | 
Native SQL
| EXEC SQL ... ENDEXEC | Defines an area for embedded Native SQL | 
|---|---|
ABAP and HANA
| CALL DATABASE PROCEDURE | Calls a database procedure on theSAP HANA database | 
|---|---|
Secondary Connections
| COMMIT CONNECTION | Commits an SAP LUW on asecondary connection | 
|---|---|
| ROLLBACK CONNECTION | Rolls back an SAP LUW on asecondary connection | 
Data Clusters
| DELETE | Deletes data clusters | 
|---|---|
| EXPORT | Exports data objects into a data cluster | 
| FREE MEMORY | Deletes data clusters from the ABAP memory | 
| IMPORT | Imports data objects from a data cluster | 
| IMPORT DIRECTORY | Creates the interval directory of a data cluster | 
File Interface
| CLOSE DATASET | Closes a file | 
|---|---|
| DELETE DATASET | Deletes a file | 
| GET DATASET | Specifies the properties of a file | 
| OPEN DATASET | Opens a file | 
| READ DATASET | Reads a file | 
| SET DATASET | Sets the properties of a file | 
| TRANSFER | Fills a file | 
| TRUNCATE DATASET | Changes the size of a file | 
Data Consistency
| AUTHORITY-CHECK | Checks an authorization | 
|---|---|
| COMMIT WORK | Completes a SAP-LUW | 
| ROLLBACK WORK | Cancels a SAP-LUW | 
| SET UPDATE TASK LOCAL | Sets the local update | 
Program Parameters
SAP Memory
| GET PARAMETER | Reads an SPA/GPA parameter | 
|---|---|
| SET PARAMETER | Sets an SPA/GPA parameter | 
Language Environment
| GET LOCALE | Specifies the text environment. | 
|---|---|
| SET COUNTRY | Sets the formatting settings of the language environment | 
| SET LANGUAGE | Loads a text pool | 
| SET LOCALE | Sets the text environment | 
Program Editing
Testing and Checking Programs
| ASSERT | Defines an assertion | 
|---|---|
| BREAK-POINT | Defines a breakpoint | 
| LOG-POINT | Defines a logpoint | 
| GET RUN TIME | Specifies a measuring interval | 
| SET RUN TIME ANALYZER | Sets runtime analysis | 
| SET RUN TIME CLOCK | Sets the measurement accuracy for measuring intervals | 
| TEST-SEAM ... END-TEST-SEAM | Test seam | 
| TEST-INJECTION ... END-TEST-INJECTION | Injection | 
Dynamic Program Development
| GENERATE SUBROUTINE POOL | Generates a subroutine pool | 
|---|---|
| INSERT REPORT | Stores an ABAP program | 
| INSERT TEXTPOOL | Stores a text pool | 
| READ REPORT | Imports an ABAP program | 
| READ TEXTPOOL | Imports a text pool | 
| SYNTAX-CHECK | Calls the syntax check | 
ABAP Data and Communication Interfaces
Remote Function Call
| CALL FUNCTION DESTINATION | Remote function call | 
|---|---|
| RECEIVE | Receives parameters in a remote function call | 
| WAIT FOR ASYNCHRONOUS TASKS | Waits for completion of a remote function call | 
| WAIT FOR MESSAGING CHANNELS | Waits for messages communicated using AMC | 
| WAIT FOR PUSH CHANNELS | Waits for messages communicated using APC | 
ABAP and XML
| CALL TRANSFORMATION | Calls an XSLT program or asimple transformation | 
|---|---|
OLE Interface
| CALL METHOD | Calls an OLE automation method | 
|---|---|
| CREATE OBJECT | Creates an OLE automation object | 
| FREE OBJECT | Releases memory in OLE automation | 
| GET PROPERTY | Reads an attribute in OLE automation | 
| SET PROPERTY | Sets an attribute in OLE automation | 
User Dialogs
Dynpros
| CALL SCREEN | Calls a dynpro sequence | 
|---|---|
| CONTROLS | Declares a control | 
| EXIT FROM STEP-LOOP | Exits a table control or step loop | 
| GET CURSOR | Reads the cursor position | 
| GET PF-STATUS | Sets the GUI status | 
| LEAVE [TO] SCREEN | Exits a dynpro | 
| LOOP AT SCREEN ... ENDLOOP | Loop across screen elements | 
| MODIFY SCREEN | Modifies a screen element | 
| REFRESH CONTROL | Initializes a table control | 
| SET CURSOR | Sets the cursor position | 
| SET HOLD DATA | Enables/disables standard menu items | 
| SET PF-STATUS | Sets the GUI status | 
| SET SCREEN | Sets the next dynpro | 
| SET TITLEBAR | Sets the GUI title | 
| SUPPRESS DIALOG | Suppresses the screen | 
Selection Screens
| PARAMETERS | Defines a parameter | 
|---|---|
| SELECTION-SCREEN | Defines a selection screen or ascreen element | 
| SELECT-OPTIONS | Defines a selection criterion | 
Lists
| BACK | Relative positioning of list cursor | 
|---|---|
| DESCRIBE LIST | Specifies the properties of a list in the list buffer | 
| FORMAT | Formats a list | 
| GET CURSOR | Reads the cursor position | 
| HIDE | Saves a data object in a list level | 
| LEAVE TO LIST-PROCESSING | Calls list processing | 
| LEAVE LIST-PROCESSING | Exits list processing | 
| MODIFY LINE | Changes a list in the list buffer | 
| NEW-LINE | Line break in a list | 
| NEW-PAGE | Page break in a list | 
| POSITION | Positions the list cursor | 
| PRINT-CONTROL | Formats a spool list | 
| READ LINE | Reads a list in the list buffer | 
| RESERVE | Relative page break in a list | 
| SCROLL LIST | Scrolls in a list | 
| SET BLANK LINES | Sets the blanks in a list | 
| SET CURSOR | Sets the cursor position | 
| SET MARGIN | Sets the margin of a spool list | 
| SET PF-STATUS | Sets the GUI status | 
| SET LEFT SCROLL-BOUNDARY | Sets the scroll boundaries of a list | 
| SET TITLEBAR | Sets the GUI title | 
| SKIP | Positions the list cursor | 
| ULINE | Displays a line in a list | 
| WINDOW | Displays a list in a dialog box | 
| WRITE | Displays data in a list | 
Messages
| MESSAGE | Sends a message | 
|---|---|
Enhancements
Source Code Enhancements
| ENHANCEMENT ... ENDENHANCEMENT | Implements a source code enhancement | 
|---|---|
| ENHANCEMENT-POINT | Defines a source code enhancement | 
| ENHANCEMENT-SECTION ... END-ENHANCEMENT-SECTION | Defines a source code enhancement | 
Enhancements Using BAdIs
| GET BADI | Creates a BAdl object | 
|---|---|
| CALL BADI | Calls BAdI methods | 
Statements for Experts
| INFOTYPES | Declares an internal table for HR info types | 
|---|---|
| PROVIDE ... ENDPROVIDE | Loop across multiple internal tables | 
Obsolete Statements
Obsolete Modularization
| FORM ... ENDFORM | Defines a subroutine | 
|---|---|
| END-OF-EDITING | Reporting event | 
| END-OF-SELECTION | Reporting event | 
| GET | Reporting event | 
| START-OF-EDITING | Reporting event | 
| LOCAL | Buffers a data object | 
Obsolete Declarations
| FIELDS | Addresses a data object | 
|---|---|
| RANGES | Declares a ranges table | 
| TYPE-POOLS | Loads a type pool | 
Obsolete Calls
| CALL CUSTOMER-FUNCTION | Calls a function module exit | 
|---|---|
| CALL DIALOG | Calls a dialog module | 
| PUT | Raises a reporting event | 
Obsolete Exit
| LEAVE | Context-dependent exit of an ABAP program | 
|---|---|
| REJECT | Exits a processing block forlogical databases | 
Obsolete Control Structure
| ON CHANGE OF ... ENDON | Obsolete branch | 
|---|---|
Obsolete Exception Handling
| CATCH SYSTEM-EXCEPTIONS | Catches catchable runtime errors | 
|---|---|
Obsolete Assignments
| MOVE | Assigns data objects | 
|---|---|
| MOVE - PERCENTAGE | Assigns a subobject of a data object | 
| PACK | Packs a packed number | 
Obsolete Calculation Statements
| COMPUTE | Calculates a calculation expression | 
|---|---|
| ADD | Adds numeric data objects | 
| ADD-CORRESPONDING | Adds structure components | 
| DIVIDE | Divides numeric data objects | 
| DIVIDE-CORRESPONDING | Divides structure components | 
| MULTIPLY | Multiplies numeric data objects | 
| MULTIPLY-CORRESPONDING | Multiplies structure components | 
| SUBTRACT | Subtracts numeric data objects | 
| SUBTRACT-CORRESPONDING | Subtracts structure components | 
Obsolete Character String and Byte String Processing
|CONVERT DATE|INVERTED-DATE|Transforms a character string into nine's complement|
|----|----|
|REPLACE|Makes a replacement in a character string orbyte string|
|SEARCH|Searches in a character string orbyte string (obsolete)|
Obsolete Internal Table Processing In Internal Tables
| REFRESH | Initializes an internal table (obsolete) | 
|---|---|
| SEARCH itab | Searches in an internal table (obsolete) | 
| WRITE TO itab | Writes to an internal table (obsolete) | 
Obsolete Extracts
| AT | Group level processing in theextract dataset | 
|---|---|
| EXTRACT | Fills the extract dataset | 
| FIELD-GROUPS | Declares a field group | 
| INSERT | Builds a field group | 
| LOOP ... ENDLOOP | Loop across the extract dataset | 
| SORT | Sorts the extract dataset | 
Obsolete Database Access
| DELETE | Deletes a row in a database table | 
|---|---|
| LOOP AT | Loop across a database table | 
| MODIFY | Changes a row in a database table | 
| READ TABLE | Reads a row in a database table | 
| REFRESH FROM | Reads rows in a database table | 
Native SQL
| EXIT FROM SQL | Exits implicit cursor processing of Native SQL | 
|---|---|
Contexts
| CONTEXTS | Data type for contexts | 
|---|---|
| DEMAND | Requests a context | 
| SUPPLY | Fills the key fields of a context | 
Obsolete Statements in List Processing
| AT PFnn | Obsolete list event | 
|---|---|
| DETAIL | Intensity of the background color in a list | 
| INPUT | List is ready for input | 
| MAXIMUM | Maximum value of output values in a list | 
| MINIMUM | Minimum value of output values in a list | 
| NEW-SECTION | Controls a spool list. | 
| SUMMARY | Intensity of the background color in a list | 
| SUMMING | Sums output values in a list | 
Obsolete Editor Calls
| EDITOR-CALL FOR itab. | Calls a GUI control (obsolete) | 
|---|---|
| EDITOR-CALL FOR REPORT | Calls ABAP Editor | 
Obsolete Tests and Checks
| SET EXTENDED CHECK | Controls the extended program check | 
|---|---|
Obsolete External Programming Interface
| COMMUNICATION | Addresses the CPI-C interface | 
|---|---|
Internal Statements
Program Editing
| DELETE DYNPRO | Deletes a dynpro | 
|---|---|
| DELETE REPORT | Deletes an ABAP program | 
| DELETE TEXTPOOL | Deletes a text pool | 
| EXPORT DYNPRO | Exports a dynpro | 
| GENERATE DYNPRO | Generates a dynpro | 
| GENERATE REPORT | Generates an ABAP program | 
| LOAD REPORT | Loads an ABAP program | 
| IMPORT DYNPRO | Imports a dynpro | 
| SCAN | Splits an ABAP program into tokens | 
| SYNTAX-CHECK FOR DYNPRO | Syntax check for a dynpro | 
| SYNTAX-TRACE | Modifies the syntax check | 
External Interface
| CALL | Calls a c function of the ABAP runtime environment | 
|---|---|
This translation does not reflect the current version of the documentation.