Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HANA ABAP CDS input parameter

Former Member
0 Kudos

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.

8 REPLIES 8

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

"But In zha400_cds_sb1 CDS View field in availabe"

I don't understand this sentence.

Former Member
0 Kudos

Yes Field is available

Fetching values from View zha400_cds_sb1 as a input Parameter carrid = 'AA'

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Is also a parameter available?

Former Member
0 Kudos

Yes Available

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you show its definition?

Matt_Fraser
Active Contributor
0 Kudos

I've removed the "NetWeaver Application Server for ABAP" secondary tag, as that is for Basis/platform questions, not development.

Former Member
0 Kudos

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

}

sathyags
Active Participant
0 Kudos

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