Ansicht
Dokumentation

ABENCDS_PARAMETER_LIST_V2 - CDS PARAMETER LIST V2

ABENCDS_PARAMETER_LIST_V2 - CDS PARAMETER LIST V2

Fill RESBD Structure from EBP Component Structure   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

- CDS View Entity, parameter_list

... WITH PARAMETERS parameter1, parameter2, ...

Effect

Defines CDS parameters parameter1, parameter2, ... as input parameters of a CDS view entity in a comma-separated list.

An input parameter called pname can be accessed using the syntax $parameters.pname.

A 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, and abap.rawstring.

It can be used as an operand in the following places in the SELECT statement of the view entity:

  • Operand of an arithmetic expression. The parameter can have any of the numeric data types that are supported in arithmetic expressions in SELECT statements (see here).
  • Operand of an aggregate expression. The parameter can have any of the data types that are supported in aggregate expressions in SELECT statements.

Example

The following CDS view entity has a list of three input parameters used in the WHERE clause of the SELECT statement. For information about passing actual parameters in a SELECT statement in ABAP, see the executable example SELECT, CDS View Entity with Input Parameters.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Material Data  
This documentation is copyright by SAP AG.

Length: 5926 Date: 20240424 Time: 020930     sap01-206 ( 46 ms )