Skip to Content
avatar image
-1
Former Member

HANA ABAP CDS input parameter

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 21, 2017 at 11:51 AM

    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

    }

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 21, 2017 at 01: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

    Add comment
    10|10000 characters needed characters exceeded