Skip to content

/AWS1/CL_WML=>CREATEMOBILEDEVICEACCESSRULE()

About CreateMobileDeviceAccessRule

Creates a new mobile device access rule for the specified WorkMail organization.

Method Signature

IMPORTING

Required arguments:

iv_organizationid TYPE /AWS1/WMLORGANIZATIONID /AWS1/WMLORGANIZATIONID

The WorkMail organization under which the rule will be created.

iv_name TYPE /AWS1/WMLMOBILEDEVACCRULENAME /AWS1/WMLMOBILEDEVACCRULENAME

The rule name.

iv_effect TYPE /AWS1/WMLMOBILEDEVACCRLEFFECT /AWS1/WMLMOBILEDEVACCRLEFFECT

The effect of the rule when it matches. Allowed values are ALLOW or DENY.

Optional arguments:

iv_clienttoken TYPE /AWS1/WMLIDEMPOTENCYCLITOKEN /AWS1/WMLIDEMPOTENCYCLITOKEN

The idempotency token for the client request.

iv_description TYPE /AWS1/WMLMOBILEDEVACCRULEDESC /AWS1/WMLMOBILEDEVACCRULEDESC

The rule description.

it_devicetypes TYPE /AWS1/CL_WMLDEVICETYPELIST_W=>TT_DEVICETYPELIST TT_DEVICETYPELIST

Device types that the rule will match.

it_notdevicetypes TYPE /AWS1/CL_WMLDEVICETYPELIST_W=>TT_DEVICETYPELIST TT_DEVICETYPELIST

Device types that the rule will not match. All other device types will match.

it_devicemodels TYPE /AWS1/CL_WMLDEVICEMODELLIST_W=>TT_DEVICEMODELLIST TT_DEVICEMODELLIST

Device models that the rule will match.

it_notdevicemodels TYPE /AWS1/CL_WMLDEVICEMODELLIST_W=>TT_DEVICEMODELLIST TT_DEVICEMODELLIST

Device models that the rule will not match. All other device models will match.

it_deviceoperatingsystems TYPE /AWS1/CL_WMLDEVOPERATINGSYST00=>TT_DEVICEOPERATINGSYSTEMLIST TT_DEVICEOPERATINGSYSTEMLIST

Device operating systems that the rule will match.

it_notdeviceoperatingsystems TYPE /AWS1/CL_WMLDEVOPERATINGSYST00=>TT_DEVICEOPERATINGSYSTEMLIST TT_DEVICEOPERATINGSYSTEMLIST

Device operating systems that the rule will not match. All other device operating systems will match.

it_deviceuseragents TYPE /AWS1/CL_WMLDEVUSERAGENTLIST_W=>TT_DEVICEUSERAGENTLIST TT_DEVICEUSERAGENTLIST

Device user agents that the rule will match.

it_notdeviceuseragents TYPE /AWS1/CL_WMLDEVUSERAGENTLIST_W=>TT_DEVICEUSERAGENTLIST TT_DEVICEUSERAGENTLIST

Device user agents that the rule will not match. All other device user agents will match.

RETURNING

oo_output TYPE REF TO /aws1/cl_wmlcremobiledevaccr01 /AWS1/CL_WMLCREMOBILEDEVACCR01

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->/aws1/if_wml~createmobiledeviceaccessrule(
  it_devicemodels = VALUE /aws1/cl_wmldevicemodellist_w=>tt_devicemodellist(
    ( new /aws1/cl_wmldevicemodellist_w( |string| ) )
  )
  it_deviceoperatingsystems = VALUE /aws1/cl_wmldevoperatingsyst00=>tt_deviceoperatingsystemlist(
    ( new /aws1/cl_wmldevoperatingsyst00( |string| ) )
  )
  it_devicetypes = VALUE /aws1/cl_wmldevicetypelist_w=>tt_devicetypelist(
    ( new /aws1/cl_wmldevicetypelist_w( |string| ) )
  )
  it_deviceuseragents = VALUE /aws1/cl_wmldevuseragentlist_w=>tt_deviceuseragentlist(
    ( new /aws1/cl_wmldevuseragentlist_w( |string| ) )
  )
  it_notdevicemodels = VALUE /aws1/cl_wmldevicemodellist_w=>tt_devicemodellist(
    ( new /aws1/cl_wmldevicemodellist_w( |string| ) )
  )
  it_notdeviceoperatingsystems = VALUE /aws1/cl_wmldevoperatingsyst00=>tt_deviceoperatingsystemlist(
    ( new /aws1/cl_wmldevoperatingsyst00( |string| ) )
  )
  it_notdevicetypes = VALUE /aws1/cl_wmldevicetypelist_w=>tt_devicetypelist(
    ( new /aws1/cl_wmldevicetypelist_w( |string| ) )
  )
  it_notdeviceuseragents = VALUE /aws1/cl_wmldevuseragentlist_w=>tt_deviceuseragentlist(
    ( new /aws1/cl_wmldevuseragentlist_w( |string| ) )
  )
  iv_clienttoken = |string|
  iv_description = |string|
  iv_effect = |string|
  iv_name = |string|
  iv_organizationid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_mobiledeviceaccessrulei = lo_result->get_mobiledeviceaccessruleid( ).
ENDIF.