... { VALUE(p1) | p1 } [typing|{STRUCTURE struc}]
{ VALUE(p2) | p2 } [typing|{STRUCTUREstruc}]
... .
Definition of formal parameters p1 p2 ... for subroutines.
The addition typing types a formal parameter p1 p2 ....The syntax of typing is described in Typing. Typing a formal parameter has the effect that when an actual parameter is passed, its type is checked against the typing. In addition, the typing determines at which operand positions the formal parameter can be used in the subroutine.
Use VALUE to determine how to pass values for a formal parameter p1 p2 .... Without VALUE, values are passed by reference.
Obsolete Typing
A formal parameter p1 p2 ... can be specified with the addition STRUCTURE instead of typing, where struc must be a program-local structure (data object, no data type) or a flat structure from the ABAP Dictionary. This stamps the structure on the formal parameter (Casting) and in the subroutine, the individual components can be accessed.
When passing an actual parameter to a formal parameter typed with STRUCTURE, the only check executed in non- Unicode programs is whether the length of the actual parameter is equal to or greater than the length of the structure.
In Unicode programs, there is a difference between structured and elementary actual parameters. With a structured actual parameter, its Unicode fragment view must match that of struc. With an elementary actual parameter, it must be character-type and flat.