Opens an IF control
structure that ends with an ENDIF statement. The system evaluates the logical
expression <logexp>, and processes different statement blocks depending on the
result.
The data objects <fi>
or <g i>, or the data objects in the internal table <itab> are read
from data clusters, either in the cross-program ABAP memory of the current
internal session; in a cluster database table <dbtab>; or in the
cross-transaction application buffer of the table <dbtab> and written to the
variables <f i> and <g i>.
IMPORT DIRECTORY
Creates the directory of a
data cluster from a cluster database.
Syntax
IMPORT DIRECTORY INTO
<itab>
FROM DATABASE <dbtab>(<ar>)
Id <key>.
Writes a directory of the
data objects belonging to a data cluster in the cluster database <dbtab> to the
internal table <dirtab>.
In the third variant, the
table <itab> contains a directory of the objects stored using EXPORT TO
DATABASE.
INCLUDE
Inserts an include program
in another program.
Syntax
INCLUDE <incl>.
Has the same effect as
copying the source code of the include program <incl> into the program. Include
programs are not loaded at runtime, but are expanded when the program is
generated. Include programs must have the program type I.
INCLUDE TYPE|STRUCTURE
Includes a structure
within another.
Syntax
INCLUDE TYPE <t>|STRUCTURE
<s> [AS <name> [RENAMING WITH SUFFIX <suffix>]].
Within a structure
declared using TYPES|DATA BEGIN OF, copies a structured datatype <t>, or a
structure <s> already available as a data object, as part of the structure
declaration. The AS addition lets you address the individual components using
the name <name>. The RENAMING addition lets you append a suffix, <suffix>, to
<name>, so that you can copy the same structure several times.
INITIALIZATION
Event keywords for
defining event blocks for reporting events.
Syntax
INITIALIZATION.
Only occurs in executable
programs. The ABAP runtime environment triggers the INITIALIZATION event before
the selection screen is processed, at which point the corresponding event block
is processed.
INSERT for Database Tables
Inserts entries from
database tables.
Syntax
INSERT <dbtab> FROM <wa>.
INSERT <dbtab> FROM TABLE
<itab> [ACCEPTING DUPLICATE KEYS].
Inserts one line from the
work area <wa> or several lines from the internal table <itab> into the database
table <dbtab>. The ACCEPTING DUPLICATE KEYS addition prevents a runtime error
from occurring if two entries have the same primary key. Instead, it merely
discards the duplicate
INSERT for Field
Groups
Defines the structure of
field groups for extract datasets.
Syntax
INSERT <f1>� <f
n> INTO <fg>.
Includes the fields <fi>
in the field group <fg>, thus defining a line structure for an extract dataset.
INSERT for any
Internal Table
Inserts lines from
internal tables of any type.
Syntax
INSERT <line>|LINES OF
<jtab> [FROM <n1>] [TO <n 2>]
INTO TABLE <itab>
[ASSIGNING <FS> | REFERENCE INTO <dref>].
Inserts a line <line> or a
set of lines from the internal table <jtab> into the internal table <itab>. If
<jtab> is an index table, you can use the FROM and TO additions to restrict the
lines inserted. If you use ASSIGNING or INTO REFERENCE, field symbol <FS> refers
to the inserted line or the relevant data reference is stored in <dref> after
the statement.
INSERT for Index
Tables
Inserts entries in index
tables.
Syntax
INSERT <line>|LINES OF
<jtab> [FROM <n1>] [TO <n 2>]
INTO <itab> [INDEX <idx>]
[ASSIGNING <FS> | REFERENCE INTO <dref>].
Inserts a line <line> or a
set of lines from the internal table <jtab> into the internal table <itab>before
the line with the index <idx>. If <jtab> is an index table, you can use the FROM
and TO additions to restrict the lines inserted. If you omit the INDEX addition,
you can only use the statement within a LOOP. A new line containing values is
inserted before the current line. If you use ASSIGNING or INTO REFERENCE, field
symbol <FS> refers to the inserted line or the relevant data reference is stored
in <dref> after the statement.
INSERT for Programs
Inserts ABAP programs into
the program library.
Syntax
INSERT REPORT <prog> FROM
<itab>.
The lines of the internal
table <itab> are added to the program library as the program <prog>.
INTERFACE
Declares a interface in
ABAP Objects.
Syntax
INTERFACE <ifac>
[DEFERRED]
[LOAD].
Introduces an interface
<interface>. The definition ends with ENDINTERFACE and contains the declaration
of all the components of the interface. The DEFERRED addition makes the
interface known to the program before it is defined. The LOAD addition loads an
interface explicitly from the Class Library.
INTERFACES
Implementation or nesting
of an interface in ABAP Objects.
Used in a class
declaration: This statement adds the components of the interface to the existing
class definition. Used in an interface definition: Forms a compound interface.
Use the additions to characterize methods in interfaces as abstract or final.
Their attributes can be filled with initial values.