-1

HANA ABAP CDS input parameter

Jan 25 at 07:27 AM

105

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.

10 |10000 characters needed characters left characters exceeded

"But In zha400_cds_sb1 CDS View field in availabe"

I don't understand this sentence.

0

Yes Field is available

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

0
SAP Employee
Raghavendra Vasi

Is also a parameter available?

0

Yes Available

0
SAP Employee
Raghavendra Vasi

Can you show its definition?

0

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

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Remya Raj Apr 21 at 11:51 AM
0

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

}

Share
10 |10000 characters needed characters left characters exceeded
Sathya Gunasekaran Apr 21 at 01:19 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded