cancel
Showing results for 
Search instead for 
Did you mean: 

How to Add Custom Fields from Custom CDS View into OData based App Variant (PO Goods Receipt)?

Sabeer_Sakkariya
Explorer
0 Kudos
175

Hi experts,

I'm working on a Fiori Elements app variant (s2p.mm.im.goodsreceipt.purchaseorder) 

I'm using SAP Business Application Studio.

Requirement is to add some custom fields in the item table as new columns. I was able to add the column details and also put some placeholders. But I'm stuck on how to map the field values.

I have created a new CDS view with the required fields and then published it via the OData Annotation, also checked its functionality in the transaction- /IWFND/GW_CLIENT.

I have then imported this OData to the Adaptation project using the Add OData and UI5 Model Wizard provided. I could see the change also recorded. Now, I have the following questions.

1. How can I check if the OData is properly linked with the project or not?
2. How can I map the fields which are part of this new OData at an item level for each PO?

I'm working on UI for the first time. Any comment would be of great help.
Thanks in advance.


View Entire Topic
junwu
SAP Champion
SAP Champion

you have to enhance original service, creating your own odata service won't help.

Sabeer_Sakkariya
Explorer
0 Kudos

Hi Junwu, thanks for answering. 

SAP has given an option to add a new OData and a new UI5 Model, right? What does it do?

Also, it'd be helpful if you could give me atleast a vague idea or a blog on how to extend the standard OData.

My colleague suggested to not touch the OData and just add a new OData to the Adaptation project.