Ansicht
Dokumentation
ABENABAP_STATEMENTS_OVERVIEW - ABAP STATEMENTS OVERVIEW
ABAP Short Reference Vendor Master (General Section)This documentation is copyright by SAP AG.
ABAP Statements, Overview
This section contains a thematically organized overview of all statements that are introduced by ABAP keywords. An alphabetical list of all ABAP words can be found under ABAP Words.
Program-Initiating Statements
CLASS-POOL | Introduces a class pool |
FUNCTION-POOL | Introduces a function pool |
INTERFACE-POOL | Introduces an interface pool |
PROGRAM | Introduces a module pool or subroutine 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 | Triggers an event |
SET HANDLER | Registers an event |
SET USER-COMMAND | Triggers 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 | Triggers a non-class-based exception |
RAISE EXCEPTION | Triggers 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 or byte chains |
CONDENSE | Condenses a character string |
CONVERT TEXT | Converts a character string |
FIND | Searches in a character string or byte 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 or byte chain |
SET BIT | Sets individual bits in a byte chain |
SHIFT | Moves a character string or byte chain |
SPLIT | Splits a character string or byte 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 into a time stamp in a time stamp field |
CONVERT UTCLONG | Converts a time stamp into a date and time in a time field |
CONVERT INTO TIME STAMP | Converts a date and time into a time stamp in a packed number |
CONVERT TIME STAMP | Converts a time stamp into a date and time in a packed number |
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 lines to an internal table |
COLLECT | Inserts collected lines into an internal table |
DELETE | Deletes lines from an internal table |
FIND IN TABLE | Searches in an internal table |
INSERT | Inserts lines into an internal table |
LOOP AT itab ... ENDLOOP | Loop across an internal table |
LOOP AT GROUP ... ENDLOOP | Loop across a line group in an internal table |
AT | Group level processing |
MODIFY | Changes lines in an internal table |
READ TABLE | Reads a line 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 |
Properties of Data Objects
DESCRIBE | Determines the properties of a data object |
Processing External Data
CLOSE CURSOR | Closes a database cursor |
DELETE | Deletes rows from a DDIC database table |
FETCH NEXT CURSOR | Reads rows using a database cursor |
INSERT | Inserts rows into a DDIC database table |
MODIFY | Changes or inserts rows in a DDIC database table |
OPEN CURSOR | Opens a database cursor |
SELECT ... ENDSELECT | Reads rows from a DDIC database table |
UPDATE | Changes rows in a DDIC 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 of the SAP HANA database |
Secondary Connections
COMMIT CONNECTION | Completes an SAP LUW on a secondary connection |
ROLLBACK CONNECTION | Rolls back an SAP LUW on a secondary 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 an SAP-LUW |
ROLLBACK WORK | Cancels an SAP-LUW |
SET UPDATE TASK LOCAL | Sets the local update |
ABAP for RAP Business Objects
COMMIT ENTITIES | Triggers the RAP save sequence. |
GET PERMISSIONS | Retrieves information about permissions of RAP BOs. |
MODIFY ENTITY, ENTITIES | Performs modify operations on RAP BO instances. |
READ ENTITY, ENTITIES | Performs read operations on RAP BO instances. |
ROLLBACK ENTITIES | Rolls back all changes of the current RAP LUW. |
SET LOCKS | Sets enqueue locks for RAP BO instances to prevent the concurrent modification of instances. |
Program Parameters
User 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 | Determines a measuring interval |
SET RUN TIME ANALYZER | Controls 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 in communication using AMC |
WAIT FOR PUSH CHANNELS | Waits for messages in communication using APC |
ABAP and XML
CALL TRANSFORMATION | Calls an XSLT program or a Simple 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 or 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 layout |
Selection Screens
PARAMETERS | Defines a parameter |
SELECTION-SCREEN | Defines a selection screen or a screen 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
Enhancements Using BAdIs
GET BADI | Creates a BAdI 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 | Triggers a reporting event |
Obsolete Exit
LEAVE | Context-dependent exit of an ABAP program |
REJECT | Exits a processing block for logical 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 or byte string |
SEARCH | Searches in a character string or byte 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 the extract 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 DDIC database table |
LOOP AT | Loop across a DDIC database table |
MODIFY | Changes a row in a DDIC database table |
READ TABLE | Reads a row in a DDIC database table |
REFRESH FROM | Reads rows in a DDIC 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 availability 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 the 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 framework |
General Material Data rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 92423 Date: 20240420 Time: 112127 sap01-206 ( 434 ms )