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
Set a variable based on SFSY-PAGE and use in a condition parameter for the Logo node
By using FILTER operator with KEY and WHERE specific records can be moved to another internal table.
CDS access control is used to perform authorization checks.
Annotation used is @AccessControl.authorizationCheck
Annotation used is @AccessControl.authorizationCheck
A command node is a special type of node in smartforms which can be used to trigger page-breaks
Using /h to trigger the debugger and by setting variables GD-EDIT and GD-SAPEDIT to X
If logic is more complex then CDS cannot help in achieving code pushdown. We will have to use Table function with CDS.
Whenever we create a smart form and activate it a function module is generated based on a naming convention. Smart forms internally use Number ranges to name the function module whenever we change and activate the smart form. In the above case the FM name is /1BCDWB/SF00000359. The function module for the next new and activated Smart Form would be /1BCDWB/SF00000360. So when this smart form is transported to other systems a new function module name is generated according to the Number range in that system, then using the function module name directly in the driver program may result into dumps as the function module names is not available in the system. To handle this situation SAP developed Function module SSF_FUNCTION_MODULE_NAME to get the name of the function module for a smart form dynamically. If the form is not active, the FM raises the exception NO_FORM.
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.
No