Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary →  ABAP CDS in ABAP Dictionary →  ABAP CDS - Data Definitions →  ABAP CDS - DDL for Data Definitions →  ABAP CDS - DEFINE VIEW 

ABAP CDS - DEFINE VIEW, parameter_list

Other versions: 7.31 | 7.40 | 7.54


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


Defines CDS parameters parameter1, parameter2, ... as input parameters of a CDS 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:


The following CDS view 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 with Input Parameters.

@AbapCatalog.sqlViewName: 'DEMO_CDS_PARA'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Demo für Parameter-View'
define view demo_cds_parameters
  with parameters
    p_distance_l :s_distance,
    p_distance_u :s_distance,
    p_unit       :s_distid
  as select from
      key carrid,
      key connid,
          distid   =       :p_unit
      and distance between :p_distance_l and :p_distance_u;