ABAP Keyword Documentation → ABAP − Short Reference
FORM - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
FORM subr
[ TABLES { t1 [{TYPE itab_type}|{LIKE itab}|{STRUCTURE struc}]
t2 [{TYPE itab_type}|{LIKE itab}|{STRUCTURE struc}]
... } ]
[ USING { {VALUE(u1)}|u1 [typing|{STRUCTURE struc}]
{VALUE(u2)}|u2 [typing|{STRUCTURE struc}]
... } ]
[ CHANGING { {VALUE(c1)}|c1 [
typing|{STRUCTURE struc}]
{VALUE(c2)}|c2 [typing|{STRUCTURE struc}]
... } ]
[ RAISING exc1|RESUMABLE(exc1) exc2|RESUMBALE(exc2) ... ].
...
ENDFORM .
Effect
Obsolete
Additions
-
TABLES
Obsolete: Defines table parameterst1
,t2
, ... -
USING
Defines input parametersu1
,u2
, ... -
CHANGING
Defines input/output parametersc1
,c2
, ... -
VALUE
Defines how values are passed for a formal parameter. Without theVALUE
addition, the values are passed by reference. -
typing
Types formal parameters. -
STRUCTURE struc
Obsolete: Stamps a structurestruc
on a formal parameter. -
RAISING exc1 exc2 ...
Declares class-based exceptionsexc1
,exc2
, ... which can be propagated from the subroutine, with or without resumability.