Skip to content

/AWS1/CL_PTS=>LISTSOLUTIONS()

About ListSolutions

Retrieves a list of Partner Solutions that the partner registered on Partner Central. This API is used to generate a list of solutions that an end user selects from for association with an opportunity.

Method Signature

IMPORTING

Required arguments:

iv_catalog TYPE /AWS1/PTSCATALOGIDENTIFIER /AWS1/PTSCATALOGIDENTIFIER

Specifies the catalog associated with the request. This field takes a string value from a predefined list: AWS or Sandbox. The catalog determines which environment the solutions are listed in. Use AWS to list solutions in the Amazon Web Services catalog, and Sandbox to list solutions in a secure and isolated testing environment.

Optional arguments:

iv_maxresults TYPE /AWS1/PTSPAGESIZE /AWS1/PTSPAGESIZE

The maximum number of results returned by a single call. This value must be provided in the next call to retrieve the next set of results.

Default: 20

iv_nexttoken TYPE /AWS1/PTSSTRING /AWS1/PTSSTRING

A pagination token used to retrieve the next set of results in subsequent calls. This token is included in the response only if there are additional result pages available.

io_sort TYPE REF TO /AWS1/CL_PTSSOLUTIONSORT /AWS1/CL_PTSSOLUTIONSORT

Object that configures sorting done on the response. Default Sort.SortBy is Identifier.

it_status TYPE /AWS1/CL_PTSFILTERSTATUS_W=>TT_FILTERSTATUS TT_FILTERSTATUS

Filters solutions based on their status. This filter helps partners manage their solution portfolios effectively.

it_identifier TYPE /AWS1/CL_PTSSOLUTIONIDS_W=>TT_SOLUTIONIDENTIFIERS TT_SOLUTIONIDENTIFIERS

Filters the solutions based on their unique identifier. Use this filter to retrieve specific solutions by providing the solution's identifier for accurate results.

it_category TYPE /AWS1/CL_PTSSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

Filters the solutions based on the category to which they belong. This allows partners to search for solutions within specific categories, such as Software, Consulting, or Managed Services.

RETURNING

oo_output TYPE REF TO /aws1/cl_ptslistsolutionsrsp /AWS1/CL_PTSLISTSOLUTIONSRSP

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->/aws1/if_pts~listsolutions(
  io_sort = new /aws1/cl_ptssolutionsort(
    iv_sortby = |string|
    iv_sortorder = |string|
  )
  it_category = VALUE /aws1/cl_ptsstringlist_w=>tt_stringlist(
    ( new /aws1/cl_ptsstringlist_w( |string| ) )
  )
  it_identifier = VALUE /aws1/cl_ptssolutionids_w=>tt_solutionidentifiers(
    ( new /aws1/cl_ptssolutionids_w( |string| ) )
  )
  it_status = VALUE /aws1/cl_ptsfilterstatus_w=>tt_filterstatus(
    ( new /aws1/cl_ptsfilterstatus_w( |string| ) )
  )
  iv_catalog = |string|
  iv_maxresults = 123
  iv_nexttoken = |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_solutionsummaries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_catalogidentifier = lo_row_1->get_catalog( ).
      lv_solutionidentifier = lo_row_1->get_id( ).
      lv_solutionarn = lo_row_1->get_arn( ).
      lv_string = lo_row_1->get_name( ).
      lv_solutionstatus = lo_row_1->get_status( ).
      lv_string = lo_row_1->get_category( ).
      lv_datetime = lo_row_1->get_createddate( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nexttoken( ).
ENDIF.