Skip to content

/AWS1/CL_SGM=>LISTCONTEXTS()

About ListContexts

Lists the contexts in your account and their properties.

Method Signature

IMPORTING

Optional arguments:

IV_SOURCEURI TYPE /AWS1/SGMSOURCEURI /AWS1/SGMSOURCEURI

A filter that returns only contexts with the specified source URI.

IV_CONTEXTTYPE TYPE /AWS1/SGMSTRING256 /AWS1/SGMSTRING256

A filter that returns only contexts of the specified type.

IV_CREATEDAFTER TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

A filter that returns only contexts created on or after the specified time.

IV_CREATEDBEFORE TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

A filter that returns only contexts created on or before the specified time.

IV_SORTBY TYPE /AWS1/SGMSORTCONTEXTSBY /AWS1/SGMSORTCONTEXTSBY

The property used to sort results. The default value is CreationTime.

IV_SORTORDER TYPE /AWS1/SGMSORTORDER /AWS1/SGMSORTORDER

The sort order. The default value is Descending.

IV_NEXTTOKEN TYPE /AWS1/SGMNEXTTOKEN /AWS1/SGMNEXTTOKEN

If the previous call to ListContexts didn't return the full set of contexts, the call returns a token for getting the next set of contexts.

IV_MAXRESULTS TYPE /AWS1/SGMMAXRESULTS /AWS1/SGMMAXRESULTS

The maximum number of contexts to return in the response. The default value is 10.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SGMLISTCONTEXTSRSP /AWS1/CL_SGMLISTCONTEXTSRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC