/AWS1/IF_GST=>LISTGROUNDSTATIONRSV()¶
About ListGroundStationReservations¶
Returns a list of reservations for a specified ground station.
Method Signature¶
METHODS /AWS1/IF_GST~LISTGROUNDSTATIONRSV
IMPORTING
!IV_GROUNDSTATIONID TYPE /AWS1/GSTGROUNDSTATIONNAME OPTIONAL
!IV_STARTTIME TYPE /AWS1/GSTTIMESTAMP OPTIONAL
!IV_ENDTIME TYPE /AWS1/GSTTIMESTAMP OPTIONAL
!IT_RESERVATIONTYPES TYPE /AWS1/CL_GSTRESVTYPEFILTLIST_W=>TT_RESERVATIONTYPEFILTERLIST OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/GSTPAGINATIONMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/GSTPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gstlistgrndstnrsvrsp
RAISING
/AWS1/CX_GSTDEPENDENCYEX
/AWS1/CX_GSTINVALIDPARAMETEREX
/AWS1/CX_GSTCLIENTEXC
/AWS1/CX_GSTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_groundstationid TYPE /AWS1/GSTGROUNDSTATIONNAME /AWS1/GSTGROUNDSTATIONNAME¶
ID of a ground station.
iv_starttime TYPE /AWS1/GSTTIMESTAMP /AWS1/GSTTIMESTAMP¶
Start time of the reservation window in UTC.
iv_endtime TYPE /AWS1/GSTTIMESTAMP /AWS1/GSTTIMESTAMP¶
End time of the reservation window in UTC.
Optional arguments:¶
it_reservationtypes TYPE /AWS1/CL_GSTRESVTYPEFILTLIST_W=>TT_RESERVATIONTYPEFILTERLIST TT_RESERVATIONTYPEFILTERLIST¶
Types of reservations to filter by.
iv_maxresults TYPE /AWS1/GSTPAGINATIONMAXRESULTS /AWS1/GSTPAGINATIONMAXRESULTS¶
Maximum number of ground station reservations returned.
iv_nexttoken TYPE /AWS1/GSTPAGINATIONTOKEN /AWS1/GSTPAGINATIONTOKEN¶
Next token returned in the request of a previous
ListGroundStationReservationscall. Used to get the next page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gstlistgrndstnrsvrsp /AWS1/CL_GSTLISTGRNDSTNRSVRSP¶
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->listgroundstationrsv(
it_reservationtypes = VALUE /aws1/cl_gstresvtypefiltlist_w=>tt_reservationtypefilterlist(
( new /aws1/cl_gstresvtypefiltlist_w( |string| ) )
)
iv_endtime = '20150101000000.0000000'
iv_groundstationid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_starttime = '20150101000000.0000000'
).
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_reservationlist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_reservationtype = lo_row_1->get_reservationtype( ).
lv_groundstationname = lo_row_1->get_groundstationid( ).
lv_antennaname = lo_row_1->get_antennaname( ).
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_endtime( ).
lo_reservationdetails = lo_row_1->get_reservationdetails( ).
IF lo_reservationdetails IS NOT INITIAL.
lo_maintenancereservationd = lo_reservationdetails->get_maintenance( ).
IF lo_maintenancereservationd IS NOT INITIAL.
lv_maintenancetype = lo_maintenancereservationd->get_maintenancetype( ).
ENDIF.
lo_contactreservationdetai = lo_reservationdetails->get_contact( ).
IF lo_contactreservationdetai IS NOT INITIAL.
lv_uuid = lo_contactreservationdetai->get_contactid( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.