/AWS1/IF_PPU=>UPDATERGNSFROMBRANDPROFILE()¶
About UpdateRegistrationsFromBrandProfile¶
Repushes the attributes of a brand profile into existing DRAFT registrations. This operation runs asynchronously. Use the GetJob operation to track its progress.
Method Signature¶
METHODS /AWS1/IF_PPU~UPDATERGNSFROMBRANDPROFILE
IMPORTING
!IV_BRANDPROFILEID TYPE /AWS1/PPUBRANDPROFILEIDORARN OPTIONAL
!IT_REGISTRATIONIDS TYPE /AWS1/CL_PPUREGIDLIST_W=>TT_REGISTRATIONIDLIST OPTIONAL
!IV_SMARTMATCH TYPE /AWS1/PPUBOOLEAN OPTIONAL
!IV_ONATTRIBUTECONFLICT TYPE /AWS1/PPUONATTRIBUTECONFLICT OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/PPUCLIENTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ppuupregfrombrdpflout
RAISING
/AWS1/CX_PPUACCESSDENIEDEX
/AWS1/CX_PPUCONFLICTEXCEPTION
/AWS1/CX_PPUINTERNALSERVEREX
/AWS1/CX_PPURESOURCENOTFOUNDEX
/AWS1/CX_PPUTHROTTLINGEX
/AWS1/CX_PPUVLDTNEXCEPTION
/AWS1/CX_PPUCLIENTEXC
/AWS1/CX_PPUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_brandprofileid TYPE /AWS1/PPUBRANDPROFILEIDORARN /AWS1/PPUBRANDPROFILEIDORARN¶
The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).
it_registrationids TYPE /AWS1/CL_PPUREGIDLIST_W=>TT_REGISTRATIONIDLIST TT_REGISTRATIONIDLIST¶
The identifiers of the registrations.
Optional arguments:¶
iv_smartmatch TYPE /AWS1/PPUBOOLEAN /AWS1/PPUBOOLEAN¶
Specifies whether to use semantic field mapping between brand profile attributes and registration fields. The default is true. When false, the service maps fields using a fixed set of standard field types.
iv_onattributeconflict TYPE /AWS1/PPUONATTRIBUTECONFLICT /AWS1/PPUONATTRIBUTECONFLICT¶
Specifies how the service resolves an attribute that already exists. REPLACE overwrites the existing value with the incoming value. PRESERVE keeps the existing value.
iv_clienttoken TYPE /AWS1/PPUCLIENTTOKEN /AWS1/PPUCLIENTTOKEN¶
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ppuupregfrombrdpflout /AWS1/CL_PPUUPREGFROMBRDPFLOUT¶
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->updatergnsfrombrandprofile(
it_registrationids = VALUE /aws1/cl_ppuregidlist_w=>tt_registrationidlist(
( new /aws1/cl_ppuregidlist_w( |string| ) )
)
iv_brandprofileid = |string|
iv_clienttoken = |string|
iv_onattributeconflict = |string|
iv_smartmatch = ABAP_TRUE
).
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_results( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_jobid = lo_row_1->get_jobid( ).
lv_jobresourceidentifier = lo_row_1->get_resourceidentifier( ).
ENDIF.
ENDLOOP.
ENDIF.
Update registrations from a brand profile¶
Update registrations from a brand profile
DATA(lo_result) = lo_client->updatergnsfrombrandprofile(
it_registrationids = VALUE /aws1/cl_ppuregidlist_w=>tt_registrationidlist(
( new /aws1/cl_ppuregidlist_w( |reg-abc12345678901234| ) )
)
iv_brandprofileid = |bp-abc12345678901234|
iv_onattributeconflict = |PRESERVE|
iv_smartmatch = ABAP_TRUE
).