ABAP Keyword Documentation → ABAP - Quick Reference
FORM - Quick 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|RESUMABLE(exc2) ... ].
...
ENDFORM.
Effect
Obsolete
Additions
-
TABLES
Obsolete: Defines table parameterst1
,t2
, ... -
USING
Defines input parametersu1
,u2
, ... -
CHANGING
Defines input/output parametersc1
,c2
, ... -
VALUE
Defines for a formal parameter how to pass values. Without the additionVALUE
, the values are passed by reference. -
typing
Types formal parameters. -
STRUCTURE struc
Obsolete: Casts a structurestruc
to a formal parameter. -
RAISING exc1 exc2 ...
Declares class-based exceptionsexc1
,exc2
, ... which can be propagated from within the subroutine, with or without the capacity to be restarted.