Help How to reset the deadline on a forwarded workitem?
Rick Bakker
rbakker at gmail.com
Tue Jul 6 18:21:23 EDT 2010
Hi Liz,
You're resetting it after the deadline has passed? That may be a bit
more tricky, it may have set a flag somewhere when that happened. I
suppose creating a new workitem is out of the question? What's the
scenario here?
regards
Rick Bakker
Hanabi Technology
On Wed, Jul 7, 2010 at 6:15 AM, Halladay, Liz (Calgary)
<Liz_Halladay at nexeninc.com> wrote:
>
> Rick,
>
> Below is the code that I am using to update the deadline:
>
> w_deadline-wi_dattype = 'DE'. "Required End
> w_deadline-wi_date = sy-datum.
> w_deadline-wi_time = sy-uzeit + ( 10 * 60 ).
>
> APPEND w_deadline TO lt_deadline.
> CALL FUNCTION 'SWW_WI_DEADLINES_CHANGE'
> EXPORTING
> wi_id = wi_id
> do_commit = 'X'
> TABLES
> deadline_attributes = lt_deadline
> EXCEPTIONS
> no_authorization = 1
> invalid_type = 2
> update_failed = 3
> invalid_status = 4
> OTHERS = 5.
>
> IF sy-subrc <> 0.
> MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
> WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
> ENDIF.
>
>
> This does reset the workitem DesiredEndDate and DesiredEndTime, however
> in the SAP Inbox the workitem is still displayed with a Deadline Already
> Missed icon and the scrolling message "The following deadline was missed
> Requested end". I thought that maybe after the background job RSwwDHEX
> ran it would reset this, but it never seems to get rid of the icon and
> this message. Even with me refreshing the inbox.
>
More information about the SAP-WUG
mailing list