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 ABSTRACT ENTITY 

ABAP CDS - DEFINE ABSTRACT ENTITY, parameter_list

Other versions: 7.31 | 7.40 | 7.54

Syntax


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

Effect

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

Currently, input parameters called pname are used only to model the interface of an abstract entity. They cannot be used as operands in the abstract CDS entity.


Note

An input parameter cannot be specified as an element in the element list.


Example

The following DDL source code shows an abstract CDS entity with input parameters:

define abstract entity demo_cds_abstract_entity_para
  with parameters
    @EndUserText.label: 'Date parameter'
    p1 : abap.dats,
    @EndUserText.label: 'Integer parameter'
    p2 : abap.int4,
    @EndUserText.label: 'Data element parameter'
    p3 : char255
  {
    key col1 : abap.char(3);
        col2 : abap.int4;
  }

The program DEMO_CDS_ABSTRACT_ENTITY_PARA shows that the parameter annotations of the abstract CDS entity can be evaluated using the class CL_DD_DDL_ANNOTATION_SERVICE.