/AWS1/IF_MDT=>CREATECHANNEL()¶
About CreateChannel¶
Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
Method Signature¶
METHODS /AWS1/IF_MDT~CREATECHANNEL
  IMPORTING
    !IV_CHANNELNAME TYPE /AWS1/MDT__STRING OPTIONAL
    !IO_FILLERSLATE TYPE REF TO /AWS1/CL_MDTSLATESOURCE OPTIONAL
    !IT_OUTPUTS TYPE /AWS1/CL_MDTREQUESTOUTPUTITEM=>TT_REQUESTOUTPUTS OPTIONAL
    !IV_PLAYBACKMODE TYPE /AWS1/MDTPLAYBACKMODE OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_MDT__MAPOF__STRING_W=>TT___MAPOF__STRING OPTIONAL
    !IV_TIER TYPE /AWS1/MDTTIER OPTIONAL
    !IO_TIMESHIFTCONFIGURATION TYPE REF TO /AWS1/CL_MDTTIMESHIFTCONF OPTIONAL
    !IT_AUDIENCES TYPE /AWS1/CL_MDTAUDIENCES_W=>TT_AUDIENCES OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdtcreatechannelrsp
  RAISING
    /AWS1/CX_MDTCLIENTEXC
    /AWS1/CX_MDTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_channelname TYPE /AWS1/MDT__STRING /AWS1/MDT__STRING¶
The name of the channel.
it_outputs TYPE /AWS1/CL_MDTREQUESTOUTPUTITEM=>TT_REQUESTOUTPUTS TT_REQUESTOUTPUTS¶
The channel's output properties.
iv_playbackmode TYPE /AWS1/MDTPLAYBACKMODE /AWS1/MDTPLAYBACKMODE¶
The type of playback mode to use for this channel.
LINEAR- The programs in the schedule play once back-to-back in the schedule.
LOOP- The programs in the schedule play back-to-back in an endless loop. When the last program in the schedule stops playing, playback loops back to the first program in the schedule.
Optional arguments:¶
io_fillerslate TYPE REF TO /AWS1/CL_MDTSLATESOURCE /AWS1/CL_MDTSLATESOURCE¶
The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses the
LINEARPlaybackMode. MediaTailor doesn't support filler slate for channels using theLOOPPlaybackMode.
it_tags TYPE /AWS1/CL_MDT__MAPOF__STRING_W=>TT___MAPOF__STRING TT___MAPOF__STRING¶
The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
iv_tier TYPE /AWS1/MDTTIER /AWS1/MDTTIER¶
The tier of the channel.
io_timeshiftconfiguration TYPE REF TO /AWS1/CL_MDTTIMESHIFTCONF /AWS1/CL_MDTTIMESHIFTCONF¶
The time-shifted viewing configuration you want to associate to the channel.
it_audiences TYPE /AWS1/CL_MDTAUDIENCES_W=>TT_AUDIENCES TT_AUDIENCES¶
The list of audiences defined in channel.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mdtcreatechannelrsp /AWS1/CL_MDTCREATECHANNELRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC 
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->createchannel(
  io_fillerslate = new /aws1/cl_mdtslatesource(
    iv_sourcelocationname = |string|
    iv_vodsourcename = |string|
  )
  io_timeshiftconfiguration = new /aws1/cl_mdttimeshiftconf( 123 )
  it_audiences = VALUE /aws1/cl_mdtaudiences_w=>tt_audiences(
    ( new /aws1/cl_mdtaudiences_w( |string| ) )
  )
  it_outputs = VALUE /aws1/cl_mdtrequestoutputitem=>tt_requestoutputs(
    (
      new /aws1/cl_mdtrequestoutputitem(
        io_dashplaylistsettings = new /aws1/cl_mdtdashplayliststgs(
          iv_manifestwindowseconds = 123
          iv_minbuffertimeseconds = 123
          iv_minupdateperiodseconds = 123
          iv_suggestedpresentationde00 = 123
        )
        io_hlsplaylistsettings = new /aws1/cl_mdthlsplayliststgs(
          it_admarkuptype = VALUE /aws1/cl_mdtadmarkuptypes_w=>tt_admarkuptypes(
            ( new /aws1/cl_mdtadmarkuptypes_w( |string| ) )
          )
          iv_manifestwindowseconds = 123
        )
        iv_manifestname = |string|
        iv_sourcegroup = |string|
      )
    )
  )
  it_tags = VALUE /aws1/cl_mdt__mapof__string_w=>tt___mapof__string(
    (
      VALUE /aws1/cl_mdt__mapof__string_w=>ts___mapof__string_maprow(
        key = |string|
        value = new /aws1/cl_mdt__mapof__string_w( |string| )
      )
    )
  )
  iv_channelname = |string|
  iv_playbackmode = |string|
  iv_tier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv___string = lo_result->get_arn( ).
  lv___string = lo_result->get_channelname( ).
  lv_channelstate = lo_result->get_channelstate( ).
  lv___timestampunix = lo_result->get_creationtime( ).
  lo_slatesource = lo_result->get_fillerslate( ).
  IF lo_slatesource IS NOT INITIAL.
    lv___string = lo_slatesource->get_sourcelocationname( ).
    lv___string = lo_slatesource->get_vodsourcename( ).
  ENDIF.
  lv___timestampunix = lo_result->get_lastmodifiedtime( ).
  LOOP AT lo_result->get_outputs( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_dashplaylistsettings = lo_row_1->get_dashplaylistsettings( ).
      IF lo_dashplaylistsettings IS NOT INITIAL.
        lv___integer = lo_dashplaylistsettings->get_manifestwindowseconds( ).
        lv___integer = lo_dashplaylistsettings->get_minbuffertimeseconds( ).
        lv___integer = lo_dashplaylistsettings->get_minupdateperiodseconds( ).
        lv___integer = lo_dashplaylistsettings->get_suggestedpresentationd00( ).
      ENDIF.
      lo_hlsplaylistsettings = lo_row_1->get_hlsplaylistsettings( ).
      IF lo_hlsplaylistsettings IS NOT INITIAL.
        lv___integer = lo_hlsplaylistsettings->get_manifestwindowseconds( ).
        LOOP AT lo_hlsplaylistsettings->get_admarkuptype( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_admarkuptype = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lv___string = lo_row_1->get_manifestname( ).
      lv___string = lo_row_1->get_playbackurl( ).
      lv___string = lo_row_1->get_sourcegroup( ).
    ENDIF.
  ENDLOOP.
  lv___string = lo_result->get_playbackmode( ).
  LOOP AT lo_result->get_tags( ) into ls_row_4.
    lv_key = ls_row_4-key.
    lo_value = ls_row_4-value.
    IF lo_value IS NOT INITIAL.
      lv___string = lo_value->get_value( ).
    ENDIF.
  ENDLOOP.
  lv___string = lo_result->get_tier( ).
  lo_timeshiftconfiguration = lo_result->get_timeshiftconfiguration( ).
  IF lo_timeshiftconfiguration IS NOT INITIAL.
    lv___integer = lo_timeshiftconfiguration->get_maxtimedelayseconds( ).
  ENDIF.
  LOOP AT lo_result->get_audiences( ) into lo_row_5.
    lo_row_6 = lo_row_5.
    IF lo_row_6 IS NOT INITIAL.
      lv_string = lo_row_6->get_value( ).
    ENDIF.
  ENDLOOP.
ENDIF.