This is the interface for navigation property 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 referential constraint to a navigation property.
ADD_REFERENTIAL_CONSTRAINT importing IV_SOURCE_PROPERTY_PATH type STRING IV_TARGET_PROPERTY_PATH type STRING raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_source_property_path |
Property internal path of current entity type, for example 'A-B'. |
iv_target_property_path |
Referential internal property path of target entity type, for example 'C-D'. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
This method gets the on delete action name.
GET_ON_DELETE_ACTION returning value(RV_ON_DELETE_ACTION) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_ON_DELETE_ACTION .
Parameter |
Description |
---|---|
rv_on_delete_action |
On delete action. See also GCS_MED_ON_DELETE_ACTION. |
Parameter |
Description |
---|---|
rv_partner |
Internal name of partner navigation. |
GET_PARTNER returning value(RV_PARTNER) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_INTERNAL_NAME .
This method gets the referential constraint.
GET_REFERENTIAL_CONSTRAINTS exporting ET_REF_CONSTRAINT type /IWBEP/IF_V4_MED_ELEMENT=>TY_T_MED_REF_CONSTRAINT .
Parameter |
Description |
---|---|
et_ref_constraint |
Referential constraint. |
This method gets the key of the service the source entity type belongs to.
GET_SOURCE_SERVICE_KEY exporting ES_SERVICE_KEY type /IWBEP/S_V4_MED_SERVICE_KEY raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
es_service_key |
Key of the target service. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
This method gets the target entity type.
GET_TARGET_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.
This method gets the navigation target multiplicity.
GET_TARGET_MULTIPLICITY returning value(RV_TARGET_MULTIPLICITY) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_NAV_MULTIPLICITY .
Parameter |
Description |
---|---|
rv_target_multiplicity |
Target multiplicity. |
This method gets the key of the service the target entity type belongs to.
GET_TARGET_SERVICE_KEY exporting ES_SERVICE_KEY type /IWBEP/S_V4_MED_SERVICE_KEY raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
es_service_key |
Key of the target service. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
This method determines if this navigation is a containment navigation.
IS_CONTAINMENT_NAVIGATION returning value(RV_CONTAINS_TARGET) type ABAP_BOOL .
Parameter |
Description |
---|---|
rv_contains_target |
Return TRUE if the navigation is a containment navigation. |
This method sets the EDM name of a navigation property.
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. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if IV_EDM_NAME is already in use or IV_EDM_NAME is invalid.
This method sets the navigation as containment navigation.
SET_IS_CONTAINMENT_NAVIGATION raising /IWBEP/CX_V4_MED .
Exceptions
The metadata exception is /iwbep/cx_v4_med.
This method sets an action when the targeted entity gets deleted.
SET_ON_DELETE_ACTION importing IV_ON_DELETE_ACTION type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_ON_DELETE_ACTION raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_on_delete_action |
On delete action. See GCS_MED_ON_DELETE_ACTION. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception for an invalid delete action in IV_ON_DELETE_ACTION.
This method sets the partner attribute.
SET_PARTNER importing IV_PARTNER type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_INTERNAL_NAME raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_partner |
Internal name of partner navigation property. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
This method sets the internal target entity type name.
SET_TARGET_ENTITY_TYPE_NAME importing IV_ENTITY_TYPE_NAME type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_INTERNAL_NAME IV_SERVICE_REF_NAME type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_INTERNAL_NAME optional raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_entity_type_name |
Target entity type name. |
iv_service_ref_name |
Name of the reference pointing to the service of the target. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception for an invalid IV_ENTITY_TYPE_NAME.
This method sets the navigation target multiplicity.
SET_TARGET_MULTIPLICITY importing IV_TARGET_MULTIPLICITY type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_NAV_MULTIPLICITY raising /IWBEP/CX_V4_MED .
Parameter |
Description |
---|---|
iv_target_multiplicity |
Target multiplicity. See /iwbep/if_v4_med_element=>gcs_med_nav_multiplicity. |
Exceptions
The metadata exception is /iwbep/cx_v4_med.
The system raises an exception if invalid multiplicity is used.