Skip to content

/AWS1/IF_IOW=>LISTWIRELESSDEVIMPORTTASKS()

About ListWirelessDeviceImportTasks

List of import tasks and summary information of onboarding status of devices in each import task.

Method Signature

METHODS /AWS1/IF_IOW~LISTWIRELESSDEVIMPORTTASKS
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/IOWMAXRESULTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/IOWNEXTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iowlstwirelessdevim01
  RAISING
    /AWS1/CX_IOWACCESSDENIEDEX
    /AWS1/CX_IOWCONFLICTEXCEPTION
    /AWS1/CX_IOWINTERNALSERVEREX
    /AWS1/CX_IOWRESOURCENOTFOUNDEX
    /AWS1/CX_IOWTHROTTLINGEX
    /AWS1/CX_IOWVALIDATIONEX
    /AWS1/CX_IOWCLIENTEXC
    /AWS1/CX_IOWSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/IOWMAXRESULTS /AWS1/IOWMAXRESULTS

MaxResults

iv_nexttoken TYPE /AWS1/IOWNEXTTOKEN /AWS1/IOWNEXTTOKEN

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

RETURNING

oo_output TYPE REF TO /aws1/cl_iowlstwirelessdevim01 /AWS1/CL_IOWLSTWIRELESSDEVIM01

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->listwirelessdevimporttasks(
  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_wirelessdevimptasklist( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_importtaskid = lo_row_1->get_id( ).
      lv_importtaskarn = lo_row_1->get_arn( ).
      lv_destinationname = lo_row_1->get_destinationname( ).
      lv_positioningconfigstatus = lo_row_1->get_positioning( ).
      lo_sidewalkgetstartimporti = lo_row_1->get_sidewalk( ).
      IF lo_sidewalkgetstartimporti IS NOT INITIAL.
        LOOP AT lo_sidewalkgetstartimporti->get_devicecreationfilelist( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_devicecreationfile = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_role = lo_sidewalkgetstartimporti->get_role( ).
        lo_sidewalkpositioning = lo_sidewalkgetstartimporti->get_positioning( ).
        IF lo_sidewalkpositioning IS NOT INITIAL.
          lv_destinationname = lo_sidewalkpositioning->get_destinationname( ).
        ENDIF.
      ENDIF.
      lv_creationtime = lo_row_1->get_creationtime( ).
      lv_importtaskstatus = lo_row_1->get_status( ).
      lv_statusreason = lo_row_1->get_statusreason( ).
      lv_importedwirelessdevicec = lo_row_1->get_initializedimpeddevcount( ).
      lv_importedwirelessdevicec = lo_row_1->get_pendingimporteddevcount( ).
      lv_importedwirelessdevicec = lo_row_1->get_onboardedimpeddevcount( ).
      lv_importedwirelessdevicec = lo_row_1->get_failedimporteddevcount( ).
    ENDIF.
  ENDLOOP.
ENDIF.