cancel
Showing results for 
Search instead for 
Did you mean: 

The element of the CDS view is not Read Only error

0 Kudos
2,244

Hi ,

I am trying to extend a standard CDS view C_BusinessPartner and add a z field through association . But when I am getting error that the element of the CDS view is not Read Only. I am forced to use ObjectModel.ReadOnly: true to remove the error. But i want the field to be editable in Fiori. Could you please help what is missing here. Is it like I have to extend any other CDS views ? I read in some blogs that the corresponding BOPF structures need to updated as well. If its so how to find the correct BOPF nodes ? The field i am trying to extend is a purely independent custom field and I want to be added as new tab in the Fiori BP App. Can you please help here.

Thanks,

Abhinay.

View Entire Topic
chetan_shah9
Explorer

Hi Abhinay -

  1. I was facing the same issue and found the solution. First you need to extend the interface view (I_BusinessPartnerTP) by adding the zfield through association.
  2. Next you extend the consumption view (C_BusinessPartner), make sure you add the zfield now from above interface view (BusinessPartner.zfield)
  3. Make sure you are adding your z fields to both data and datax structure. For e.g. ( INCL_EEW_LFA1 and INCL_EEW_LFA1_X). This is very important step which is missing in extensibility documentation. They have only mentioned INCL_EEW_LFA1 and not INCL_EEW_LFA1_X which is critical for integration to work.

Regards,

Chetan Shah

kp_25
Participant
0 Kudos

Can the same way be followed for Supplier master ? My requirement is to add 3 sap fields( MINDK BEGDA ENDDA as table control in Supplier Master. )

Is it possible to do in the same way?