on 07-04-2014 10:00 AM
Hi All,
I am forwarding my list of workitems from User A to User B with - SAP_WAPI_FORWARD_WORKITEM
CALL FUNCTION 'SAP_WAPI_FORWARD_WORKITEM'
EXPORTING
workitem_id = lv_wi_id
user_id = sy-uname
language = sy-langu
do_commit = 'X'
current_user = sy-uname
IMPORTING
return_code = lv_rcode
new_status = lt_new_status
TABLES
* MESSAGE_LINES =
* MESSAGE_STRUCT =
user_ids = lt_user_ids.
Which is forwarding Workitem to user B but it remains in User A's inbox too...
I also try it with SWW_WI_FORWARD but its not working...
I need the 'Forward' work as Std 'Forward' functionality (i.e. Need to remove the workitem from inbox of user A)
Can you help ???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you currently are doing is: forward the item to the current user again.
So please try this:
CALL FUNCTION 'SAP_WAPI_FORWARD_WORKITEM'
EXPORTING
workitem_id = lv_wi_id
user_id = lv_target_user_id
language = sy-langu
do_commit = 'X'
IMPORTING
return_code = lv_rcode
new_status = lt_new_status
TABLES
* MESSAGE_LINES =
* MESSAGE_STRUCT =
user_ids = lt_user_ids.
The parameter user_id can stay empty, if you want to forward the item to more than one recipient. In that case, you can use the table USER_IDS. It is not necessary, to fill both fields.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.