/AWS1/IF_WSW=>LISTSESSIONS()¶
About ListSessions¶
Lists information for multiple secure browser sessions from a specific portal.
Method Signature¶
METHODS /AWS1/IF_WSW~LISTSESSIONS
IMPORTING
!IV_PORTALID TYPE /AWS1/WSWPORTALID OPTIONAL
!IV_USERNAME TYPE /AWS1/WSWUSERNAME OPTIONAL
!IV_SESSIONID TYPE /AWS1/WSWSESSIONID OPTIONAL
!IV_SORTBY TYPE /AWS1/WSWSESSIONSORTBY OPTIONAL
!IV_STATUS TYPE /AWS1/WSWSESSIONSTATUS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/WSWMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/WSWPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wswlistsessionsrsp
RAISING
/AWS1/CX_WSWACCESSDENIEDEX
/AWS1/CX_WSWINTERNALSERVEREX
/AWS1/CX_WSWRESOURCENOTFOUNDEX
/AWS1/CX_WSWTHROTTLINGEX
/AWS1/CX_WSWVALIDATIONEX
/AWS1/CX_WSWCLIENTEXC
/AWS1/CX_WSWSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_portalid TYPE /AWS1/WSWPORTALID /AWS1/WSWPORTALID¶
The ID of the web portal for the sessions.
Optional arguments:¶
iv_username TYPE /AWS1/WSWUSERNAME /AWS1/WSWUSERNAME¶
The username of the session.
iv_sessionid TYPE /AWS1/WSWSESSIONID /AWS1/WSWSESSIONID¶
The ID of the session.
iv_sortby TYPE /AWS1/WSWSESSIONSORTBY /AWS1/WSWSESSIONSORTBY¶
The method in which the returned sessions should be sorted.
iv_status TYPE /AWS1/WSWSESSIONSTATUS /AWS1/WSWSESSIONSTATUS¶
The status of the session.
iv_maxresults TYPE /AWS1/WSWMAXRESULTS /AWS1/WSWMAXRESULTS¶
The maximum number of results to be included in the next page.
iv_nexttoken TYPE /AWS1/WSWPAGINATIONTOKEN /AWS1/WSWPAGINATIONTOKEN¶
The pagination token used to retrieve the next page of results for this operation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wswlistsessionsrsp /AWS1/CL_WSWLISTSESSIONSRSP¶
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->listsessions(
iv_maxresults = 123
iv_nexttoken = |string|
iv_portalid = |string|
iv_sessionid = |string|
iv_sortby = |string|
iv_status = |string|
iv_username = |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_sessions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_portalarn( ).
lv_stringtype = lo_row_1->get_sessionid( ).
lv_username = lo_row_1->get_username( ).
lv_sessionstatus = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_endtime( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.