Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Forward Workitem - Should remove from first user's Inbox

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 ???

Former Member
Former Member replied

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.



0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question