on ‎2018 Sep 29 8:13 AM
Hi Experts,
We have a requirement to update a sales price list(BasePriceList) with products and corresponding price through OData call. For that we have searched for the specific collection in standard OData service and even created a custom OData service.In custom OData service, we have selected SalesPriceList and also SalesPriceSpecification objects but both of them are only supporting GET operation as Create and Update check boxes are disabled. Can any one please help us resolve this issue?
Request clarification before answering.
Hi Sundeel,
This can be done through annotation :
1> if it is through CDS view, we need to add annotation
@ObjectModel.createEnabled: true in our cds view then the creatable will be enabled in Odata
2> if it is without CDS view then we need to add annotation in MPC_EXT method Define.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First Thing i like to ask have you install components for Sales. Otherwise standrad services will not gone see.
and second thing when you can creating custom i dont think so create or updates proccess gone disabled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. What do you mean by installing Sales components?
Have add components : you can find here
https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('VKP2')/S12OP
In which Backend Components u have to add to get standard odata
2) Disabled in the sense, they are greyed out(Unselectable). You might have misunderstood.
I have understand the same but in normal process its always in enable only.
But Urvashi have given prefect way to lead the same
Hi Gaurav,
To be clear I am not trying to achieve this using Fiori application.Our requirement is to create a base price list record in C4C using rest service like Postman or any java program and for that to happen we don't find any dedicated Odata service for Base price list in our cloud solution.
Hi Suneel,
I get your point but the thing is whenever you like to use Standard OData which are available you have to add components for its,
Irrepestive of which fronted applications you are going to use, OData are services which are generated and can be consumed as HMTL, JSON , or whatever way you like to have.
I am just asking have to add the components or not nothing else.
And if you have already go for custom one than go for it not an issue.
Regards
Gaurav
Hi Suneel,
I get your Point but the thing is you always have to add components for Standard OData to use it untill and unless you cant that's why i have asked for whether have added Components for it or not.
And if you have gone for custom than i think it will fulfilled your requirement more than standard one.
-> have that get enbale or not ?
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.