The Ultimate C - C - FIORDEV - 21 - SAP Certified Development Associate - SAP Fiori Application Developer
The Ultimate C - C - FIORDEV - 21 - SAP Certified Development Associate - SAP Fiori Application Developer
By defining a mapping specification in the behavior definition, you can use the mapping operator in the
behavior implementation to write records to the database that have a discrepancy between the names of
the database table fields and the CDS view field names.
For more information, see the information for mapping in Adding Behavior to the Business Object and
the implementation in Implementing the CREATE Operation for Travel Instances.
Message handling
The behavior processing framework provides a message object that can be used for message handling in
the behavior pool. New message handling has been added to the unmanaged scenario. The corresponding
methods are implemented in an auxiliary class that inherits from cl_abap_behv and called from the
behavior handler.
For more information, see the information about message handling in Implementing the CREATE
Operation for Travel Instances.
The implementation for the control must then be implemented in the respective methods in the behavior
pool. For example, for this behavior definition, you can implement that the field travel_id is mandatory on
create, but read-only on the update operation. The action can be implemented as disabled if the travel
entity is already set to accepted, but enabled if it is not yet accepted.
For more information, see Feature Control.
Sometimes you might be interested in more CDS-specific aspects and want to see access control lists or
test classes. You can achieve this by switching the context from Business Object to Core Data Services
context, as you can see in the following animation.
Service Consumption Model Wizard
In the service consumption model creation wizard:
ETag support can now be selected for any entity set. If ETag support is marked in your edmx file, the
Etag support checkbox is selected by default.