Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Question about FM 'SAP_WAPI_GET_DEADLINES'

Former Member
0 Kudos

hello all,

this FM 'SAP_WAPI_GET_DEADLINES' is returning times and date from workitem, my question is that i want change the time and the date and save them in Workitem, and when i call again the FM 'SAP_WAPI_GET_DEADLINES' it schould return the changed time and date, so can anyone show me which FM shall I use to update or to save times and dates in Workitem? i have 3 kind of time and 3 kind of date and all of then should be saved at once,

thank you all

1 REPLY 1

Former Member
0 Kudos

Hello,

I think the function modules that you are looking for to update the Deadline data for the given task are available in the FM SWF_CREATE_DEADLINES. In this FM, you can see the code piece mentioned below.

*-- update user decision

CALL FUNCTION 'SWD_UPDATE_DECISION_BLOCK'

EXPORTING

steps = l_step

properties = t_props

TABLES

binding = t_stbind

deadline = t_deadln

exception = t_except

methods = t_imethd

decision = t_decsn

EXCEPTIONS

update_canceled_with_exit = 1

update_canceled_with_no_exit = 2

OTHERS = 3.

*-- error handling

IF sy-subrc <> 0.

RAISE block_edit_failed.

ENDIF.

You can make use of this FM to update that particular step type with the deadline data. Hope this helps.

Regards,

Venkata Phani Prasad K