This is the interface for primitive types for OData version 4 (V4).
This interface includes interface /iwbep/if_v4_med_element.
Visibility and Level |
Alias |
Component |
---|---|---|
public |
get_edm_name | //IWBEP/IF_V4_MED_ELEMENT~GET_EDM_NAME |
public |
get_internal_name |
/IWBEP/IF_V4_MED_ELEMENT~GET_INTERNAL_NAME |
This method gets the type name from the EDM namespace.
GET_EDM_TYPE returning value(RV_EDM_TYPE) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_EDM_TYPE raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
rv_edm_type |
Type name for EDM namespace. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
This method gets the internal ABAP type information.
GET_INTERNAL_ABAP_TYPE_INFO exporting value(ES_INTERNAL_ABAP_TYPE_INFO) type /IWBEP/IF_V4_MED_ELEMENT=>TY_S_INTERNAL_ABAP_TYPE_INFO .
Parameter |
Description |
---|---|
es_internal_abap_type_info |
ABAP internal type information. |
This method gets the max length value.
GET_MAX_LENGTH returning value(RV_MAX_LENGTH) type I .
Parameter |
Description |
---|---|
rv_max_length |
Max length value. |
This method gets the precision value.
GET_PRECISION returning value(RV_PRECISION) type I .
Parameter |
Description |
---|---|
rv_precision |
Precision value. |
This method gets the provider ABAP type information.
GET_PROVIDER_ABAP_TYPE_INFO exporting value(ES_PROVIDER_ABAP_TYPE_INFO) type /IWBEP/IF_V4_MED_ELEMENT=>TY_S_PROVIDER_ABAP_TYPE_INFO .
Parameter |
Description |
---|---|
es_provider_abap_type_info |
ABAP type information. |
This method gets the scale value.
GET_SCALE returning value(RV_SCALE) type I .
Parameter |
Description |
---|---|
rv_scale |
Scale value. |
This method sets the type name from EDM namespace.
SET_EDM_TYPE importing IV_EDM_TYPE type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_EDM_TYPE raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_edm_type |
EDM type (see GCS_EDM_DATA_TYPES). |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if the EDM type is invalid.
This method sets the max length value.
SET_MAX_LENGTH importing IV_MAX_LENGTH type I raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_max_length |
Max length value. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if the max length value is invalid.
This method sets the precision of the decimal type.
SET_PRECISION importing IV_PRECISION type I raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_precision |
Precision value. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if the precision value is invalid.
This method sets the provider ABAP conversion exit. This can only be set on non-ABAP-based primitive types.
SET_PROVIDER_ABAP_CONV_EXIT importing IV_CONVERSION_EXIT type CONVEXIT raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_conversion_exit |
Conversion exit. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if the conversion exit does not exist.
This method sets the provider ABAP decimals. This can only be set on non-ABAP-based primitive types.
SET_PROVIDER_ABAP_DECIMALS importing IV_DECIMALS type I raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_decimals |
ABAP decimals. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if the decimals are invalid.
This method sets the provider ABAP length. This can only be set on non-ABAP-based primitive types.
SET_PROVIDER_ABAP_LENGTH importing IV_LENGTH type I raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_length |
ABAP length. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if the length is invalid.
This method sets the scale of the decimal type.
SET_SCALE importing IV_SCALE type I raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_scale |
Scale value. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if the scale is invalid.
This method sets the scale of decimal primitive type to be variable.
SET_SCALE_VARIABLE raising /IWBEP/CX_V4_MED .
Exceptions
The metadata exception is /iwbep/cx_v4_med.