08-07-2018 12:31 AM
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?
05-20-2019 4:30 AM
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?
05-21-2019 1:28 PM
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 ...
06-25-2019 4:59 AM
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