cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Newly added field is uneditable in fiori app - CDS extension

1,196

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

Accepted Solutions (0)

Answers (2)

Answers (2)

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

former_member577849
Active Participant
0 Kudos

Dear Anusha Ramsiva,

Unfortunately, it seems to be taking longer than usual for your question to be answered. You might want to try an alternative route to speed things up.

Please check if a similar question has already been asked in the Community. We have found that sometimes questions that have been answered before are no longer receiving responses.

The easiest way to do this, is to visit the All Questions page and search for your specific topic.

You could also check the SAP Support Portal and search for SAP Notes, SAP Knowledge Base Articles and more.

If all of this doesn’t work, I would suggest that you create a support ticket. All you need to do is log onto the SAP Support Portal with your S-user ID and password: http://service.sap.com/message

Thanks,

Marvin