/AWS1/IF_MDT=>UPDATEPROGRAM()¶
About UpdateProgram¶
Updates a program within a channel.
Method Signature¶
METHODS /AWS1/IF_MDT~UPDATEPROGRAM
IMPORTING
!IT_ADBREAKS TYPE /AWS1/CL_MDTADBREAK=>TT___LISTOFADBREAK OPTIONAL
!IV_CHANNELNAME TYPE /AWS1/MDT__STRING OPTIONAL
!IV_PROGRAMNAME TYPE /AWS1/MDT__STRING OPTIONAL
!IO_SCHEDULECONFIGURATION TYPE REF TO /AWS1/CL_MDTUPDPROGRAMSCHDCONF OPTIONAL
!IT_AUDIENCEMEDIA TYPE /AWS1/CL_MDTAUDIENCEMEDIA=>TT___LISTOFAUDIENCEMEDIA OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdtupdateprogramrsp
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 for this Program.
iv_programname TYPE /AWS1/MDT__STRING /AWS1/MDT__STRING¶
The name of the Program.
io_scheduleconfiguration TYPE REF TO /AWS1/CL_MDTUPDPROGRAMSCHDCONF /AWS1/CL_MDTUPDPROGRAMSCHDCONF¶
The schedule configuration settings.
Optional arguments:¶
it_adbreaks TYPE /AWS1/CL_MDTADBREAK=>TT___LISTOFADBREAK TT___LISTOFADBREAK¶
The ad break configuration settings.
it_audiencemedia TYPE /AWS1/CL_MDTAUDIENCEMEDIA=>TT___LISTOFAUDIENCEMEDIA TT___LISTOFAUDIENCEMEDIA¶
The list of AudienceMedia defined in program.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mdtupdateprogramrsp /AWS1/CL_MDTUPDATEPROGRAMRSP¶
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->updateprogram(
io_scheduleconfiguration = new /aws1/cl_mdtupdprogramschdconf(
io_cliprange = new /aws1/cl_mdtcliprange(
iv_endoffsetmillis = 123
iv_startoffsetmillis = 123
)
io_transition = new /aws1/cl_mdtupdateprogramtrans(
iv_durationmillis = 123
iv_scheduledstarttimemillis = 123
)
)
it_adbreaks = VALUE /aws1/cl_mdtadbreak=>tt___listofadbreak(
(
new /aws1/cl_mdtadbreak(
io_slate = new /aws1/cl_mdtslatesource(
iv_sourcelocationname = |string|
iv_vodsourcename = |string|
)
io_spliceinsertmessage = new /aws1/cl_mdtspliceinsertmsg(
iv_availnum = 123
iv_availsexpected = 123
iv_spliceeventid = 123
iv_uniqueprogramid = 123
)
io_timesignalmessage = new /aws1/cl_mdttimesignalmessage(
it_segmentationdescriptors = VALUE /aws1/cl_mdtsegmentationdesc00=>tt_segmentationdescriptorlist(
(
new /aws1/cl_mdtsegmentationdesc00(
iv_segmentationeventid = 123
iv_segmentationtypeid = 123
iv_segmentationupid = |string|
iv_segmentationupidtype = 123
iv_segmentnum = 123
iv_segmentsexpected = 123
iv_subsegmentnum = 123
iv_subsegmentsexpected = 123
)
)
)
)
it_adbreakmetadata = VALUE /aws1/cl_mdtkeyvaluepair=>tt_adbreakmetadatalist(
(
new /aws1/cl_mdtkeyvaluepair(
iv_key = |string|
iv_value = |string|
)
)
)
iv_messagetype = |string|
iv_offsetmillis = 123
)
)
)
it_audiencemedia = VALUE /aws1/cl_mdtaudiencemedia=>tt___listofaudiencemedia(
(
new /aws1/cl_mdtaudiencemedia(
it_alternatemedia = VALUE /aws1/cl_mdtalternatemedia=>tt___listofalternatemedia(
(
new /aws1/cl_mdtalternatemedia(
io_cliprange = new /aws1/cl_mdtcliprange(
iv_endoffsetmillis = 123
iv_startoffsetmillis = 123
)
it_adbreaks = VALUE /aws1/cl_mdtadbreak=>tt___listofadbreak(
(
new /aws1/cl_mdtadbreak(
io_slate = new /aws1/cl_mdtslatesource(
iv_sourcelocationname = |string|
iv_vodsourcename = |string|
)
io_spliceinsertmessage = new /aws1/cl_mdtspliceinsertmsg(
iv_availnum = 123
iv_availsexpected = 123
iv_spliceeventid = 123
iv_uniqueprogramid = 123
)
io_timesignalmessage = new /aws1/cl_mdttimesignalmessage(
it_segmentationdescriptors = VALUE /aws1/cl_mdtsegmentationdesc00=>tt_segmentationdescriptorlist(
(
new /aws1/cl_mdtsegmentationdesc00(
iv_segmentationeventid = 123
iv_segmentationtypeid = 123
iv_segmentationupid = |string|
iv_segmentationupidtype = 123
iv_segmentnum = 123
iv_segmentsexpected = 123
iv_subsegmentnum = 123
iv_subsegmentsexpected = 123
)
)
)
)
it_adbreakmetadata = VALUE /aws1/cl_mdtkeyvaluepair=>tt_adbreakmetadatalist(
(
new /aws1/cl_mdtkeyvaluepair(
iv_key = |string|
iv_value = |string|
)
)
)
iv_messagetype = |string|
iv_offsetmillis = 123
)
)
)
iv_durationmillis = 123
iv_livesourcename = |string|
iv_scheduledstarttimemillis = 123
iv_sourcelocationname = |string|
iv_vodsourcename = |string|
)
)
)
iv_audience = |string|
)
)
)
iv_channelname = |string|
iv_programname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_adbreaks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_messagetype = lo_row_1->get_messagetype( ).
lv___long = lo_row_1->get_offsetmillis( ).
lo_slatesource = lo_row_1->get_slate( ).
IF lo_slatesource IS NOT INITIAL.
lv___string = lo_slatesource->get_sourcelocationname( ).
lv___string = lo_slatesource->get_vodsourcename( ).
ENDIF.
lo_spliceinsertmessage = lo_row_1->get_spliceinsertmessage( ).
IF lo_spliceinsertmessage IS NOT INITIAL.
lv___integer = lo_spliceinsertmessage->get_availnum( ).
lv___integer = lo_spliceinsertmessage->get_availsexpected( ).
lv___integer = lo_spliceinsertmessage->get_spliceeventid( ).
lv___integer = lo_spliceinsertmessage->get_uniqueprogramid( ).
ENDIF.
lo_timesignalmessage = lo_row_1->get_timesignalmessage( ).
IF lo_timesignalmessage IS NOT INITIAL.
LOOP AT lo_timesignalmessage->get_segmentationdescriptors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_integer = lo_row_3->get_segmentationeventid( ).
lv_integer = lo_row_3->get_segmentationupidtype( ).
lv_string = lo_row_3->get_segmentationupid( ).
lv_integer = lo_row_3->get_segmentationtypeid( ).
lv_integer = lo_row_3->get_segmentnum( ).
lv_integer = lo_row_3->get_segmentsexpected( ).
lv_integer = lo_row_3->get_subsegmentnum( ).
lv_integer = lo_row_3->get_subsegmentsexpected( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_row_1->get_adbreakmetadata( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_key( ).
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv___string = lo_result->get_arn( ).
lv___string = lo_result->get_channelname( ).
lv___timestampunix = lo_result->get_creationtime( ).
lv___string = lo_result->get_programname( ).
lv___string = lo_result->get_sourcelocationname( ).
lv___string = lo_result->get_vodsourcename( ).
lv___string = lo_result->get_livesourcename( ).
lo_cliprange = lo_result->get_cliprange( ).
IF lo_cliprange IS NOT INITIAL.
lv___long = lo_cliprange->get_endoffsetmillis( ).
lv___long = lo_cliprange->get_startoffsetmillis( ).
ENDIF.
lv___long = lo_result->get_durationmillis( ).
lv___timestampunix = lo_result->get_scheduledstarttime( ).
LOOP AT lo_result->get_audiencemedia( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv___string = lo_row_7->get_audience( ).
LOOP AT lo_row_7->get_alternatemedia( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv___string = lo_row_9->get_sourcelocationname( ).
lv___string = lo_row_9->get_livesourcename( ).
lv___string = lo_row_9->get_vodsourcename( ).
lo_cliprange = lo_row_9->get_cliprange( ).
IF lo_cliprange IS NOT INITIAL.
lv___long = lo_cliprange->get_endoffsetmillis( ).
lv___long = lo_cliprange->get_startoffsetmillis( ).
ENDIF.
lv___long = lo_row_9->get_scheduledstarttimemillis( ).
LOOP AT lo_row_9->get_adbreaks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_messagetype = lo_row_1->get_messagetype( ).
lv___long = lo_row_1->get_offsetmillis( ).
lo_slatesource = lo_row_1->get_slate( ).
IF lo_slatesource IS NOT INITIAL.
lv___string = lo_slatesource->get_sourcelocationname( ).
lv___string = lo_slatesource->get_vodsourcename( ).
ENDIF.
lo_spliceinsertmessage = lo_row_1->get_spliceinsertmessage( ).
IF lo_spliceinsertmessage IS NOT INITIAL.
lv___integer = lo_spliceinsertmessage->get_availnum( ).
lv___integer = lo_spliceinsertmessage->get_availsexpected( ).
lv___integer = lo_spliceinsertmessage->get_spliceeventid( ).
lv___integer = lo_spliceinsertmessage->get_uniqueprogramid( ).
ENDIF.
lo_timesignalmessage = lo_row_1->get_timesignalmessage( ).
IF lo_timesignalmessage IS NOT INITIAL.
LOOP AT lo_timesignalmessage->get_segmentationdescriptors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_integer = lo_row_3->get_segmentationeventid( ).
lv_integer = lo_row_3->get_segmentationupidtype( ).
lv_string = lo_row_3->get_segmentationupid( ).
lv_integer = lo_row_3->get_segmentationtypeid( ).
lv_integer = lo_row_3->get_segmentnum( ).
lv_integer = lo_row_3->get_segmentsexpected( ).
lv_integer = lo_row_3->get_subsegmentnum( ).
lv_integer = lo_row_3->get_subsegmentsexpected( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_row_1->get_adbreakmetadata( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_key( ).
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv___long = lo_row_9->get_durationmillis( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.