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: 

Enhance a BOPF object generated from a CDS view

JonBlack
Explorer

Hi All,

I have found a note that implies that we can not enhances BOPF objects that have been generated from CDS views.

2650915 - BOBX: CDS-generated business object (draft object): Switch "Business Object can be enhanced"


No BOPF-based enhancement can/should be created for a CDS-generated business object (or draft object)

This leads to the question, if we can extend the CDS view, how do we add validations/determination the data now in the extension?

3 REPLIES 3

js2
Product and Topic Expert
Product and Topic Expert
0 Kudos

This is a major issue and basically means we cannot enhance fiori elements based apps with any BOPF based logic. i.e. extract actions, validations, determinations etc.

What are our options? Mods to the underlying abap classes?

Steven_UM
Contributor
0 Kudos

I haven't checked the note but that would be weird ...

The new ABAP programming model SAP help discusses in detail how to change the BOPF object to add new actions, validations, etc ...

https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/1809.000/en-US/231469eabd9e44819ff8deb2...

JonBlack
Explorer

Hi Steven,

This is valid for custom BOPF objects or even ones you can enhance. But with BOPFS created from CDS views you this doesn't work.

To get around this we have done implicit enhancement ( pre and post exits) of existing validations and determinations in the BOPF. Very ugly.

Cheers

Jon