Skip to content

ABAP Keyword Documentation →  ABAP - Quick Reference 

FORM - Quick 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|RESUMABLE(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 for a formal parameter how to pass values. Without the addition VALUE, the values are passed by reference.
  • typing
    Types formal parameters.
  • STRUCTURE struc
    Obsolete: Casts a structure struc to a formal parameter.
  • RAISING exc1 exc2 ...
    Declares class-based exceptions exc1, exc2, ... which can be propagated from within the subroutine, with or without the capacity to be restarted.