on 2019 Aug 08 9:19 AM
Hello Experts,
I have created one CDS view with parameters.It is running successfully in HANA studio.When I am going to run ODATA service from /IWFND/MAINT_SERVICE then I'm getting below error :
"The request URI contains an invalid key predicate"
Below is my code regarding CDS view
@AbapCatalog.sqlViewName: 'ZPUR_SPEND'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'FIORI app for purchase spend'
@OData.publish: true
define view ZMM_PURCHASE_SPEND
with parameters p_date : string1,
p_bukrs : string1
as select from ekpo inner join t001w
on ekpo.werks = t001w.werks
inner join t134t
on ekpo.mtart = t134t.mtart
inner join t023t
on ekpo.matkl = t023t.matkl
inner join mara
on ekpo.matnr = mara.matnr{
key ekpo.werks,
/*cast($parameters.p_bukrs as abap.sstring(04)) as cc,*/
/*cast($parameters.p_date as abap.sstring(08)) as cdate,*/
key t001w.name1,
key ekpo.bednr,
key t134t.mtbez,
key ekpo.matkl,
key t023t.wgbez,
key ekpo.netwr,
key mara.meins
}
where ekpo.bukrs = $parameters.p_bukrs
and ekpo.creationdate = $parameters.p_date
and ekpo.bednr <> ' '
My URI is :
/sap/opu/odata/sap/ZMM_PURCHASE_SPEND_CDS/ZMM_PURCHASE_SPENDSet(p_DATE='20190401',p_BUKRS='1000',WERKS='1001')
Please suggest me
User | Count |
---|---|
69 | |
12 | |
11 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.