/AWS1/IF_WML=>UPDATEIMPERSONATIONROLE()¶
About UpdateImpersonationRole¶
Updates an impersonation role for the given WorkMail organization.
Method Signature¶
METHODS /AWS1/IF_WML~UPDATEIMPERSONATIONROLE
IMPORTING
!IV_ORGANIZATIONID TYPE /AWS1/WMLORGANIZATIONID OPTIONAL
!IV_IMPERSONATIONROLEID TYPE /AWS1/WMLIMPERSONATIONROLEID OPTIONAL
!IV_NAME TYPE /AWS1/WMLIMPERSONATIONROLENAME OPTIONAL
!IV_TYPE TYPE /AWS1/WMLIMPERSONATIONROLETYPE OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/WMLIMPERSONATIONROLEDESC OPTIONAL
!IT_RULES TYPE /AWS1/CL_WMLIMPERSONATIONRULE=>TT_IMPERSONATIONRULELIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wmlupimpersonationr01
RAISING
/AWS1/CX_WMLENTITYNOTFOUNDEX
/AWS1/CX_WMLENTITYSTATEEX
/AWS1/CX_WMLINVALIDPARAMETEREX
/AWS1/CX_WMLLIMITEXCEEDEDEX
/AWS1/CX_WMLORGNOTFOUNDEX
/AWS1/CX_WMLORGSTATEEXCEPTION
/AWS1/CX_WMLRESOURCENOTFOUNDEX
/AWS1/CX_WMLCLIENTEXC
/AWS1/CX_WMLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_organizationid TYPE /AWS1/WMLORGANIZATIONID /AWS1/WMLORGANIZATIONID¶
The WorkMail organization that contains the impersonation role to update.
iv_impersonationroleid TYPE /AWS1/WMLIMPERSONATIONROLEID /AWS1/WMLIMPERSONATIONROLEID¶
The ID of the impersonation role to update.
iv_name TYPE /AWS1/WMLIMPERSONATIONROLENAME /AWS1/WMLIMPERSONATIONROLENAME¶
The updated impersonation role name.
iv_type TYPE /AWS1/WMLIMPERSONATIONROLETYPE /AWS1/WMLIMPERSONATIONROLETYPE¶
The updated impersonation role type.
it_rules TYPE /AWS1/CL_WMLIMPERSONATIONRULE=>TT_IMPERSONATIONRULELIST TT_IMPERSONATIONRULELIST¶
The updated list of rules.
Optional arguments:¶
iv_description TYPE /AWS1/WMLIMPERSONATIONROLEDESC /AWS1/WMLIMPERSONATIONROLEDESC¶
The updated impersonation role description.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wmlupimpersonationr01 /AWS1/CL_WMLUPIMPERSONATIONR01¶
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->updateimpersonationrole(
it_rules = VALUE /aws1/cl_wmlimpersonationrule=>tt_impersonationrulelist(
(
new /aws1/cl_wmlimpersonationrule(
it_nottargetusers = VALUE /aws1/cl_wmltargetusers_w=>tt_targetusers(
( new /aws1/cl_wmltargetusers_w( |string| ) )
)
it_targetusers = VALUE /aws1/cl_wmltargetusers_w=>tt_targetusers(
( new /aws1/cl_wmltargetusers_w( |string| ) )
)
iv_description = |string|
iv_effect = |string|
iv_impersonationruleid = |string|
iv_name = |string|
)
)
)
iv_description = |string|
iv_impersonationroleid = |string|
iv_name = |string|
iv_organizationid = |string|
iv_type = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.