SAP FORM PARAMETERS ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID FORM
• VALUE FORM (obsolete)

FORM, parameters
Short Reference

ABAP_SYNTAX_OBS
... ${ VALUE(p1) $| p1 $} $[ typing$|structure$]
${ VALUE(p2) $| p2 $} $[typing$| structure$]
...

What does it do?
Defines the formal parameters p1 p2 ... for subroutines.
The addition typing types a formal parameter p1 p2 .... The syntax of typing is described in Typing. The typing of a formal parameter causes the data type to be checked against the typing when an actual parameter is passed. In addition, the typing specifies at which operand positions the formal parameter can be used in the subroutine. If no explicit typing is specified, a formal parameter is typed with the fully generic type any.
VALUE can be used to specify how values are passed for a formal parameter p1 p2 .... If VALUE is not specified, values are passed by reference.
The addition structure can also be used to implement an obsolete form of typing.



Latest notes:

Without an explicit typing, a formal parameter is typed implicitly with the fully generic type any.
NON_V5_HINTS
ABAP_HINT_END

Return to menu