SAP CDS F1 HIERA PARAMETER LIST



Get Example source ABAP code based on a different SAP table
  


• WITH PARAMETERS ABAP_CDS_DEFINE_HIERA

ABAP_CDS_DDL - DEFINE HIERARCHY, parameter_list

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

What does it do?
Defines CDS parameters parameter1, parameter2, ... as input parameters of a CDS table hierarchy in a comma-separated list.
An input parameter called pname can be used as an operand in the following places of the DEFINE HIERARCHY statement using the same syntax :pname or $parameters.pname as in ABAP_CDS_V1_VIEWS :
As operands after VALID FROM ... TO in the addition PERIOD.
As an operand on the right side of the start condition after START WHERE.
As an operand on the right side of the directory condition after DIRECTORY FILTER BY.
As an operand after DEPTH.

ABAP_EXAMPLE_VX5
Defines an input parameter in a CDS hierarchy and its use after START WHERE. The class CL_DEMO_HIERARCHY_TREE accesses the CDS hierarchy and passes an actual parameter to the input parameter.
DDLS DEMO_CDS_SIMPLE_TREE
ABAP_EXAMPLE_END