Skip to content

/AWS1/IF_MDI=>GETFIXTURE()

About GetFixture

Retrieves information about the specified fixture (a sports event, such as a specific basketball game). You obtain a fixtureId from SearchFixtures, or from the clipping output of a feed.

Method Signature

METHODS /AWS1/IF_MDI~GETFIXTURE
  IMPORTING
    !IV_FIXTUREID TYPE /AWS1/MDIFIXTUREID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdigetfixtureresponse
  RAISING
    /AWS1/CX_MDIACCESSDENIEDEX
    /AWS1/CX_MDIGATEWAYTIMEDOUTEX
    /AWS1/CX_MDIINTSERVERERROREX
    /AWS1/CX_MDIRESOURCENOTFOUNDEX
    /AWS1/CX_MDISERVICEUNAVAILEX
    /AWS1/CX_MDITOOMANYREQUESTEX
    /AWS1/CX_MDIVLDTNEXCEPTION
    /AWS1/CX_MDICLIENTEXC
    /AWS1/CX_MDISERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_fixtureid TYPE /AWS1/MDIFIXTUREID /AWS1/MDIFIXTUREID

The ID of the fixture to retrieve, as returned by SearchFixtures.

RETURNING

oo_output TYPE REF TO /aws1/cl_mdigetfixtureresponse /AWS1/CL_MDIGETFIXTURERESPONSE

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->getfixture( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_fixtureid = lo_result->get_fixtureid( ).
  lv_string = lo_result->get_name( ).
  lv_string = lo_result->get_fixturegroup( ).
  lv_timestamp = lo_result->get_scheduledstart( ).
  lv_string = lo_result->get_status( ).
  LOOP AT lo_result->get_competitors( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_name( ).
      lv_boolean = lo_row_1->get_ishome( ).
    ENDIF.
  ENDLOOP.
ENDIF.