SAP Function SWW_WI_DEADLINES_CHANGE - Change Deadline Attributes of Work Item (Types W, E, F, and B)

Parameter Reference Type Length Default Optional Text
AUTHORIZATION_CHECKED SWWCOMMIT-AUTHCKFLAG C 1 SPACE X Indicator for Control of Authorization Check
DEADLINES_CHECKED SWWCOMMIT-CHECKFLAG C 1 SPACE X Indicator for Control of Deadline Check
DO_COMMIT SWWCOMMIT-COMMITFLAG C 1 'X' X Indicator for Control of Commit Logic
PRECONDITIONS_CHECKED SWWCOMMIT-CHECKFLAG C 1 SPACE X Indicator for Control of Status Checks and Type Checks
WI_ID SWWWIHEAD-WI_ID N 12 Work Item ID

Parameter Reference Type Length Text
DEADLINES_EXIST SWWWIHEAD-NO_DEADL C 1 Indicator Showing Whether At Least One Deadline Exists

Parameter Reference Length Optional Text
DEADLINE_ATTRIBUTES SWWDEADLIN 81 Table of Changed Deadline Attributes

Exception Text
INVALID_STATUS Update Not Allowed in Current Status
INVALID_TYPE Method Not Allowed for this Type
NO_AUTHORIZATION User Has No Authorization for this Action
UPDATE_FAILED Work Item Cannot Be Updated

Functionality
The function module changes the attributes of the deadline monitoringfor the work item with the ID WI_ID. The attributes are passed in thetable DEADLINE_ATTRIBUTES. In this table, only the deadline data thatis to be changed is passed. It is assumed that the data is complete(date, time and action specified) and valid (deadline not in the past).

Notes
The following conditions apply when the attributes are changed:

  • A deadline is cancelled if:

  • The action attribute had the value SPACE
    The date attribute has the value '00000000'
    The time attribute has the value '000000'
    • The escalation time is only changed if it has a value other than 0. But
    • the escalation time is only evaluated for the latest end (currently notat all).
      • Since the default value for the time (00:00:00) is also a valid time
      • value, this time cannot be set. (00:00:01) must be entered.