Skip to content

/AWS1/IF_PPU=>CREATEBRANDPROFILEFROMREG()

About CreateBrandProfileFromRegistration

Creates a brand profile and populates its attributes from an existing registration. This operation runs asynchronously. Use the GetJob operation to track its progress.

Method Signature

METHODS /AWS1/IF_PPU~CREATEBRANDPROFILEFROMREG
  IMPORTING
    !IV_REGISTRATIONID TYPE /AWS1/PPUREGISTRATIONIDORARN OPTIONAL
    !IV_BRANDPROFILENAME TYPE /AWS1/PPUBRANDPROFILENAME OPTIONAL
    !IV_SMARTMATCH TYPE /AWS1/PPUBOOLEAN OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_PPUTAG=>TT_TAGLIST OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/PPUCLIENTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ppucrebrdpflfrmregout
  RAISING
    /AWS1/CX_PPUACCESSDENIEDEX
    /AWS1/CX_PPUCONFLICTEXCEPTION
    /AWS1/CX_PPUINTERNALSERVEREX
    /AWS1/CX_PPURESOURCENOTFOUNDEX
    /AWS1/CX_PPUSERVICEQUOTAEXCDEX
    /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_registrationid TYPE /AWS1/PPUREGISTRATIONIDORARN /AWS1/PPUREGISTRATIONIDORARN

The identifier or Amazon Resource Name (ARN) of the registration to populate the brand profile from.

iv_brandprofilename TYPE /AWS1/PPUBRANDPROFILENAME /AWS1/PPUBRANDPROFILENAME

The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

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.

it_tags TYPE /AWS1/CL_PPUTAG=>TT_TAGLIST TT_TAGLIST

An array of key and value pair tags that are associated with the resource.

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_ppucrebrdpflfrmregout /AWS1/CL_PPUCREBRDPFLFRMREGOUT

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->createbrandprofilefromreg(
  it_tags = VALUE /aws1/cl_pputag=>tt_taglist(
    (
      new /aws1/cl_pputag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_brandprofilename = |string|
  iv_clienttoken = |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.

Create a brand profile from a registration

Create a brand profile from a registration

DATA(lo_result) = lo_client->createbrandprofilefromreg(
  iv_brandprofilename = |AcmeCorp|
  iv_registrationid = |reg-abc12345678901234|
  iv_smartmatch = ABAP_TRUE
).