ABAP for Cloud Development, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - Rules for ABAP Cloud → Contract Rules for ABAP Released APIs → C1 Contract Rules → C1 Contract Rules for API Consumers →C1 Contract Rules for Consuming Elementary Types
The data type of
are allowed to be changed by the API provider as follows:
All these changes result in a larger value range compared with the original data type. A consumer must be able to handle larger values. This impacts all operations with elementary data objects that are typed with such a type as well as operations with structured data that contain components of such a type.
Operations with Elementary Data Objects
When working with elementary data objects of one of the above types the behavior after an allowed type change depends on the type, the operand position and the content.
Possible Problems
Examples for possible problems are:
Mitigation
When declaring data objects, always refer to the released data types themselves. Do not refer to user-defined types. Use data objects referring to released types only at operand positions where changing the type cannot produce an error.
Operations with Structures
Changing the data type of a component of a structure changes the technical type of the complete structure. This has a large impact since there are many operand positions, where compatibility is required for structures and generally, the same errors can occur that result from changing the elements of structures described below and the same mitigations apply.