Hi Gaurav,
The issue seems to be that the CDS views has input parameter and the necessary annotations are missiing
You can add static default value to the parameter like below
define view Zdemo04
with parameters
@Consumption.defaultValue:
'...'
vbeln1:vbak.vbeln
Or
Derive the value dynamically using @consumption.derivation annotation. For more details about the
@Consumption annotation refer to the help Consumption Annotations - About ABAP Programming Model for SAP Fiori - SAP Library
Some remarks on your CDS view: Firstly you have to change the VDM view type to #CONSUMPTION because the view is analytical query and secondly Analytical query should read the data from Analytical view for which the @Analytics.dataCategory=#CUBE is set.
Regards,
Panner