/AWS1/IF_SGM=>LISTFEATUREGROUPS()¶
About ListFeatureGroups¶
List FeatureGroups based on given filter and order.
Method Signature¶
METHODS /AWS1/IF_SGM~LISTFEATUREGROUPS
IMPORTING
!IV_NAMECONTAINS TYPE /AWS1/SGMFEATGROUPNAMECONTAINS OPTIONAL
!IV_FEATUREGROUPSTATUSEQUALS TYPE /AWS1/SGMFEATUREGROUPSTATUS OPTIONAL
!IV_OFFLINESTORESTATUSEQUALS TYPE /AWS1/SGMOFFLINESTORESTATVALUE OPTIONAL
!IV_CREATIONTIMEAFTER TYPE /AWS1/SGMCREATIONTIME OPTIONAL
!IV_CREATIONTIMEBEFORE TYPE /AWS1/SGMCREATIONTIME OPTIONAL
!IV_SORTORDER TYPE /AWS1/SGMFEATUREGROUPSORTORDER OPTIONAL
!IV_SORTBY TYPE /AWS1/SGMFEATUREGROUPSORTBY OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SGMFEATGROUPMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SGMNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmlistfeatgroupsrsp
RAISING
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_namecontains TYPE /AWS1/SGMFEATGROUPNAMECONTAINS /AWS1/SGMFEATGROUPNAMECONTAINS¶
A string that partially matches one or more
FeatureGroups names. FiltersFeatureGroups by name.
iv_featuregroupstatusequals TYPE /AWS1/SGMFEATUREGROUPSTATUS /AWS1/SGMFEATUREGROUPSTATUS¶
A
FeatureGroupstatus. Filters byFeatureGroupstatus.
iv_offlinestorestatusequals TYPE /AWS1/SGMOFFLINESTORESTATVALUE /AWS1/SGMOFFLINESTORESTATVALUE¶
An
OfflineStorestatus. Filters byOfflineStorestatus.
iv_creationtimeafter TYPE /AWS1/SGMCREATIONTIME /AWS1/SGMCREATIONTIME¶
Use this parameter to search for
FeatureGroupss created after a specific date and time.
iv_creationtimebefore TYPE /AWS1/SGMCREATIONTIME /AWS1/SGMCREATIONTIME¶
Use this parameter to search for
FeatureGroupss created before a specific date and time.
iv_sortorder TYPE /AWS1/SGMFEATUREGROUPSORTORDER /AWS1/SGMFEATUREGROUPSORTORDER¶
The order in which feature groups are listed.
iv_sortby TYPE /AWS1/SGMFEATUREGROUPSORTBY /AWS1/SGMFEATUREGROUPSORTBY¶
The value on which the feature group list is sorted.
iv_maxresults TYPE /AWS1/SGMFEATGROUPMAXRESULTS /AWS1/SGMFEATGROUPMAXRESULTS¶
The maximum number of results returned by
ListFeatureGroups.
iv_nexttoken TYPE /AWS1/SGMNEXTTOKEN /AWS1/SGMNEXTTOKEN¶
A token to resume pagination of
ListFeatureGroupsresults.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmlistfeatgroupsrsp /AWS1/CL_SGMLISTFEATGROUPSRSP¶
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->listfeaturegroups(
iv_creationtimeafter = '20150101000000.0000000'
iv_creationtimebefore = '20150101000000.0000000'
iv_featuregroupstatusequals = |string|
iv_maxresults = 123
iv_namecontains = |string|
iv_nexttoken = |string|
iv_offlinestorestatusequals = |string|
iv_sortby = |string|
iv_sortorder = |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_featuregroupsummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_featuregroupname = lo_row_1->get_featuregroupname( ).
lv_featuregrouparn = lo_row_1->get_featuregrouparn( ).
lv_timestamp = lo_row_1->get_creationtime( ).
lv_featuregroupstatus = lo_row_1->get_featuregroupstatus( ).
lo_offlinestorestatus = lo_row_1->get_offlinestorestatus( ).
IF lo_offlinestorestatus IS NOT INITIAL.
lv_offlinestorestatusvalue = lo_offlinestorestatus->get_status( ).
lv_blockedreason = lo_offlinestorestatus->get_blockedreason( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.