SAP FORM - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for FORM

FORM

ABAP Reference
ABAP Code Snippet


ABAP 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 .
ABAP Code Snippet

What does it do? Obsolete: Defines a subroutine subr. The subroutine is defined with FORM and implemented between FORM and ENDFORM.

ABAP Addition 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.

Return to menu