/AWS1/IF_PPU=>CREATEBRANDPROFILEATTRIBUTES()¶
About CreateBrandProfileAttributes¶
Creates up to 10 attributes for a brand profile in a single request. For attributes of type IMAGE or DOCUMENT, the response includes a presigned Amazon S3 URL that you use to upload the media. This operation is atomic: either all of the attributes are created, or none of them are.
Method Signature¶
METHODS /AWS1/IF_PPU~CREATEBRANDPROFILEATTRIBUTES
IMPORTING
!IV_BRANDPROFILEID TYPE /AWS1/PPUBRANDPROFILEIDORARN OPTIONAL
!IT_ATTRIBUTES TYPE /AWS1/CL_PPUBRANDPFLATTRINPUT=>TT_BRANDPROFILEATTRINPUTLIST OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/PPUCLIENTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ppucrebrndpflattrsout
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_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_attributes TYPE /AWS1/CL_PPUBRANDPFLATTRINPUT=>TT_BRANDPROFILEATTRINPUTLIST TT_BRANDPROFILEATTRINPUTLIST¶
The brand profile attributes.
Optional arguments:¶
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_ppucrebrndpflattrsout /AWS1/CL_PPUCREBRNDPFLATTRSOUT¶
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->createbrandprofileattributes(
it_attributes = VALUE /aws1/cl_ppubrandpflattrinput=>tt_brandprofileattrinputlist(
(
new /aws1/cl_ppubrandpflattrinput(
iv_attachmentbody = '5347567362473873563239796247513D'
iv_attributename = |string|
iv_attributetype = |string|
iv_attributevalue = |string|
iv_category = |string|
iv_description = |string|
)
)
)
iv_brandprofileid = |string|
iv_clienttoken = |string|
).
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_attributes( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_brandprofileattributena = lo_row_1->get_attributename( ).
lv_brandprofileattributety = lo_row_1->get_attributetype( ).
lv_mediadownloadurl = lo_row_1->get_mediadownloadurl( ).
ENDIF.
ENDLOOP.
ENDIF.
Create a text attribute on a brand profile¶
Create a text attribute on a brand profile
DATA(lo_result) = lo_client->createbrandprofileattributes(
it_attributes = VALUE /aws1/cl_ppubrandpflattrinput=>tt_brandprofileattrinputlist(
(
new /aws1/cl_ppubrandpflattrinput(
iv_attributename = |SupportEmail|
iv_attributetype = |TEXT|
iv_attributevalue = |support@example.com|
iv_category = |CONTACT|
)
)
)
iv_brandprofileid = |bp-abc12345678901234|
).