Show TOC

Interface /IWBEP/IF_V4_ANNO_COLLECTIONLocate this document in the navigation structure

This is the interface for annotations collections for OData version 4 (V4).

This interface includes interface /iwbep/if_v4_anno_item.

Methods
Method CREATE_CON_EXP
This method creates a conditional expression. Supported conditional expression operators are defined in interface /iwbep/if_v4_anno_types=>gcs_con_expression_operator.
Sample Code
DATA lo_collection TYPE REF TO /iwbep/if_v4_anno_collection. 

   lo_collection->create_con_exp( /iwbep/if_v4_anno_types=>gcs_con_expression_operator-not ). 
Code Syntax
    importing
      IV_CON_EXPR_OPERATOR type /IWBEP/IF_V4_ANNO_TYPES=>TY_CON_EXPRESSION_OPERATOR
    returning
      value(RO_CON_EXP) type ref to /IWBEP/IF_V4_ANNO_COND_EXP
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 1:

Parameter

Description

iv_con_expr_operator

Conditional expression operator.

ro_con_exp

Conditional expression operator.

Exceptions

The annotation exception is /iwbep/cx_v4_annotation.

An exception is raised if the provided conditional expression is not supported.

Method CREATE_RECORD

This method creates a record.

Code Syntax
    importing
      IV_RECORD_TYPE_NAMESPACE type STRING optional
      IV_RECORD_TYPE type STRING optional
    returning
      value(RO_RECORD) type ref to /IWBEP/IF_V4_ANNO_RECORD
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 2:

Parameter

Description

iv_record_type_namespace

Record type namespace.

iv_record_type

Record type.

ro_record

Annotations record.

Exceptions

The annotation exception is /iwbep/cx_v4_annotation.

An exception is raised if the provided record type name or record type namespace is not valid according to the OData V4 specification.

Method CREATE_SIMPLE_VALUE
This method creates a simple value. Once created, the simple value can be later defined as one of the following:
  • binary

  • boolean
  • date
  • decimal
  • duration
  • path
  • string
Code Syntax
    returning
      value(RO_SIMPLE_VALUE) type ref to /IWBEP/IF_V4_ANNO_SIMP_VAL
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 3:

Parameter

Description

ro_simple_value

Annotations simple value.

Exceptions

The annotation exception is /iwbep/cx_v4_annotation.