Show TOC

Interface /IWBEP/IF_V4_MED_PRIM_TYPELocate this document in the navigation structure

This is the interface for primitive types for OData version 4 (V4).

This interface includes interface /iwbep/if_v4_med_element.

Table 1: Aliases

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

Methods
Method GET_EDM_TYPE

This method gets the type name from the EDM namespace.

Code Syntax
GET_EDM_TYPE
    returning
      value(RV_EDM_TYPE) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_EDM_TYPE
    raising
      /IWBEP/CX_V4_MED .
Table 2:

Parameter

Description

rv_edm_type

Type name for EDM namespace.

Exceptions

The metadata exception is /iwbep/cx_v4_med.

Method GET_INTERNAL_ABAP_TYPE_INFO

This method gets the internal ABAP type information.

Code Syntax
GET_INTERNAL_ABAP_TYPE_INFO
    exporting
      value(ES_INTERNAL_ABAP_TYPE_INFO) type /IWBEP/IF_V4_MED_ELEMENT=>TY_S_INTERNAL_ABAP_TYPE_INFO .
Table 3:

Parameter

Description

es_internal_abap_type_info

ABAP internal type information.

Method GET_MAX_LENGTH

This method gets the max length value.

Code Syntax
GET_MAX_LENGTH
    returning
      value(RV_MAX_LENGTH) type I .
Table 4:

Parameter

Description

rv_max_length

Max length value.

Method GET_PRECISION

This method gets the precision value.

Code Syntax
GET_PRECISION
    returning
      value(RV_PRECISION) type I .
Table 5:

Parameter

Description

rv_precision

Precision value.

Method GET_PROVIDER_ABAP_TYPE_INFO

This method gets the provider ABAP type information.

Code Syntax
GET_PROVIDER_ABAP_TYPE_INFO
    exporting
      value(ES_PROVIDER_ABAP_TYPE_INFO) type /IWBEP/IF_V4_MED_ELEMENT=>TY_S_PROVIDER_ABAP_TYPE_INFO .
Table 6:

Parameter

Description

es_provider_abap_type_info

ABAP type information.

Method GET_SCALE

This method gets the scale value.

Code Syntax
GET_SCALE
    returning
      value(RV_SCALE) type I .
Table 7:

Parameter

Description

rv_scale

Scale value.

Method SET_EDM_TYPE

This method sets the type name from EDM namespace.

Code Syntax
SET_EDM_TYPE
    importing
      IV_EDM_TYPE type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_EDM_TYPE
    raising
      /IWBEP/CX_V4_MED .
Table 8:

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.

Method SET_MAX_LENGTH

This method sets the max length value.

Code Syntax
SET_MAX_LENGTH
    importing
      IV_MAX_LENGTH type I
    raising
      /IWBEP/CX_V4_MED .
Table 9:

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.

Method SET_PRECISION

This method sets the precision of the decimal type.

Code Syntax
SET_PRECISION
    importing
      IV_PRECISION type I
    raising
      /IWBEP/CX_V4_MED .
Table 10:

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.

Method SET_PROVIDER_ABAP_CONV_EXIT

This method sets the provider ABAP conversion exit. This can only be set on non-ABAP-based primitive types.

Code Syntax
SET_PROVIDER_ABAP_CONV_EXIT
    importing
      IV_CONVERSION_EXIT type CONVEXIT
    raising
      /IWBEP/CX_V4_MED .
Table 11:

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.

Method SET_PROVIDER_ABAP_DECIMALS

This method sets the provider ABAP decimals. This can only be set on non-ABAP-based primitive types.

Code Syntax
SET_PROVIDER_ABAP_DECIMALS
    importing
      IV_DECIMALS type I
    raising
      /IWBEP/CX_V4_MED .
Table 12:

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.

Method SET_PROVIDER_ABAP_LENGTH

This method sets the provider ABAP length. This can only be set on non-ABAP-based primitive types.

Code Syntax
SET_PROVIDER_ABAP_LENGTH
    importing
      IV_LENGTH type I
    raising
      /IWBEP/CX_V4_MED .
Table 13:

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.

Method SET_SCALE

This method sets the scale of the decimal type.

Code Syntax
SET_SCALE
    importing
      IV_SCALE type I
    raising
      /IWBEP/CX_V4_MED .
Table 14:

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.

Method SET_SCALE_VARIABLE

This method sets the scale of decimal primitive type to be variable.

Code Syntax
SET_SCALE_VARIABLE
    raising
      /IWBEP/CX_V4_MED .

Exceptions

The metadata exception is /iwbep/cx_v4_med.