Show TOC

Interface /IWBEP/IF_V4_MED_NAV_PROPLocate this document in the navigation structure

This is the interface for navigation property 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_REFERENTIAL_CONSTRAINT

This method adds a referential constraint to a navigation property.

Code Syntax
ADD_REFERENTIAL_CONSTRAINT
    importing
      IV_SOURCE_PROPERTY_PATH type STRING
      IV_TARGET_PROPERTY_PATH type STRING
    raising
      /IWBEP/CX_V4_MED .
Table 2:

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.

Method GET_ON_DELETE_ACTION

This method gets the on delete action name.

Code Syntax
GET_ON_DELETE_ACTION
    returning
      value(RV_ON_DELETE_ACTION) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_ON_DELETE_ACTION .
Table 3:

Parameter

Description

rv_on_delete_action

On delete action. See also GCS_MED_ON_DELETE_ACTION.

Method GET_PARTNER
Th
Table 4:

Parameter

Description

rv_partner

Internal name of partner navigation.

is method gets the partner attribute.
Code Syntax
GET_PARTNER
    returning
      value(RV_PARTNER) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_INTERNAL_NAME .

Method GET_REFERENTIAL_CONSTRAINT

This method gets the referential constraint.

Code Syntax
GET_REFERENTIAL_CONSTRAINTS
    exporting
      ET_REF_CONSTRAINT type /IWBEP/IF_V4_MED_ELEMENT=>TY_T_MED_REF_CONSTRAINT .
Table 5:

Parameter

Description

et_ref_constraint

Referential constraint.

Method GET_SOURCE_SERVICE_KEY

This method gets the key of the service the source entity type belongs to.

Code Syntax
GET_SOURCE_SERVICE_KEY
    exporting
      ES_SERVICE_KEY type /IWBEP/S_V4_MED_SERVICE_KEY
    raising
      /IWBEP/CX_V4_MED .
Table 6:

Parameter

Description

es_service_key

Key of the target service.

Exceptions

The metadata exception is /iwbep/cx_v4_med.

Method GET_TARGET_ENTITY_TYPE

This method gets the target entity type.

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

Parameter

Description

ro_entity_type

Entity type.

Exceptions

The metadata exception is /iwbep/cx_v4_med.

Method GET_TARGET_MULTIPLICITY

This method gets the navigation target multiplicity.

Code Syntax
GET_TARGET_MULTIPLICITY
    returning
      value(RV_TARGET_MULTIPLICITY) type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_NAV_MULTIPLICITY .
Table 8:

Parameter

Description

rv_target_multiplicity

Target multiplicity.

Method GET_TARGET_SERVICE_KEY

This method gets the key of the service the target entity type belongs to.

Code Syntax
GET_TARGET_SERVICE_KEY
    exporting
      ES_SERVICE_KEY type /IWBEP/S_V4_MED_SERVICE_KEY
    raising
      /IWBEP/CX_V4_MED .
Table 9:

Parameter

Description

es_service_key

Key of the target service.

Exceptions

The metadata exception is /iwbep/cx_v4_med.

Method IS_CONTAINMENT_NAVIGATION

This method determines if this navigation is a containment navigation.

Code Syntax
IS_CONTAINMENT_NAVIGATION
    returning
      value(RV_CONTAINS_TARGET) type ABAP_BOOL .
Table 10:

Parameter

Description

rv_contains_target

Return TRUE if the navigation is a containment navigation.

Method GET_EDM_NAME

This method sets the EDM name of a navigation property.

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

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.

Method SET_IS_CONTAINMENT_NAVIGATION

This method sets the navigation as containment navigation.

Code Syntax
SET_IS_CONTAINMENT_NAVIGATION
    raising
      /IWBEP/CX_V4_MED .

Exceptions

The metadata exception is /iwbep/cx_v4_med.

Method SET_ON_DELETE_ACTION

This method sets an action when the targeted entity gets deleted.

Code Syntax
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 .
Table 12:

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.

Method SET_PARTNER

This method sets the partner attribute.

Code Syntax
SET_PARTNER
    importing
      IV_PARTNER type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_INTERNAL_NAME
    raising
      /IWBEP/CX_V4_MED .
Table 13:

Parameter

Description

iv_partner

Internal name of partner navigation property.

Exceptions

The metadata exception is /iwbep/cx_v4_med.

Method SET_TARGET_ENTITY_TYPE_NAME

This method sets the internal target entity type name.

Code Syntax
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 .
Table 14:

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.

Method SET_TARGET_MULTIPLICITY

This method sets the navigation target multiplicity.

Code Syntax
SET_TARGET_MULTIPLICITY
    importing
      IV_TARGET_MULTIPLICITY type /IWBEP/IF_V4_MED_ELEMENT=>TY_E_MED_NAV_MULTIPLICITY
    raising
      /IWBEP/CX_V4_MED .
Table 15:

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.