What does it do? Defines a CDS parameter> called pname> in one of the following:
Parameter list> of a CDS view entity>
Parameter list> of a CDS analytical projection view>
Parameter list> of a CDS table function>
Parameter list> of a CDS hierarchy>
Parameter list> of a CDS custom entity>
Parameter list> of an CDS abstract entity>
Parameter list> of a ABAP_CDS_V1_VIEW > The name pname> must comply with the naming rules for names>. Furthermore, pname> cannot contain any slash (/) characters and cannot be a reserved name in ABAP Dictionary. The name pname> must be unique and be located in the namespace of the elements and exposed CDS associations of the current CDS entity. In table functions, the reserved name connection > cannot be used. All reserved names that cannot be used are specified in the DDIC database table TRESE> >. The evaluation of names is not case-sensitive. Blanks in the comma-separated parameter list are ignored and can be omitted. Each parameter must be typed with an elementary data type. All data types listed in topic Typing>> are allowed, except for abap.accp>, abap.geom_ewkb>, abap.rawstring >, and abap.string>. In CDS view entities and CDS table functions, parameters can also have data type abap.string>. A CDS SQL entity> for which CDS parameters are defined as input parameters can be used as
data source or in a path expression of a different CDS view entity> or ABAP_CDS_V1_VIEW >
A data source> of a SELECT>> statement from AB_SQL in ABAP In these cases, each input parameter must be assigned a suitable actual parameter whose value is then used in the operand positions in which the parameter is specified. The actual parameters are assigned using a parenthesized comma-separated list as follows: ... cds_entity( pname1 : act1, pname2 : act2, ...) ...>>, This list must be specified directly after the name of the view when using an entity with parameters (both within the CDS DDL in ABAP CDS and in AB_SQL ). In AB_SQL , an equal sign (=>) is used instead of a colon (:>).