Get Example source ABAP code based on a different SAP table
• ANY ABAP_DDIC_GENERIC_TYPE • NUMERIC ABAP_DDIC_GENERIC_TYPE VERSION 5 IN
ABAP_DDIC - Generic Data Types The following table shows the built-in generic DDIC types. A generic data type is like a placeholder that allows different built-in data types. The following generic data types are available: Type>Includes the following built-in data types > any> INT1>, INT2>, INT4>, INT8>, DEC >, CURR>, QUAN>, DECFLOAT16>, DECFLOAT34>, FLTP>, CHAR>, NUMC>, STRING>, SSTRING>, RAW>, RAWSTRING>, DATS>, TIMS>, CUKY>, UNIT>, CLNT>. numeric>INT1>, INT2>, INT4>, INT8>, DEC >, DECFLOAT16>, DECFLOAT34>.
Latest notes:
Generic DDIC data types are currently allowed only for typing parameters in CDS scalar functions >.
The generic type any> is allowed only in analytical scalar functions>. It is not allowed in SQL-based scalar functions>. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 The following CDS scalar function uses the built-in generic type numeric> to type the input parameter p1>. Parameters passed to p1> must have a valid data type. Otherwise, a syntax check error occurs. DEFINE SCALAR FUNCTION demo_generic_ddic_type WITH PARAMETERS p1: numeric RETURNS TYPE OF p1> ABAP_EXAMPLE_END