Skip to content

/AWS1/IF_PTT=>CANCELPROFILEUPDATETASK()

About CancelProfileUpdateTask

Cancels an in-progress profile update task, stopping any pending changes to the partner profile.

Method Signature

METHODS /AWS1/IF_PTT~CANCELPROFILEUPDATETASK
  IMPORTING
    !IV_CATALOG TYPE /AWS1/PTTCATALOG OPTIONAL
    !IV_IDENTIFIER TYPE /AWS1/PTTPARTNERIDENTIFIER OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/PTTCLIENTTOKEN OPTIONAL
    !IV_TASKID TYPE /AWS1/PTTPROFILETASKID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pttcancpflupdtaskrsp
  RAISING
    /AWS1/CX_PTTACCESSDENIEDEX
    /AWS1/CX_PTTCONFLICTEXCEPTION
    /AWS1/CX_PTTINTERNALSERVEREX
    /AWS1/CX_PTTRESOURCENOTFOUNDEX
    /AWS1/CX_PTTTHROTTLINGEX
    /AWS1/CX_PTTVLDTNEXCEPTION
    /AWS1/CX_PTTCLIENTEXC
    /AWS1/CX_PTTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_catalog TYPE /AWS1/PTTCATALOG /AWS1/PTTCATALOG

The catalog identifier for the partner account.

iv_identifier TYPE /AWS1/PTTPARTNERIDENTIFIER /AWS1/PTTPARTNERIDENTIFIER

The unique identifier of the partner account.

iv_taskid TYPE /AWS1/PTTPROFILETASKID /AWS1/PTTPROFILETASKID

The unique identifier of the profile update task to cancel.

Optional arguments:

iv_clienttoken TYPE /AWS1/PTTCLIENTTOKEN /AWS1/PTTCLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

RETURNING

oo_output TYPE REF TO /aws1/cl_pttcancpflupdtaskrsp /AWS1/CL_PTTCANCPFLUPDTASKRSP

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->cancelprofileupdatetask(
  iv_catalog = |string|
  iv_clienttoken = |string|
  iv_identifier = |string|
  iv_taskid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_catalog = lo_result->get_catalog( ).
  lv_partnerarn = lo_result->get_arn( ).
  lv_partnerid = lo_result->get_id( ).
  lv_profiletaskid = lo_result->get_taskid( ).
  lo_taskdetails = lo_result->get_taskdetails( ).
  IF lo_taskdetails IS NOT INITIAL.
    lv_unicodestring = lo_taskdetails->get_displayname( ).
    lv_unicodestring = lo_taskdetails->get_description( ).
    lv_url = lo_taskdetails->get_websiteurl( ).
    lv_url = lo_taskdetails->get_logourl( ).
    lv_primarysolutiontype = lo_taskdetails->get_primarysolutiontype( ).
    LOOP AT lo_taskdetails->get_industrysegments( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_industrysegment = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_locale = lo_taskdetails->get_translationsourcelocale( ).
    LOOP AT lo_taskdetails->get_localizedcontents( ) into lo_row_2.
      lo_row_3 = lo_row_2.
      IF lo_row_3 IS NOT INITIAL.
        lv_unicodestring = lo_row_3->get_displayname( ).
        lv_unicodestring = lo_row_3->get_description( ).
        lv_url = lo_row_3->get_websiteurl( ).
        lv_url = lo_row_3->get_logourl( ).
        lv_locale = lo_row_3->get_locale( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lv_datetime = lo_result->get_startedat( ).
  lv_profiletaskstatus = lo_result->get_status( ).
  lv_datetime = lo_result->get_endedat( ).
  LOOP AT lo_result->get_errordetaillist( ) into lo_row_4.
    lo_row_5 = lo_row_4.
    IF lo_row_5 IS NOT INITIAL.
      lv_string = lo_row_5->get_locale( ).
      lv_string = lo_row_5->get_message( ).
      lv_profilevalidationerrorr = lo_row_5->get_reason( ).
    ENDIF.
  ENDLOOP.
ENDIF.