cancel
Showing results for 
Search instead for 
Did you mean: 

Newly added field is uneditable in fiori app - CDS extension

1,173

Hi

If someone could advise me on the below issue it would be really helpful .

I am extending standard app "Manage supplier master " to display a new database field .

I have extended the Interface view (I_BUSINESSPARTNERPURGORG) to include a new database(existing) field(SERVICEINDICATOR).

Consumption view(C_BUSINESSPARTNERPURGORG) is extended to display the new field on the app..

I can see the extended field in the app but the field is always read only and unable to edit .

Also only if I set @objectmodel.readOnly :true, I am able to open the app FLP else there is an error stating

The element 'SERVICEINDICATOR' of the CDS view 'C_BUSINESSPARTNERPURGORG' is not Read-Only

Is there any setting in spro or in BOPF to make this field editable

In data preview of the consumption view , I am able to see the data for the field ..

In odata metadata I get sap updatable as false .

Thanks

Anusha

View Entire Topic
chetan_shah9
Explorer
0 Kudos

I know its an age old question however since no one was able to answer and after days of debugging the standard code, i was able to get the solution, so posting for future reference.

Hi Anusha-

  1. I was facing the same issue and found the solution. First you need to extend the interface view (I_BusinessPartnerPurgOrgTP) by adding the zfield through association.
  2. Next you extend the consumption view (C_BusinessPartnerPurgOrg), make sure you add the zfield now from above interface view (BusinessPartnerPurgOrg.zfield)
  3. Make sure you are adding your z fields to both data and datax structure. For e.g. ( INCL_EEW_LFM1 and INCL_EEW_LFM1_X). This is very important step which is missing in extensibility documentation.

Regards,

Chetan Shah