/AWS1/IF_BDI=>CREATEPROFILE()¶
About CreateProfile¶
Creates a customer profile. You can have up to five customer profiles, each representing a distinct private network. A profile is the mechanism used to create the concept of a private network.
Method Signature¶
METHODS /AWS1/IF_BDI~CREATEPROFILE
IMPORTING
!IV_NAME TYPE /AWS1/BDIPROFILENAME OPTIONAL
!IV_EMAIL TYPE /AWS1/BDIEMAIL OPTIONAL
!IV_PHONE TYPE /AWS1/BDIPHONE OPTIONAL
!IV_BUSINESSNAME TYPE /AWS1/BDIBUSINESSNAME OPTIONAL
!IV_LOGGING TYPE /AWS1/BDILOGGING OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/BDISTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_BDITAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdicreateprofilersp
RAISING
/AWS1/CX_BDIACCESSDENIEDEX
/AWS1/CX_BDICONFLICTEXCEPTION
/AWS1/CX_BDIINTERNALSERVEREX
/AWS1/CX_BDIRESOURCENOTFOUNDEX
/AWS1/CX_BDISERVICEQUOTAEXCDEX
/AWS1/CX_BDITHROTTLINGEX
/AWS1/CX_BDIVALIDATIONEX
/AWS1/CX_BDICLIENTEXC
/AWS1/CX_BDISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/BDIPROFILENAME /AWS1/BDIPROFILENAME¶
Specifies the name of the profile.
iv_phone TYPE /AWS1/BDIPHONE /AWS1/BDIPHONE¶
Specifies the phone number associated with the profile.
iv_businessname TYPE /AWS1/BDIBUSINESSNAME /AWS1/BDIBUSINESSNAME¶
Specifies the name for the business associated with this profile.
iv_logging TYPE /AWS1/BDILOGGING /AWS1/BDILOGGING¶
Specifies whether or not logging is enabled for this profile.
Optional arguments:¶
iv_email TYPE /AWS1/BDIEMAIL /AWS1/BDIEMAIL¶
Specifies the email address associated with this customer profile.
iv_clienttoken TYPE /AWS1/BDISTRING /AWS1/BDISTRING¶
Reserved for future use.
it_tags TYPE /AWS1/CL_BDITAG=>TT_TAGLIST TT_TAGLIST¶
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdicreateprofilersp /AWS1/CL_BDICREATEPROFILERSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->createprofile(
it_tags = VALUE /aws1/cl_bditag=>tt_taglist(
(
new /aws1/cl_bditag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_businessname = |string|
iv_clienttoken = |string|
iv_email = |string|
iv_logging = |string|
iv_name = |string|
iv_phone = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_profileid = lo_result->get_profileid( ).
lv_resourcearn = lo_result->get_profilearn( ).
lv_profilename = lo_result->get_name( ).
lv_businessname = lo_result->get_businessname( ).
lv_phone = lo_result->get_phone( ).
lv_email = lo_result->get_email( ).
lv_logging = lo_result->get_logging( ).
lv_loggroupname = lo_result->get_loggroupname( ).
lv_createddate = lo_result->get_createdat( ).
ENDIF.
Sample CreateProfile call¶
Sample CreateProfile call
DATA(lo_result) = lo_client->createprofile(
it_tags = VALUE /aws1/cl_bditag=>tt_taglist(
(
new /aws1/cl_bditag(
iv_key = |sampleKey|
iv_value = |sampleValue|
)
)
)
iv_businessname = |John's Shipping|
iv_clienttoken = |foo|
iv_email = |john@example.com|
iv_logging = |ENABLED|
iv_name = |Shipping Profile|
iv_phone = |5555555555|
).