on 07-13-2006 7:34 PM
Hello Workflow Gurus,
Is there anyway I can get the current work item ID given the fact that I have the top work item ID. Right now I am using table SWWWIHEAD but I am facing runtime issues. I was using the function module SAP_WAPI_WORKITEMS_TO_OBJECT which is horrible runtime wise. Please advise if there is a way to get the current work item ID.
Thanks in advance
Hello Rachana,
there's a nice place to leave workflow topics:
* Prerequesites: There are no sub-workflows
DATA: wi_id TYPE swwwihead-wi_id.
...
wi_id = <your workitem id here>.
...
DATA: items_in_work TYPE STANDARD TABLE
OF swwwihead
INITIAL SIZE 10.
SELECT * FROM swwwihead
INTO TABLE items_in_work
WHERE WI_CHCKWI = wi_id
AND ( wi_type = 'D' OR
wi_type = 'B' )
AND ( wi_stat = 'READY' OR
wi_stat = 'STARTED' OR
wi_stat = 'ERROR' ).
* finished
There is a database index on the field wi_chkwi, so do not worry about performance here.
Best regards,
Florin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.