SAP TYPES - Reference ABAP Statements
Get Example source ABAP code based on a different SAP table
Standard SAP Help for TYPES
TYPES
ABAP Code Snippet
ABAP Syntax
[DECIMALS dec]}
| {[LINE OF] type}
| {REF TO type}
| { {{[STANDARD] TABLE}
| {SORTED TABLE}
|{HASHED TABLE}}
OF [REF TO] type
[ {WITH [UNIQUE|NON-UNIQUE]
{ {KEY [primary_key [ALIAS key_name]
COMPONENTS] comp1 comp2 ...}
| {DEFAULT KEY} }}
| {WITH EMPTY KEY} ]
{[WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
KEY key_name1 COMPONENTS comp1 comp2 ...]
[WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
KEY key_name2 COMPONENTS comp1 comp2 ...]
...}
[{WITH|WITHOUT} FURTHER SECONDARY KEYS]
[INITIAL SIZE n]}
| {RANGE OF type [INITIAL SIZE n]} }
| {dbtab { READER|LOCATOR|{LOB HANDLE} }
| { WRITER|LOCATOR } FOR
{ COLUMNS blob1 blob2 ... clob1 clob2 ... }
| { ALL [OTHER] [BLOB|CLOB] COLUMNS }
[...]}}
| {LIKE { {[LINE OF] dobj}
| {REF TO dobj}
| { {{[STANDARD] TABLE}
| {SORTED TABLE}
| {HASHED TABLE}
| {ANY TABLE}
|{ • TABLE}}
OF [REF TO] dobj
[ {WITH [UNIQUE|NON-UNIQUE]
{ {KEY [primary_key [ALIAS key_name]
COMPONENTS] comp1 comp2 ...}
| {DEFAULT KEY} }}
| {WITH EMPTY KEY} ]
{[WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
KEY key_name1 COMPONENTS comp1 comp2 ...]
[WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
KEY key_name2 COMPONENTS comp1 comp2 ...]
...}
[{WITH|WITHOUT} FURTHER SECONDARY KEYS]
[INITIAL SIZE n]}
| {RANGE OF dobj [INITIAL SIZE n]} }}.
ABAP Code Snippet
What does it do? Defines a data type
ABAP Addition
Defines the length when referring to generic predefined ABAP types.
Defines the type by referring to a data type.
Defines the type by referring to a data object.
Defines the length and number of
Reference to the row type of an internal table.
Generates a reference type.
Generates a table type for the non-generic table categories
Defines a unique or non-unique primary table key
Defines an empty primary table key.
Defines a secondary table key
Defines the generic property of the table type with respect to the secondary table key.
Defines the initial memory usage of an internal table.
Derives a
Derives an
Return to menu