/AWS1/IF_PPU=>UPDATEBRANDPROFILEATTRIBUTE()¶
About UpdateBrandProfileAttribute¶
Updates the value, description, or category of an existing brand profile attribute.
Method Signature¶
METHODS /AWS1/IF_PPU~UPDATEBRANDPROFILEATTRIBUTE
IMPORTING
!IV_BRANDPROFILEID TYPE /AWS1/PPUBRANDPROFILEIDORARN OPTIONAL
!IV_ATTRIBUTENAME TYPE /AWS1/PPUBRANDPROFILEATTRNAME OPTIONAL
!IV_ATTRIBUTEVALUE TYPE /AWS1/PPUBRANDPROFILEATTRVALUE OPTIONAL
!IV_ATTACHMENTBODY TYPE /AWS1/PPUBLOB OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/PPUBRANDPROFILEATTRDESC OPTIONAL
!IV_CATEGORY TYPE /AWS1/PPUBRANDPROFILEATTRCAT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ppuupdbrandpflattrout
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_attributename TYPE /AWS1/PPUBRANDPROFILEATTRNAME /AWS1/PPUBRANDPROFILEATTRNAME¶
The name of the brand profile attribute. The name is unique within a brand profile.
Optional arguments:¶
iv_attributevalue TYPE /AWS1/PPUBRANDPROFILEATTRVALUE /AWS1/PPUBRANDPROFILEATTRVALUE¶
The text value of the attribute. This value applies to attributes of type TEXT.
iv_attachmentbody TYPE /AWS1/PPUBLOB /AWS1/PPUBLOB¶
The binary content for an attribute of type IMAGE or DOCUMENT. The content is base64-encoded when it is sent over the wire.
iv_description TYPE /AWS1/PPUBRANDPROFILEATTRDESC /AWS1/PPUBRANDPROFILEATTRDESC¶
A description of the attribute.
iv_category TYPE /AWS1/PPUBRANDPROFILEATTRCAT /AWS1/PPUBRANDPROFILEATTRCAT¶
The category of the attribute.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ppuupdbrandpflattrout /AWS1/CL_PPUUPDBRANDPFLATTROUT¶
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->updatebrandprofileattribute(
iv_attachmentbody = '5347567362473873563239796247513D'
iv_attributename = |string|
iv_attributevalue = |string|
iv_brandprofileid = |string|
iv_category = |string|
iv_description = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_brandprofileattributena = lo_result->get_attributename( ).
lv_brandprofileattributety = lo_result->get_attributetype( ).
lv_brandprofileattributeva = lo_result->get_attributevalue( ).
lv_brandprofileattributede = lo_result->get_description( ).
lv_brandprofileattributeca = lo_result->get_category( ).
lv_string = lo_result->get_mediacontenttype( ).
lv_long = lo_result->get_mediasizebytes( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
ENDIF.
Update a brand profile attribute value¶
Update a brand profile attribute value
DATA(lo_result) = lo_client->updatebrandprofileattribute(
iv_attributename = |SupportEmail|
iv_attributevalue = |help@example.com|
iv_brandprofileid = |bp-abc12345678901234|
iv_category = |CONTACT|
).