Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8800

Make disappear / delete of the work item from user's inbox

$
0
0

Hello,

 

We are on NWBC's workflow inbox, well.

 

User selects a work item (the same work item is in several user's inboxes) and clicks the ACCPET button, at this point I do some validations for this user ID (sy-uname), if the validation got failed, then, I need to make DISAPPEAR / DELETE of this work item from this user's inbox, hence I used FM of 'SAP_WAPI_RESUBMIT_WORKITEM', but I'm getting the below error,

 

Work items of type Background Step cannot be set to resubmission

 

As its 'B' type WI, then I did below

 

By using FM  'SWI_GET_RELATED_WORKITEMS', I got the its 'W' type WI and passed it to FM 'SAP_WAPI_RESUBMIT_WORKITEM', then the WI from the inbox got disappeared

 

1) Pls. let me know is my approach is correct / safe (getting its W tyep WI and resubmitting it by using the said FM)?

 

If not,

2) Pls. let me know how can I achieve my requirement (making disappear the work item from current user (sy-uname)'s inbox, meaning, it should be there in other user's inbox)?

 

Thank you


Viewing all articles
Browse latest Browse all 8800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>