SAP / SAP Mid Level (3 to 8 yrs) Interview questions
What is a behavior definition in RAP?
A behavior definition is where you declare a business object's actual behavior within the RAP model — which operations are allowed (create, update, delete), what validations and determinations should run, and how the object relates to other objects — written in a dedicated behavior definition language, separate from but linked to the object's CDS View data model.
managed implementation in class zbp_i_salesorder unique; strict(2); define behavior for Z_I_SalesOrder alias SalesOrder persistent table zsalesorder { create; update; delete; field ( readonly ) SalesOrderId; validation validateAmount on save { field Amount; } }
The actual implementation of custom validations, determinations, and actions goes into an ABAP class
(referenced by implementation in class), but the behavior definition itself declares
what operations exist and what rules apply, giving the framework enough structure to handle the
standard mechanics (locking, buffering, transactional consistency) automatically.
More Related questions...
