/AWS1/IF_PTT=>STARTPROFILEUPDATETASK()¶
About StartProfileUpdateTask¶
Initiates a profile update task to modify partner profile information asynchronously.
Method Signature¶
METHODS /AWS1/IF_PTT~STARTPROFILEUPDATETASK
IMPORTING
!IV_CATALOG TYPE /AWS1/PTTCATALOG OPTIONAL
!IV_IDENTIFIER TYPE /AWS1/PTTPARTNERIDENTIFIER OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/PTTCLIENTTOKEN OPTIONAL
!IO_TASKDETAILS TYPE REF TO /AWS1/CL_PTTTASKDETAILS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pttstartpflupdtaskrsp
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.
io_taskdetails TYPE REF TO /AWS1/CL_PTTTASKDETAILS /AWS1/CL_PTTTASKDETAILS¶
The details of the profile updates to be performed.
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_pttstartpflupdtaskrsp /AWS1/CL_PTTSTARTPFLUPDTASKRSP¶
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->startprofileupdatetask(
io_taskdetails = new /aws1/cl_ptttaskdetails(
it_industrysegments = VALUE /aws1/cl_pttindsegmentlist_w=>tt_industrysegmentlist(
( new /aws1/cl_pttindsegmentlist_w( |string| ) )
)
it_localizedcontents = VALUE /aws1/cl_pttlocalizedcontent=>tt_localizedcontentlist(
(
new /aws1/cl_pttlocalizedcontent(
iv_description = |string|
iv_displayname = |string|
iv_locale = |string|
iv_logourl = |string|
iv_websiteurl = |string|
)
)
)
iv_description = |string|
iv_displayname = |string|
iv_logourl = |string|
iv_primarysolutiontype = |string|
iv_translationsourcelocale = |string|
iv_websiteurl = |string|
)
iv_catalog = |string|
iv_clienttoken = |string|
iv_identifier = |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.