Show TOC

Interface /IWBEP/IF_V4_MED_ENTITY_SETLocate this document in the navigation structure

This is the interface for an entity set 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 ADD_NAVIGATION_PROP_BINDING

This method adds a navigation property binding.

Precondition

A navigation property.

Syntax

Code Syntax
ADD_NAVIGATION_PROP_BINDING
    importing
      IV_NAVIGATION_PROPERTY_PATH type STRING
      IV_TARGET_ENTITY_SET type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_INTERNAL_NAME
    raising
      /IWBEP/CX_V4_MED .
Table 2:

Parameter

Description

iv_navigation_property_path

Property path to navigation property seperated by '-'.

iv_target_entity_set

Internal name of entity set.

This must be a valid name, otherwise an exception is thrown.

Sample Code
lo_entity_set->add_navigation_prop_binding(
    iv_navigation_property_path = 'EMPLOYEE_2_TEAM'
    iv_target_entity_set = 'TEAMS' ).

Exceptions

The metadata exception is iwbep/cx_v4_med.

The system will raise an exception if navigation property binding is already in use.

Method GET_ENTITY_TYPE

This method returns an entity type.

The system will create an entity set with internal name IV_ENTITY_SET_NAME that references the entity type.

Code Syntax
GET_ENTITY_TYPE
    returning
      value(RO_ENTITY_TYPE) type ref to /IWBEP/IF_V4_MED_ENTITY_TYPE
    raising
      /IWBEP/CX_V4_MED .
Table 3:

Parameter

Description

ro_entity_type

Entity type.

Exceptions

The metadata exception is iwbep/cx_v4_med.

The system will raise an exception if no entity type with the given internal name exists at the entity set.

Method GET_NAVIGATION_PROP_BINDINGS

This method gets navigation property bindings.

Code Syntax
GET_NAVIGATION_PROP_BINDINGS
    exporting
      ET_NAV_PROPERTY_BINDING type /IWBEP/IF_V4_MED_ELEMENT=>TY_T_MED_NAV_PROPERTY_BINDING
      raising
      /IWBEP/CX_V4_MED .
Table 4:

Parameter

Description

et_nav_property_binding

Navigation property bindings.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method IS_IN_SERVICE_DOC

This method determines if the entity set is listed in the service document.

Code Syntax
IS_IN_SERVICE_DOC
    returning
      value(RV_IS_IN_SERVICE_DOC) type ABAP_BOOL
       raising
      /IWBEP/CX_V4_MED .
Table 5:

Parameter

Description

rv_is_in_service_doc

Is the entity set in the service document?

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method SET_EDM_NAME

This method sets an EDM/OData name.

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 6:

Parameter

Description

iv_edm_name

EDM name. This must be a valid EDM name.

Exceptions

The metadata exception is iwbep/cx_v4_med.

The system will raise an exception if the EDM name is already in use.

Method SET_IS_NOT_IN_SERVICE_DOC

This method sets is not in service document for an entity set.

Code Syntax
SET_IS_NOT_IN_SERVICE_DOC
    raising
      /IWBEP/CX_V4_MED .

Exceptions

The metadata exception is iwbep/cx_v4_med.