/AWS1/IF_CUS=>CREATEPROFILE()¶
About CreateProfile¶
Creates a standard profile.
A standard profile represents the following attributes for a customer profile in a domain.
Method Signature¶
METHODS /AWS1/IF_CUS~CREATEPROFILE
IMPORTING
!IV_DOMAINNAME TYPE /AWS1/CUSNAME OPTIONAL
!IV_ACCOUNTNUMBER TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_ADDITIONALINFORMATION TYPE /AWS1/CUSSENSITIVESTR1TO1000 OPTIONAL
!IV_PARTYTYPE TYPE /AWS1/CUSPARTYTYPE OPTIONAL
!IV_BUSINESSNAME TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_FIRSTNAME TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_MIDDLENAME TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_LASTNAME TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_BIRTHDATE TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_GENDER TYPE /AWS1/CUSGENDER OPTIONAL
!IV_PHONENUMBER TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_MOBILEPHONENUMBER TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_HOMEPHONENUMBER TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_BUSINESSPHONENUMBER TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_EMAILADDRESS TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_PERSONALEMAILADDRESS TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_BUSINESSEMAILADDRESS TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IO_ADDRESS TYPE REF TO /AWS1/CL_CUSADDRESS OPTIONAL
!IO_SHIPPINGADDRESS TYPE REF TO /AWS1/CL_CUSADDRESS OPTIONAL
!IO_MAILINGADDRESS TYPE REF TO /AWS1/CL_CUSADDRESS OPTIONAL
!IO_BILLINGADDRESS TYPE REF TO /AWS1/CL_CUSADDRESS OPTIONAL
!IT_ATTRIBUTES TYPE /AWS1/CL_CUSATTRIBUTES_W=>TT_ATTRIBUTES OPTIONAL
!IV_PARTYTYPESTRING TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_GENDERSTRING TYPE /AWS1/CUSSENSITIVESTRING1TO255 OPTIONAL
!IV_PROFILETYPE TYPE /AWS1/CUSPROFILETYPE OPTIONAL
!IO_ENGAGEMENTPREFERENCES TYPE REF TO /AWS1/CL_CUSENGAGEMENTPREFS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cuscreateprofilersp
RAISING
/AWS1/CX_CUSACCESSDENIEDEX
/AWS1/CX_CUSBADREQUESTEX
/AWS1/CX_CUSINTERNALSERVEREX
/AWS1/CX_CUSRESOURCENOTFOUNDEX
/AWS1/CX_CUSTHROTTLINGEX
/AWS1/CX_CUSCLIENTEXC
/AWS1/CX_CUSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainname TYPE /AWS1/CUSNAME /AWS1/CUSNAME¶
The unique name of the domain.
Optional arguments:¶
iv_accountnumber TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
An account number that you have assigned to the customer.
iv_additionalinformation TYPE /AWS1/CUSSENSITIVESTR1TO1000 /AWS1/CUSSENSITIVESTR1TO1000¶
Any additional information relevant to the customer’s profile.
iv_partytype TYPE /AWS1/CUSPARTYTYPE /AWS1/CUSPARTYTYPE¶
The type of profile used to describe the customer.
iv_businessname TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The name of the customer’s business.
iv_firstname TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s first name.
iv_middlename TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s middle name.
iv_lastname TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s last name.
iv_birthdate TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s birth date.
iv_gender TYPE /AWS1/CUSGENDER /AWS1/CUSGENDER¶
The gender with which the customer identifies.
iv_phonenumber TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s phone number, which has not been specified as a mobile, home, or business number.
iv_mobilephonenumber TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s mobile phone number.
iv_homephonenumber TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s home phone number.
iv_businessphonenumber TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s business phone number.
iv_emailaddress TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s email address, which has not been specified as a personal or business address.
iv_personalemailaddress TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s personal email address.
iv_businessemailaddress TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
The customer’s business email address.
io_address TYPE REF TO /AWS1/CL_CUSADDRESS /AWS1/CL_CUSADDRESS¶
A generic address associated with the customer that is not mailing, shipping, or billing.
io_shippingaddress TYPE REF TO /AWS1/CL_CUSADDRESS /AWS1/CL_CUSADDRESS¶
The customer’s shipping address.
io_mailingaddress TYPE REF TO /AWS1/CL_CUSADDRESS /AWS1/CL_CUSADDRESS¶
The customer’s mailing address.
io_billingaddress TYPE REF TO /AWS1/CL_CUSADDRESS /AWS1/CL_CUSADDRESS¶
The customer’s billing address.
it_attributes TYPE /AWS1/CL_CUSATTRIBUTES_W=>TT_ATTRIBUTES TT_ATTRIBUTES¶
A key value pair of attributes of a customer profile.
iv_partytypestring TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
An alternative to
PartyTypewhich accepts any string as input.
iv_genderstring TYPE /AWS1/CUSSENSITIVESTRING1TO255 /AWS1/CUSSENSITIVESTRING1TO255¶
An alternative to
Genderwhich accepts any string as input.
iv_profiletype TYPE /AWS1/CUSPROFILETYPE /AWS1/CUSPROFILETYPE¶
The type of the profile.
io_engagementpreferences TYPE REF TO /AWS1/CL_CUSENGAGEMENTPREFS /AWS1/CL_CUSENGAGEMENTPREFS¶
Object that defines the preferred methods of engagement, per channel.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cuscreateprofilersp /AWS1/CL_CUSCREATEPROFILERSP¶
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(
io_address = new /aws1/cl_cusaddress(
iv_address1 = |string|
iv_address2 = |string|
iv_address3 = |string|
iv_address4 = |string|
iv_city = |string|
iv_country = |string|
iv_county = |string|
iv_postalcode = |string|
iv_province = |string|
iv_state = |string|
)
io_billingaddress = new /aws1/cl_cusaddress(
iv_address1 = |string|
iv_address2 = |string|
iv_address3 = |string|
iv_address4 = |string|
iv_city = |string|
iv_country = |string|
iv_county = |string|
iv_postalcode = |string|
iv_province = |string|
iv_state = |string|
)
io_engagementpreferences = new /aws1/cl_cusengagementprefs(
it_email = VALUE /aws1/cl_cuscontactpreference=>tt_emailpreferencelist(
(
new /aws1/cl_cuscontactpreference(
iv_contacttype = |string|
iv_keyname = |string|
iv_keyvalue = |string|
iv_profileid = |string|
)
)
)
it_phone = VALUE /aws1/cl_cuscontactpreference=>tt_phonepreferencelist(
(
new /aws1/cl_cuscontactpreference(
iv_contacttype = |string|
iv_keyname = |string|
iv_keyvalue = |string|
iv_profileid = |string|
)
)
)
)
io_mailingaddress = new /aws1/cl_cusaddress(
iv_address1 = |string|
iv_address2 = |string|
iv_address3 = |string|
iv_address4 = |string|
iv_city = |string|
iv_country = |string|
iv_county = |string|
iv_postalcode = |string|
iv_province = |string|
iv_state = |string|
)
io_shippingaddress = new /aws1/cl_cusaddress(
iv_address1 = |string|
iv_address2 = |string|
iv_address3 = |string|
iv_address4 = |string|
iv_city = |string|
iv_country = |string|
iv_county = |string|
iv_postalcode = |string|
iv_province = |string|
iv_state = |string|
)
it_attributes = VALUE /aws1/cl_cusattributes_w=>tt_attributes(
(
VALUE /aws1/cl_cusattributes_w=>ts_attributes_maprow(
key = |string|
value = new /aws1/cl_cusattributes_w( |string| )
)
)
)
iv_accountnumber = |string|
iv_additionalinformation = |string|
iv_birthdate = |string|
iv_businessemailaddress = |string|
iv_businessname = |string|
iv_businessphonenumber = |string|
iv_domainname = |string|
iv_emailaddress = |string|
iv_firstname = |string|
iv_gender = |string|
iv_genderstring = |string|
iv_homephonenumber = |string|
iv_lastname = |string|
iv_middlename = |string|
iv_mobilephonenumber = |string|
iv_partytype = |string|
iv_partytypestring = |string|
iv_personalemailaddress = |string|
iv_phonenumber = |string|
iv_profiletype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_uuid = lo_result->get_profileid( ).
ENDIF.