SAP CDS PARAMETER LIST V1



Get Example source ABAP code based on a different SAP table
  


• WITH PARAMETERS ABAP_CDS_DEFINE_VIEW

ABAP_CDS_DDL - DDIC-Based View, parameter_list

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

What does it do?
Defines CDS parameters parameter1, parameter2, ... as input parameters of a ABAP_CDS_V1_VIEW in a comma-separated list.
An input parameter called pname can be used as an operand in the following places in the SELECT statement of the view using the syntax :pname or $parameters.pname :
Element in the SELECT list
Operand of an arithmetic expression
Operand operand directly after case in a case distinction
Right side of an expression cds_cond in a WHERE clause or HAVING clause
Right side of an expression cds_cond in an ON condition in an ABAP join or a CDS association
Right side of an expression cds_cond in a filter condition of a path expression
Right side of an expression cds_cond in the default filter condition of a CDS association

ABAP_EXAMPLE_VX5
The following CDS view has a list of three input parameters used in the WHERE clause of the SELECT statement. The ABAP class CL_DEMO_CDS_PARAMETERS accesses the view and assigns actual parameters to the input parameters.
DDLS DEMO_CDS_PARAMETERS
ABAP_EXAMPLE_END