Application Development and Automation 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: 
Read only

HANA ABAP CDS input parameter

Former Member
0 Likes
2,462

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.

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
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
1,798

"But In zha400_cds_sb1 CDS View field in availabe"

I don't understand this sentence.

Read only

Former Member
0 Likes
1,798

Yes Field is available

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

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
1,798

Is also a parameter available?

Read only

Former Member
0 Likes
1,798

Yes Available

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
1,798

Can you show its definition?

Read only

Matt_Fraser
Active Contributor
0 Likes
1,798

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

Read only

Former Member
0 Likes
1,798

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

}

Read only

Sathya_Gunasekaran
Contributor
0 Likes
1,798

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