This is the interface for an entity set 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 adds a navigation property binding.
Precondition
A navigation property.
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 .
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. |
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.
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.
GET_ENTITY_TYPE returning value(RO_ENTITY_TYPE) type ref to /IWBEP/IF_V4_MED_ENTITY_TYPE raising /IWBEP/CX_V4_MED .
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.
This method gets navigation property bindings.
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 .
Parameter |
Description |
---|---|
et_nav_property_binding |
Navigation property bindings. |
Exceptions
The metadata exception is iwbep/cx_v4_med.
This method determines if the entity set is listed in the service document.
IS_IN_SERVICE_DOC returning value(RV_IS_IN_SERVICE_DOC) type ABAP_BOOL raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
rv_is_in_service_doc |
Is the entity set in the service document? |
Exceptions
The metadata exception is iwbep/cx_v4_med.
This method sets an EDM/OData name.
SET_EDM_NAME importing IV_EDM_NAME type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_EDM_NAME raising /IWBEP/CX_V4_MED .
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.
This method sets is not in service document for an entity set.
SET_IS_NOT_IN_SERVICE_DOC raising /IWBEP/CX_V4_MED .
Exceptions
The metadata exception is iwbep/cx_v4_med.