01-25-2017 7:27 AM
When Trying to use CDS Views InputParameter
define view zinput_pa as select from zha400_cds_sb1 (carrid: 'AA')
{
carrid, customid
}
Error Message :Type Parameter carrid is not defined for entity
But In zha400_cds_sb1 CDS View field in availabe ,Could you please help me.
01-25-2017 7:52 AM
"But In zha400_cds_sb1 CDS View field in availabe"
I don't understand this sentence.
01-25-2017 8:26 AM
Yes Field is available
Fetching values from View zha400_cds_sb1 as a input Parameter carrid = 'AA'
01-25-2017 8:43 AM
01-25-2017 10:34 AM
01-25-2017 2:17 PM
01-25-2017 10:53 PM
I've removed the "NetWeaver Application Server for ABAP" secondary tag, as that is for Basis/platform questions, not development.
04-21-2017 12:51 PM
Can you share the view definition for zha400_cds_sb1?
It seem to me that you are mapping value to the column directly not input parameter.
Try the below code:
define view zha400_cds_sb1 with parameters ip_carrid:abap.char(3) { * }
define view zinput_pa as select from zha400_cds_sb1 (ip_carrid: 'AA')
{
carrid, customid
}
04-21-2017 2:19 PM
Hi Raghavendra,
Does the view zha400_cds_sb1 have an input parameter with the name carrid?
It seems to me that the parameter carrid is missing in the other view.
It should have define view zha400_cds_sb1 with parameters carrid:datatype
Sathya