Show TOC

Interface /IWBEP/IF_V4_MED_FUNC_PARAMLocate this document in the navigation structure

This is the interface for function parameter for OData version 4 (V4). This interface is the representation of a parameter of a function.

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_PARAMETER_TYPE_KIND

This method gets the kind of the parameter kind.

Based on the parameter type set by the consumer of the interface, the corresponding type-kind will be set. See also constant /iwbep/if_v4_med_element=>gcs_med_argument_type_kind.

Code Syntax
get_parameter_type_kind
    EXPORTING
      ev_parameter_type_kind TYPE /iwbep/if_v4_med_element=>ty_e_med_argument_type_kind .
Table 2:

Parameter

Description

ev_parameter_type_kind

Parameter type kind.

Method GET_PRIMITIVE_KIND

This method gets the primitive kind object. Based on the parameter type set by the consumer of the interface, the corresponding type-kind will be set. See also constant /iwbep/if_v4_med_element=>gcs_med_argument_type_kind.

Code Syntax
get_primitive_type
    RETURNING
      VALUE(ro_primitive_type) TYPE REF TO /iwbep/if_v4_med_prim_type
    RAISING
      /iwbep/cx_v4_med .
Table 3:

Parameter

Description

ro_primitive_type

Primitive type.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method SET_EDM_NAME

This method sets the EDM name of the parameter.

Code Syntax
set_edm_name
    IMPORTING
      iv_edm_name TYPE /iwbep/if_v4_med_element=>ty_e_med_edm_name
    RAISING
      /iwbep/cx_v4_med .
Table 4:

Parameter

Description

iv_edm_name

EDM name.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method SET_PRIMITIVE_TYPE
This method sets the primitive type. If the parameter type kind shall be an primitve type, this method is used to set the name of the related primitive type.
Code Syntax
set_primitive_type
    IMPORTING
      iv_primitive_type_name TYPE /iwbep/if_v4_med_element=>ty_e_med_internal_name
    RAISING
      /iwbep/cx_v4_med .
Table 5:

Parameter

Description

iv_primitive_type_name

Internal name of the primitive type.

Exceptions

The metadata exception is iwbep/cx_v4_med.