/AWS1/IF_RPP=>LISTCHANNELS()
¶
About ListChannels¶
Returns the list of channel within a private re:Post with some information about each channel.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_spaceid
TYPE /AWS1/RPPSPACEID
/AWS1/RPPSPACEID
¶
The unique ID of the private re:Post.
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/RPPSTRING
/AWS1/RPPSTRING
¶
The token for the next set of channel to return. You receive this token from a previous ListChannels operation.
iv_maxresults
TYPE /AWS1/RPPLISTCHANNELSLIMIT
/AWS1/RPPLISTCHANNELSLIMIT
¶
The maximum number of channels to include in the results.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_rpplistchannelsoutput
/AWS1/CL_RPPLISTCHANNELSOUTPUT
¶
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->/aws1/if_rpp~listchannels(
iv_maxresults = 123
iv_nexttoken = |string|
iv_spaceid = |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_channels( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_spaceid = lo_row_1->get_spaceid( ).
lv_channelid = lo_row_1->get_channelid( ).
lv_channelname = lo_row_1->get_channelname( ).
lv_channeldescription = lo_row_1->get_channeldescription( ).
lv_timestamp = lo_row_1->get_createdatetime( ).
lv_timestamp = lo_row_1->get_deletedatetime( ).
lv_channelstatus = lo_row_1->get_channelstatus( ).
lv_usercount = lo_row_1->get_usercount( ).
lv_groupcount = lo_row_1->get_groupcount( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.
ListChannels¶
ListChannels
DATA(lo_result) = lo_client->/aws1/if_rpp~listchannels( iv_spaceid = |SP1234567890abcdefghijkl| ) .