SAP RAP BO CONTRACT ABAP Statements



Get Example source ABAP code based on a different SAP table
  



ABAP_RAP Business Object Contract - Overview
The RAP BO contract defines a set of rules and guidelines for the RAP BO provider and consumer implementation to ensure consistency and reliability. This topic provides an overview on general rules for the implementation. Find more details in the development guide for the ABAP RESTful Application Programming Model, section RAP Business Object Contract.
The violation of rules set by the RAP BO contract can cause RAP-specific runtime errors. The runtime errors usually start with BEHAVIOR_, for example, BEHAVIOR_CONTRACT_VIOLATION and BEHAVIOR_ILLEGAL_STATEMENT .
RAP BO contract violations can be caused by implementations of RAP BO consumers, RAP BO providers or by using illegal statements for the following reasons:
A contract violation always causes a runtime error.
The BDEF strict mode ensures that the current RAP business object or the RAP BO being invoked conforms to best practices.
A contract violation occurs in the context of the restricted ABAP language version.
BEGIN_SECTION VERSION 5 OUT
RAP contract check specific checkpoint groups are activated.
END_SECTION VERSION 5 OUT
The following table contains RAP BO contract check violations: RAP BO Contract Check ViolationDetails
Missing %cid