Skip to content

/AWS1/CL_PPMWHTSAPPCALLPERMLMT

A time-bound restriction on a calling action, such as the number of calls allowed within a time period.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_timeperiod TYPE /AWS1/PPMISO8601DURATION /AWS1/PPMISO8601DURATION

The time period over which the limit applies, as an ISO 8601 duration.

iv_maxallowed TYPE /AWS1/PPMINTEGER /AWS1/PPMINTEGER

The maximum number of times the action is allowed within the time period.

iv_currentusage TYPE /AWS1/PPMINTEGER /AWS1/PPMINTEGER

The number of times the action has been used within the current time period.

Optional arguments:

iv_limitexpirationtime TYPE /AWS1/PPMTIMESTAMP /AWS1/PPMTIMESTAMP

The time when the limit resets. This value is present only when the current usage has reached the maximum allowed.


Queryable Attributes

timePeriod

The time period over which the limit applies, as an ISO 8601 duration.

Accessible with the following methods

Method Description
GET_TIMEPERIOD() Getter for TIMEPERIOD, with configurable default
ASK_TIMEPERIOD() Getter for TIMEPERIOD w/ exceptions if field has no value
HAS_TIMEPERIOD() Determine if TIMEPERIOD has a value

maxAllowed

The maximum number of times the action is allowed within the time period.

Accessible with the following methods

Method Description
GET_MAXALLOWED() Getter for MAXALLOWED, with configurable default
ASK_MAXALLOWED() Getter for MAXALLOWED w/ exceptions if field has no value
HAS_MAXALLOWED() Determine if MAXALLOWED has a value

currentUsage

The number of times the action has been used within the current time period.

Accessible with the following methods

Method Description
GET_CURRENTUSAGE() Getter for CURRENTUSAGE, with configurable default
ASK_CURRENTUSAGE() Getter for CURRENTUSAGE w/ exceptions if field has no value
HAS_CURRENTUSAGE() Determine if CURRENTUSAGE has a value

limitExpirationTime

The time when the limit resets. This value is present only when the current usage has reached the maximum allowed.

Accessible with the following methods

Method Description
GET_LIMITEXPIRATIONTIME() Getter for LIMITEXPIRATIONTIME, with configurable default
ASK_LIMITEXPIRATIONTIME() Getter for LIMITEXPIRATIONTIME w/ exceptions if field has no
HAS_LIMITEXPIRATIONTIME() Determine if LIMITEXPIRATIONTIME has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_WHATSAPPCALLPERMLIMITLIST

TYPES TT_WHATSAPPCALLPERMLIMITLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_PPMWHTSAPPCALLPERMLMT WITH DEFAULT KEY
.