/AWS1/IF_SCG=>SEARCHPROVISIONEDPRODUCTS()¶
About SearchProvisionedProducts¶
Gets information about the provisioned products that meet the specified criteria.
Method Signature¶
METHODS /AWS1/IF_SCG~SEARCHPROVISIONEDPRODUCTS
IMPORTING
!IV_ACCEPTLANGUAGE TYPE /AWS1/SCGACCEPTLANGUAGE OPTIONAL
!IO_ACCESSLEVELFILTER TYPE REF TO /AWS1/CL_SCGACCESSLEVELFILTER OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_SCGPROVPRODUCTVIEWF00=>TT_PROVISIONEDPRODUCTFILTERS OPTIONAL
!IV_SORTBY TYPE /AWS1/SCGSORTFIELD OPTIONAL
!IV_SORTORDER TYPE /AWS1/SCGSORTORDER OPTIONAL
!IV_PAGESIZE TYPE /AWS1/SCGSRCHPROVPRODUCTSPAG00 OPTIONAL
!IV_PAGETOKEN TYPE /AWS1/SCGPAGETOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_scgsrchprovproducts01
RAISING
/AWS1/CX_SCGINVALIDPARAMSEX
/AWS1/CX_SCGCLIENTEXC
/AWS1/CX_SCGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_acceptlanguage TYPE /AWS1/SCGACCEPTLANGUAGE /AWS1/SCGACCEPTLANGUAGE¶
The language code.
jp- Japanese
zh- Chinese
io_accesslevelfilter TYPE REF TO /AWS1/CL_SCGACCESSLEVELFILTER /AWS1/CL_SCGACCESSLEVELFILTER¶
The access level to use to obtain results. The default is
Account.
it_filters TYPE /AWS1/CL_SCGPROVPRODUCTVIEWF00=>TT_PROVISIONEDPRODUCTFILTERS TT_PROVISIONEDPRODUCTFILTERS¶
The search filters.
When the key is
SearchQuery, the searchable fields arearn,createdTime,id,lastRecordId,idempotencyToken,name,physicalId,productId,provisioningArtifactId,type,status,tags,userArn,userArnSession,lastProvisioningRecordId,lastSuccessfulProvisioningRecordId,productName, andprovisioningArtifactName.Example:
"SearchQuery":["status:AVAILABLE"]
iv_sortby TYPE /AWS1/SCGSORTFIELD /AWS1/SCGSORTFIELD¶
The sort field. If no value is specified, the results are not sorted. The valid values are
arn,id,name, andlastRecordId.
iv_sortorder TYPE /AWS1/SCGSORTORDER /AWS1/SCGSORTORDER¶
The sort order. If no value is specified, the results are not sorted.
iv_pagesize TYPE /AWS1/SCGSRCHPROVPRODUCTSPAG00 /AWS1/SCGSRCHPROVPRODUCTSPAG00¶
The maximum number of items to return with this call.
iv_pagetoken TYPE /AWS1/SCGPAGETOKEN /AWS1/SCGPAGETOKEN¶
The page token for the next set of results. To retrieve the first set of results, use null.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_scgsrchprovproducts01 /AWS1/CL_SCGSRCHPROVPRODUCTS01¶
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->searchprovisionedproducts(
io_accesslevelfilter = new /aws1/cl_scgaccesslevelfilter(
iv_key = |string|
iv_value = |string|
)
it_filters = VALUE /aws1/cl_scgprovproductviewf00=>tt_provisionedproductfilters(
(
VALUE /aws1/cl_scgprovproductviewf00=>ts_provproductfilters_maprow(
key = |string|
value = VALUE /aws1/cl_scgprovproductviewf00=>tt_provproductviewfiltervalues(
( new /aws1/cl_scgprovproductviewf00( |string| ) )
)
)
)
)
iv_acceptlanguage = |string|
iv_pagesize = 123
iv_pagetoken = |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_provisionedproducts( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_provisionedproductnameo = lo_row_1->get_name( ).
lv_provisionedproductnameo = lo_row_1->get_arn( ).
lv_provisionedproducttype = lo_row_1->get_type( ).
lv_id = lo_row_1->get_id( ).
lv_provisionedproductstatu = lo_row_1->get_status( ).
lv_provisionedproductstatu_1 = lo_row_1->get_statusmessage( ).
lv_createdtime = lo_row_1->get_createdtime( ).
lv_idempotencytoken = lo_row_1->get_idempotencytoken( ).
lv_id = lo_row_1->get_lastrecordid( ).
lv_id = lo_row_1->get_lastprovisioningrecordid( ).
lv_id = lo_row_1->get_lastsuccfulprovrecordid( ).
LOOP AT lo_row_1->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_physicalid = lo_row_1->get_physicalid( ).
lv_id = lo_row_1->get_productid( ).
lv_productviewname = lo_row_1->get_productname( ).
lv_id = lo_row_1->get_provisioningartifactid( ).
lv_provisioningartifactnam = lo_row_1->get_provisioningartifactname( ).
lv_userarn = lo_row_1->get_userarn( ).
lv_userarnsession = lo_row_1->get_userarnsession( ).
ENDIF.
ENDLOOP.
lv_totalresultscount = lo_result->get_totalresultscount( ).
lv_pagetoken = lo_result->get_nextpagetoken( ).
ENDIF.