Metadata Extension is useful in segregating the UI/Consumption related annotations from the Actual CDS.
It is very handy for enhancing the UI without impacting the CDS. It establishes a loose coupling between Data Model and UI annotations.
@Metadata.allowExtension: true
CDS access control is used to perform authorization checks.
Annotation used is @AccessControl.authorizationCheck
Annotation used is @AccessControl.authorizationCheck
If logic is more complex then CDS cannot help in achieving code pushdown. We will have to use Table function with CDS.
ABAP CDS is reusable.
CDS helps in achieving code pushdown.
Act as a single model for Fiori apps.
Can help us to write SQL script inside ABAP using Table function.
CDS helps in achieving code pushdown.
Act as a single model for Fiori apps.
Can help us to write SQL script inside ABAP using Table function.
CDS View activation generates 2 objects:
CDS View Entity(consumed everywhere) & SQL view at DDIC level.
Cardinality is used to define the relationship among tables. It can be such as ZERO TO ONE, ONE to ONE,ONE To MANY, MANY to ZERO represented as [0..1],[1..1], [1..*], [*..0]
Path expression is like a where condition which is used inside the CDS select to filter the data.
CDS View Entity(consumed everywhere) & SQL view at DDIC level.
Cardinality is used to define the relationship among tables. It can be such as ZERO TO ONE, ONE to ONE,ONE To MANY, MANY to ZERO represented as [0..1],[1..1], [1..*], [*..0]
Path expression is like a where condition which is used inside the CDS select to filter the data.
ABAP CDS & HANA CDS.
Further ABAP CDS has categories:
Interface Views,
Composite Views &
Consumption Views.
Now we have further types under these:
CDS with Parameter
CDS with join
CDS with association
Extend view etc.
Further ABAP CDS has categories:
Interface Views,
Composite Views &
Consumption Views.
Now we have further types under these:
CDS with Parameter
CDS with join
CDS with association
Extend view etc.
By default the visibility of Interface Methods is Private. We can change this using ALIAS.
The data type should be of CHAR with max length 30.
When we have Multi use BADI which can have multiple implementation and we want the implementations to be conditional. Say we want the different implementations for different Country codes we can go with Filter dependent BADI.
The dictionary meaning for fallback is 'an alternative plan that may be used in an emergency'. That's what exactly the fallback class is meant for. Fallback class comes into picture when there is no active implementation exists for the BADI. In such case the code in fallback class's method executes. As soon as an implementation exists in system, the implementation call will be used automatically. This fallback class we give when we create the BADI definition.