/AWS1/IF_SNS=>LISTORIGINATIONNUMBERS()¶
About ListOriginationNumbers¶
Lists the calling Amazon Web Services account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide.
Method Signature¶
METHODS /AWS1/IF_SNS~LISTORIGINATIONNUMBERS
  IMPORTING
    !IV_NEXTTOKEN TYPE /AWS1/SNSNEXTTOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/SNSMAXITEMSLSTORIGINAT00 OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_snslstoriginationno01
  RAISING
    /AWS1/CX_SNSAUTHERROREXCEPTION
    /AWS1/CX_SNSINTERNALERROREX
    /AWS1/CX_SNSINVALIDPARAMETEREX
    /AWS1/CX_SNSTHROTTLEDEXCEPTION
    /AWS1/CX_SNSVALIDATIONEX
    /AWS1/CX_SNSCLIENTEXC
    /AWS1/CX_SNSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/SNSNEXTTOKEN /AWS1/SNSNEXTTOKEN¶
Token that the previous
ListOriginationNumbersrequest returns.
iv_maxresults TYPE /AWS1/SNSMAXITEMSLSTORIGINAT00 /AWS1/SNSMAXITEMSLSTORIGINAT00¶
The maximum number of origination numbers to return.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_snslstoriginationno01 /AWS1/CL_SNSLSTORIGINATIONNO01¶
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->listoriginationnumbers(
  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.
  lv_nexttoken = lo_result->get_nexttoken( ).
  LOOP AT lo_result->get_phonenumbers( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_timestamp = lo_row_1->get_createdat( ).
      lv_phonenumber = lo_row_1->get_phonenumber( ).
      lv_string = lo_row_1->get_status( ).
      lv_iso2countrycode = lo_row_1->get_iso2countrycode( ).
      lv_routetype = lo_row_1->get_routetype( ).
      LOOP AT lo_row_1->get_numbercapabilities( ) 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.
    ENDIF.
  ENDLOOP.
ENDIF.