Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Business Object - Read Only Header & Editable Items & Draft

ZdenekSmolik
Explorer
0 Kudos

Hi all,

My goal is to create Fiori List Report which shows business partners and allows to maintain some custom tax information in object page using table.

I have created BO using CDS which has header and items. BO Header node is based on C_BusinessPartner CDS View. I disabled create, delete and update operations. BO Items nodes are based on customer table and all operations are enabled. BO has draft capability

I created consumption views for both header and items. To enable edit possibility in list report I had to enable update operation on header in consumption view. In items consumption view all operations remain enabled.

The result is app which shows business partners, I can edit the object page and maintain items.Great ...

BUT!!!

If I switch the object page to edit mode and click Cancel, I get an error. I guess the reason is that I disabled the delete operation on header level and BOPF is trying to delete draft state caused by modyfiing the items.

Do you see any way how to develop business object which has read only header (SAP Business Partner) and custom based items which are modifiable while draft status is allowed?

Thanks,

Zdenek

3 REPLIES 3

ZdenekSmolik
Explorer
0 Kudos

Hi all,

is this really so uncommon requirement? Nobody has faced this?

Thanks,

Zdenek

maheshpalavalli
Active Contributor
0 Kudos

Did you try enabling the delete at the bopf(transactional) CDs view and disabling the delete at the consumption view layer? So only at the UI layer u will be disabling the delete..

DoanManhQuynh
Active Contributor
0 Kudos

I think maybe you didnt say what error is...no information of what CDS beside the name, which i suppose is not standard...or maybe because im not a professional with this technical yet 🙂