Skip to content

/AWS1/IF_PP2=>LISTNOTIFYCOUNTRIES()

About ListNotifyCountries

Lists countries that support notify messaging. You can optionally filter by channel, use case, or tier.

Method Signature

METHODS /AWS1/IF_PP2~LISTNOTIFYCOUNTRIES
  IMPORTING
    !IT_CHANNELS TYPE /AWS1/CL_PP2NTFENBCHNLLIST_W=>TT_NOTIFYENABLEDCHANNELSLIST OPTIONAL
    !IT_USECASES TYPE /AWS1/CL_PP2NTFYUSECASELIST_W=>TT_NOTIFYUSECASELIST OPTIONAL
    !IV_TIER TYPE /AWS1/PP2NOTIFYCONFTIER OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/PP2NEXTTOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/PP2MAXRESULTS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pp2lstntfycntriesrslt
  RAISING
    /AWS1/CX_PP2ACCESSDENIEDEX
    /AWS1/CX_PP2INTERNALSERVEREX
    /AWS1/CX_PP2THROTTLINGEX
    /AWS1/CX_PP2VALIDATIONEX
    /AWS1/CX_PP2CLIENTEXC
    /AWS1/CX_PP2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

it_channels TYPE /AWS1/CL_PP2NTFENBCHNLLIST_W=>TT_NOTIFYENABLEDCHANNELSLIST TT_NOTIFYENABLEDCHANNELSLIST

An array of channels to filter the results by.

it_usecases TYPE /AWS1/CL_PP2NTFYUSECASELIST_W=>TT_NOTIFYUSECASELIST TT_NOTIFYUSECASELIST

An array of use cases to filter the results by.

iv_tier TYPE /AWS1/PP2NOTIFYCONFTIER /AWS1/PP2NOTIFYCONFTIER

The tier to filter the results by.

iv_nexttoken TYPE /AWS1/PP2NEXTTOKEN /AWS1/PP2NEXTTOKEN

The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

iv_maxresults TYPE /AWS1/PP2MAXRESULTS /AWS1/PP2MAXRESULTS

The maximum number of results to return per each request.

RETURNING

oo_output TYPE REF TO /aws1/cl_pp2lstntfycntriesrslt /AWS1/CL_PP2LSTNTFYCNTRIESRSLT

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->listnotifycountries(
  it_channels = VALUE /aws1/cl_pp2ntfenbchnllist_w=>tt_notifyenabledchannelslist(
    ( new /aws1/cl_pp2ntfenbchnllist_w( |string| ) )
  )
  it_usecases = VALUE /aws1/cl_pp2ntfyusecaselist_w=>tt_notifyusecaselist(
    ( new /aws1/cl_pp2ntfyusecaselist_w( |string| ) )
  )
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_tier = |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_notifycountries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_isocountrycode = lo_row_1->get_isocountrycode( ).
      lv_string = lo_row_1->get_countryname( ).
      LOOP AT lo_row_1->get_supportedchannels( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_numbercapability = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_supportedusecases( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_notifyconfigurationusec = lo_row_5->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_supportedtiers( ) into lo_row_6.
        lo_row_7 = lo_row_6.
        IF lo_row_7 IS NOT INITIAL.
          lv_notifyconfigurationtier = lo_row_7->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_primitiveboolean = lo_row_1->get_cusownedidentityreqd( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.

ListNotifyCountries

List countries that support notify messaging over SMS.

DATA(lo_result) = lo_client->listnotifycountries(
  it_channels = VALUE /aws1/cl_pp2ntfenbchnllist_w=>tt_notifyenabledchannelslist(
    ( new /aws1/cl_pp2ntfenbchnllist_w( |SMS| ) )
  )
  iv_maxresults = 10
).