Show TOC

Interface /IWBEP/IF_V4_MED_ACT_PARAMLocate this document in the navigation structure

This is the interface for an action parameter for OData version 4 (V4). This interface provides methods for the representation of an action.

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_TYPE

This method gets the entity type object.

If the parameter type kind is an entity type, the entity type object can be requested.

Code Syntax
    RETURNING
      VALUE(ro_entity_type) TYPE REF TO /iwbep/if_v4_med_entity_type
    RAISING
      /iwbep/cx_v4_med .
Table 2:

Parameter

Description

ro_entity_type

Entity type.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method GET_PARAMETER_TYPE_KIND

This method gets the kind of the parameter type.

Based on the parameter type set by the consumer of the interface, the corresponding type kind will be set. See also constant /iwbep/if_v4_med_element=>gcs_med_argument_type_kind.

Code Syntax
    EXPORTING
      ev_parameter_type_kind TYPE /iwbep/if_v4_med_element=>ty_e_med_argument_type_kind .
Table 3:

Parameter

Description

ev_parameter_type_kind

Parameter type kind.

Method GET_PRIMITIVE_TYPE

This method gets the primitive type object.

If the parameter type kind is an primitve type, the primitve type object can be requested.

Code Syntax
    RETURNING
      VALUE(ro_primitive_type) TYPE REF TO /iwbep/if_v4_med_prim_type
    RAISING
      /iwbep/cx_v4_med .
Table 4:

Parameter

Description

ro_primitive_type

Primitive type.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method IS_BINDING_PARAMETER

This method checks if the action parameter is bound.

Determine if the action parameter is bound to a corresponding service artifact.

Code Syntax
    RETURNING
      VALUE(rv_is_binding_paramter) TYPE abap_bool .
Table 5:

Parameter

Description

rv_is_binding_paramter

This parameter is abap_true if action parameter is bound.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method SET_EDM_NAME

This method sets the EDM name of the parameter.

Code Syntax
    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.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method SET_ENTITY_TYPE

This method sets the entity type.

If the parameter type kind shall be an entity type, this method is used to set the name of the related entity type.

Code Syntax
    IMPORTING
      iv_entity_type_name TYPE /iwbep/if_v4_med_element=>ty_e_med_internal_name
    RAISING
      /iwbep/cx_v4_med .
Table 7:

Parameter

Description

iv_entity_type_name

Internal entity type name.

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method SET_IS_BINDING_PARAMETER

This method sets the action as bound operation.

Code Syntax
    RAISING
      /iwbep/cx_v4_med .

Exceptions

The metadata exception is iwbep/cx_v4_med.

Method SET_PRIMITIVE_TYPE

This method sets the primitive type.

If the parameter type kind shall be a primitve type, this method is used to set the name of the related primitive type.

Code Syntax
    IMPORTING
      iv_primitive_type_name TYPE /iwbep/if_v4_med_element=>ty_e_med_internal_name
    RAISING
      /iwbep/cx_v4_med .
Table 8:

Parameter

Description

iv_primitive_type_name

Internal name of the primitive type.

Exceptions

The metadata exception is iwbep/cx_v4_med.