Skip to content

ABAP Keyword Documentation →  ABAP - Short Reference 

FORM - Short Reference

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 parameters t1, t2, ...
  • USING
    Defines input parameters u1, u2, ...
  • CHANGING
    Defines input/output parameters c1, c2, ...
  • VALUE
    Defines how values are passed for a formal parameter. Without the VALUE addition, the values are passed by reference.
  • typing
    Types formal parameters.
  • STRUCTURE struc
    Obsolete: Stamps a structure struc on a formal parameter.
  • RAISING exc1 exc2 ...
    Declares class-based exceptions exc1, exc2, ... which can be propagated from the subroutine, with or without resumability.