Show TOC

Interface /IWBEP/IF_V4_MED_FUNC_IMPLocate this document in the navigation structure

This is the interface for function imports 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_ENTITY_SET

This method gets the internal entity set name of the returned entities.

If the return type of an action is an entity type, the corresponding entity set must be defined via the action import. This method returns the specified entity set object.

Code Syntax
get_entity_set
    RETURNING
      VALUE(ro_entity_set) TYPE REF TO /iwbep/if_v4_med_entity_set
    RAISING
      /iwbep/cx_v4_med .
Table 2:

Parameter

Description

ro_entity_set

Entity set.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method GET_FUNCTION

This method gets the function of a function import.

Code Syntax
get_function
    RETURNING
      VALUE(ro_function) TYPE REF TO /iwbep/if_v4_med_function
    RAISING
      /iwbep/cx_v4_med .
Table 3:

Parameter

Description

ro_function

Function.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method IS_IN_SERVICE_DOC
This method determines if the function import is listed in the service document.
Code Syntax
is_in_service_doc
    RETURNING
      VALUE(rv_is_in_service_doc) TYPE abap_bool .
Method SET_EDM_NAME

This method sets the EDM name of a function import. The EDM name must be unique within the model.

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_ENTITY_SET_NAME

This method sets the entity set name for returned entities.

If the return type of a function is an entity type, the corresponding entity set must be defined via the function import. This method will be used to specify the name of the returned entity set.

Code Syntax
set_entity_set_name
    IMPORTING
      iv_entity_set_name TYPE /iwbep/if_v4_med_element=>ty_e_med_internal_name
    RAISING
      /iwbep/cx_v4_med .
Table 5:

Parameter

Description

iv_entity_set_name

Internal entity set name.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method IS_NOT_IN_SERVICE_DOC
This method determines if the set is not in the service document for the function import.
Code Syntax
set_is_not_in_service_doc
    RAISING
      /iwbep/cx_v4_med .

Exceptions

The metadata exception is iwbep/cx_v4_med.