/AWS1/IF_WAD=>UPDATEPROFILE()¶
About UpdateProfile¶
Update a profile.
Method Signature¶
METHODS /AWS1/IF_WAD~UPDATEPROFILE
IMPORTING
!IV_PROFILEARN TYPE /AWS1/WADPROFILEARN OPTIONAL
!IV_PROFILEDESCRIPTION TYPE /AWS1/WADPROFILEDESCRIPTION OPTIONAL
!IT_PROFILEQUESTIONS TYPE /AWS1/CL_WADPFLQUESTIONUPDATE=>TT_PROFILEQUESTIONUPDATES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wadupdatepfloutput
RAISING
/AWS1/CX_WADACCESSDENIEDEX
/AWS1/CX_WADCONFLICTEXCEPTION
/AWS1/CX_WADINTERNALSERVEREX
/AWS1/CX_WADRESOURCENOTFOUNDEX
/AWS1/CX_WADTHROTTLINGEX
/AWS1/CX_WADVALIDATIONEX
/AWS1/CX_WADCLIENTEXC
/AWS1/CX_WADSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_profilearn TYPE /AWS1/WADPROFILEARN /AWS1/WADPROFILEARN¶
The profile ARN.
Optional arguments:¶
iv_profiledescription TYPE /AWS1/WADPROFILEDESCRIPTION /AWS1/WADPROFILEDESCRIPTION¶
The profile description.
it_profilequestions TYPE /AWS1/CL_WADPFLQUESTIONUPDATE=>TT_PROFILEQUESTIONUPDATES TT_PROFILEQUESTIONUPDATES¶
Profile questions.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wadupdatepfloutput /AWS1/CL_WADUPDATEPFLOUTPUT¶
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->updateprofile(
it_profilequestions = VALUE /aws1/cl_wadpflquestionupdate=>tt_profilequestionupdates(
(
new /aws1/cl_wadpflquestionupdate(
it_selectedchoiceids = VALUE /aws1/cl_wadseledpflchoiceid00=>tt_selectedprofilechoiceids(
( new /aws1/cl_wadseledpflchoiceid00( |string| ) )
)
iv_questionid = |string|
)
)
)
iv_profilearn = |string|
iv_profiledescription = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_profile = lo_result->get_profile( ).
IF lo_profile IS NOT INITIAL.
lv_profilearn = lo_profile->get_profilearn( ).
lv_profileversion = lo_profile->get_profileversion( ).
lv_profilename = lo_profile->get_profilename( ).
lv_profiledescription = lo_profile->get_profiledescription( ).
LOOP AT lo_profile->get_profilequestions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_questionid = lo_row_1->get_questionid( ).
lv_questiontitle = lo_row_1->get_questiontitle( ).
lv_questiondescription = lo_row_1->get_questiondescription( ).
LOOP AT lo_row_1->get_questionchoices( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_choiceid = lo_row_3->get_choiceid( ).
lv_choicetitle = lo_row_3->get_choicetitle( ).
lv_choicedescription = lo_row_3->get_choicedescription( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_selectedchoiceids( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_choiceid = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_minselectedprofilechoic = lo_row_1->get_minselectedchoices( ).
lv_maxselectedprofilechoic = lo_row_1->get_maxselectedchoices( ).
ENDIF.
ENDLOOP.
lv_awsaccountid = lo_profile->get_owner( ).
lv_timestamp = lo_profile->get_createdat( ).
lv_timestamp = lo_profile->get_updatedat( ).
lv_shareinvitationid = lo_profile->get_shareinvitationid( ).
LOOP AT lo_profile->get_tags( ) into ls_row_6.
lv_key = ls_row_6-key.
lo_value = ls_row_6-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.