ABAPFUNCTION_TYPING_OBSOLETE - FUNCTION TYPING OBSOLETE
TXBHW - Original Tax Base Amount in Local Currency Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
FUNCTION - LIKE, STRUCTURE
Obsolete Syntax
... {LIKE struc-comp} | {STRUCTURE struc} ...
Effect
Types interface parameters in the display of propertiesof interface parameters of a function module interface in the source code of function modules ifthe LIKE type is specified in the Function Builder. If this type is specified, a warning is displayed in the Function Builder (except for thosetable parameters that are also obsolete).
- Typing with LIKE is displayed if an elementary component of aflatstructure (database table or view) struc-comp from the ABAP Dictionary is specified afterLIKE in the Function Builder. The typing is checked in the same way as for a component specified after TYPE, with the exception that the number ofdecimal places forpacked numbers is not taken into account. A type from a type group cannot be specified.
- Typing with STRUCTURE is displayed if a flat structure (database table) struc from the ABAP Dictionary is specified after LIKE in the Function Builder.
This structure is then applied to the formal parameter(Casting)and individual components can be accessed in the function module. For a formal parameter typed with STRUCTURE, a bound actual parameter must be a structure. In non-Unicode programs, the actual parameter must be sufficientlyaligned (when passed by reference) and its length (except fortable parameters) must be exactly the same as the length of the particular structure struc. In Unicode-programs, theUnicodefragment view of a structured actual parameter must match that of struc, and for an elementary actual parameter, it must be character-type and flat. A type from a type group cannot be specified.
If, in the function group of a function module, a component of a global program structure has the samefull identifier (structure name struc and component comp) as the component of a structurein the ABAP Dictionary specified after LIKE, LIKE refers to the component of the structure defined in the function group. A warning is then displayed when the syntax is checked.
Notes
- In the Function Builder, only TYPE should be used instead ofLIKE, which is also always displayed as TYPE in the sourcecode. Furthermore, TYPE always refers to types in the ABAP Dictionary and never to local types of the function group.
- As a rule, formal parameters typed with STRUCTURE can be replaced by formal parameters typedwith TYPE. If casting is to be carried out, we recommend that you use generic formal parametersand assign these to a field symbol with the ASSIGN statement and CASTING addition.
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 4366 Date: 20120522 Time: 061519 triton ( 213 ms )






