Skip to content

/AWS1/IF_PPU=>UPDATEBRANDPROFILEFROMREG()

About UpdateBrandProfileFromRegistration

Imports or refreshes the attributes of an existing brand profile from an existing registration. This operation runs asynchronously. Use the GetJob operation to track its progress.

Method Signature

METHODS /AWS1/IF_PPU~UPDATEBRANDPROFILEFROMREG
  IMPORTING
    !IV_BRANDPROFILEID TYPE /AWS1/PPUBRANDPROFILEIDORARN OPTIONAL
    !IV_REGISTRATIONID TYPE /AWS1/PPUREGISTRATIONIDORARN 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_ppuupbrdpflfromregout
  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).

iv_registrationid TYPE /AWS1/PPUREGISTRATIONIDORARN /AWS1/PPUREGISTRATIONIDORARN

The identifier or Amazon Resource Name (ARN) of the registration to import attributes from.

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_ppuupbrdpflfromregout /AWS1/CL_PPUUPBRDPFLFROMREGOUT

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->updatebrandprofilefromreg(
  iv_brandprofileid = |string|
  iv_clienttoken = |string|
  iv_onattributeconflict = |string|
  iv_registrationid = |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 a brand profile from a registration

Update a brand profile from a registration

DATA(lo_result) = lo_client->updatebrandprofilefromreg(
  iv_brandprofileid = |bp-abc12345678901234|
  iv_onattributeconflict = |REPLACE|
  iv_registrationid = |reg-abc12345678901234|
  iv_smartmatch = ABAP_TRUE
).