Get Example source ABAP code based on a different SAP table
• WITH PARAMETERS ABAP_CDS_ANALYTICAL
ABAP_CDS_DDL - parameter_list>, Analytical Query
ABAP_SYNTAX ... WITH PARAMETERS parameter1>, parameter2>, ...>
What does it do? Defines CDS parameters> parameter1>>, parameter2>>, ... as input parameters of a CDS analytical projection view> in a comma-separated list. An input parameter called pname> can be accessed using the syntax $parameters.pname>. It can be used as an operand in the following places in the element_list>> of the projection view:
Element> in the element list>. An alias name> is mandatory.
Operand of an arithmetic expression>. The parameter can have any of the numeric data types that are supported in arithmetic expressions (see here>).
Operand of a cast expression>.
Operand of a case expression>.
Operand of a built-in function>, as long as it has a suitable data type.
Operand of an expression cds_cond> in a WHERE>> clause. ABAP_CAUTION Not more than one parameter can be annotated with @Semantics.businessDate.At>, because the ABAP Analytical Engine> currently supports only one temporal dependency.
Parameter Passing How to pass values to input parameter is described in topic CDS parameter passing>.