SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book


Short Reference

... STRUCTURE struc ...


A formal parameter p1 p2 ... of a subroutine 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 structure is then applied to the formal parameter (casting) and individual components can be accessed in the subroutine.

When an actual parameter is passed to a formal parameter typed using STRUCTURE, the actual parameter must be at least as long as the formal parameter:

  • In the case of a structured actual parameter, its fragment view must match the fragment view of the corresponding initial part of struc.
  • An elementary actual parameter must be character-like and flat and the corresponding initial part of struc can contain only components of this type.


Formal parameters typed with STRUCTURE can usually be replaced by formal parameters typed with TYPE or LIKE. If a casting is necessary, generic formal parameters should be used and assigned to field symbols using the statement ASSIGN and the addition CASTING.


This example assigns the character string text the structure line.

ABAP Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2094 Date: 20240616 Time: 121137     sap01-206 ( 43 ms )