/AWS1/IF_SCG=>SEARCHPRODUCTSASADMIN()¶
About SearchProductsAsAdmin¶
Gets information about the products for the specified portfolio or all products.
Method Signature¶
METHODS /AWS1/IF_SCG~SEARCHPRODUCTSASADMIN
IMPORTING
!IV_ACCEPTLANGUAGE TYPE /AWS1/SCGACCEPTLANGUAGE OPTIONAL
!IV_PORTFOLIOID TYPE /AWS1/SCGID OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_SCGPRODUCTVIEWFILTV00=>TT_PRODUCTVIEWFILTERS OPTIONAL
!IV_SORTBY TYPE /AWS1/SCGPRODUCTVIEWSORTBY OPTIONAL
!IV_SORTORDER TYPE /AWS1/SCGSORTORDER OPTIONAL
!IV_PAGETOKEN TYPE /AWS1/SCGPAGETOKEN OPTIONAL
!IV_PAGESIZE TYPE /AWS1/SCGPAGESIZE OPTIONAL
!IV_PRODUCTSOURCE TYPE /AWS1/SCGPRODUCTSOURCE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_scgsrchproductsasad01
RAISING
/AWS1/CX_SCGINVALIDPARAMSEX
/AWS1/CX_SCGRESOURCENOTFOUNDEX
/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
iv_portfolioid TYPE /AWS1/SCGID /AWS1/SCGID¶
The portfolio identifier.
it_filters TYPE /AWS1/CL_SCGPRODUCTVIEWFILTV00=>TT_PRODUCTVIEWFILTERS TT_PRODUCTVIEWFILTERS¶
The search filters. If no search filters are specified, the output includes all products to which the administrator has access.
iv_sortby TYPE /AWS1/SCGPRODUCTVIEWSORTBY /AWS1/SCGPRODUCTVIEWSORTBY¶
The sort field. If no value is specified, the results are not sorted.
iv_sortorder TYPE /AWS1/SCGSORTORDER /AWS1/SCGSORTORDER¶
The sort order. If no value is specified, the results are not sorted.
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.
iv_pagesize TYPE /AWS1/SCGPAGESIZE /AWS1/SCGPAGESIZE¶
The maximum number of items to return with this call.
iv_productsource TYPE /AWS1/SCGPRODUCTSOURCE /AWS1/SCGPRODUCTSOURCE¶
Access level of the source of the product.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_scgsrchproductsasad01 /AWS1/CL_SCGSRCHPRODUCTSASAD01¶
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->searchproductsasadmin(
it_filters = VALUE /aws1/cl_scgproductviewfiltv00=>tt_productviewfilters(
(
VALUE /aws1/cl_scgproductviewfiltv00=>ts_productviewfilters_maprow(
key = |string|
value = VALUE /aws1/cl_scgproductviewfiltv00=>tt_productviewfiltervalues(
( new /aws1/cl_scgproductviewfiltv00( |string| ) )
)
)
)
)
iv_acceptlanguage = |string|
iv_pagesize = 123
iv_pagetoken = |string|
iv_portfolioid = |string|
iv_productsource = |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_productviewdetails( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_productviewsummary = lo_row_1->get_productviewsummary( ).
IF lo_productviewsummary IS NOT INITIAL.
lv_id = lo_productviewsummary->get_id( ).
lv_id = lo_productviewsummary->get_productid( ).
lv_productviewname = lo_productviewsummary->get_name( ).
lv_productviewowner = lo_productviewsummary->get_owner( ).
lv_productviewshortdescrip = lo_productviewsummary->get_shortdescription( ).
lv_producttype = lo_productviewsummary->get_type( ).
lv_productviewdistributor = lo_productviewsummary->get_distributor( ).
lv_hasdefaultpath = lo_productviewsummary->get_hasdefaultpath( ).
lv_supportemail = lo_productviewsummary->get_supportemail( ).
lv_supportdescription = lo_productviewsummary->get_supportdescription( ).
lv_supporturl = lo_productviewsummary->get_supporturl( ).
ENDIF.
lv_status = lo_row_1->get_status( ).
lv_resourcearn = lo_row_1->get_productarn( ).
lv_createdtime = lo_row_1->get_createdtime( ).
lo_sourceconnectiondetail = lo_row_1->get_sourceconnection( ).
IF lo_sourceconnectiondetail IS NOT INITIAL.
lv_sourcetype = lo_sourceconnectiondetail->get_type( ).
lo_sourceconnectionparamet = lo_sourceconnectiondetail->get_connectionparameters( ).
IF lo_sourceconnectionparamet IS NOT INITIAL.
lo_codestarparameters = lo_sourceconnectionparamet->get_codestar( ).
IF lo_codestarparameters IS NOT INITIAL.
lv_codestarconnectionarn = lo_codestarparameters->get_connectionarn( ).
lv_repository = lo_codestarparameters->get_repository( ).
lv_repositorybranch = lo_codestarparameters->get_branch( ).
lv_repositoryartifactpath = lo_codestarparameters->get_artifactpath( ).
ENDIF.
ENDIF.
lo_lastsync = lo_sourceconnectiondetail->get_lastsync( ).
IF lo_lastsync IS NOT INITIAL.
lv_lastsynctime = lo_lastsync->get_lastsynctime( ).
lv_lastsyncstatus = lo_lastsync->get_lastsyncstatus( ).
lv_lastsyncstatusmessage = lo_lastsync->get_lastsyncstatusmessage( ).
lv_lastsuccessfulsynctime = lo_lastsync->get_lastsuccessfulsynctime( ).
lv_id = lo_lastsync->get_lastsuccfulsyncprovart00( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
lv_pagetoken = lo_result->get_nextpagetoken( ).
ENDIF.