on 06-02-2010 9:23 AM
Hi,
I am developing a custom workflow for a customer request,
I need to apply a condition like, If there is a open workflow request for this customer, then it should not start another workflow.
how do I do that ?
I tried to look into SWi6, it gives results till I keep the Object key Blank, if I use this with the object key then it gives no result.
I have also tried function module SAP_WAPI_WORKITEMS_TO_OBJECT, but still no success.
I have developed my own Business object for this with key fields.
thanks
Siddharth
Hi,
Try with this FM --> SWN_UWL_GET_WORKLIST
Here, you can get your workitems with status READY, SELECTED or STARTED and also validate which tasks.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it seems the Business object is not getting instantiated in your workflow design. Please create a Task that executes GENERICINSTANTIATE Method of Business Object SYSTEM and instanciate your Business object in the workflow design. Once this task is executed you will get an entry in the respective table.
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can check in the table SWW_WI2OBJ, whether for the key and business object, there is workflow exist or not.
Get the last workitem based on the timestamp and pass that work item in SWWWIHEAD and get the top work item.
Now check whether the status is COMPLETED or INPROCESS or READY, based on which you can trigger or not.
Regards,
JMB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
create a attribute in that BO and that attribute will chk if there is any active workflow instance running for that BO key.
set up a start condition for that attribute.Use Tcode SWB_COND to set start condition for your WF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.