SAP_WAPI_WORKITEMS_TO_OBJECT returning same WF ID for different object keys

Manish Khanna mkhanna at sapient.com
Thu Dec 23 06:48:18 EST 2010


Hi,

In our production scenario, there are 2 related contracts (ISUCONTRCT) for a contract account. For certain requirement I need to check if 2nd contract has its workflow triggered or not. If not then I'll have to manually trigger it.

To achieve this, the first obvious step is to look for active workitems first contract. However when run in background, SAP_WAPI_WORKITEMS_TO_OBJECT is ignoring the object key and returning a different WI_ID.  Not only that even if I use GOS from the main tcode for the business document - ES22, strangely it too gives incorrect results.

Please see the screenshots.
WF instance 722013 started for Contract 16954 only.
[cid:image001.jpg at 01CBA2C5.643DCD60]
[cid:image003.jpg at 01CBA2C5.643DCD60]

ES22 - GOS
Contract 16954
[cid:image004.jpg at 01CBA2C5.643DCD60]

Contract 16955
[cid:image008.jpg at 01CBA2C5.643DCD60]

As you can see it is giving incorrect results. Both are showing same WF instance for different object keys. This is very confusing. Any help on this.

Thanks
Manish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20101223/be156fce/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 6605 bytes
Desc: image001.jpg
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20101223/be156fce/attachment.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 4682 bytes
Desc: image003.jpg
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20101223/be156fce/attachment-0001.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 15117 bytes
Desc: image004.jpg
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20101223/be156fce/attachment-0002.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.jpg
Type: image/jpeg
Size: 14615 bytes
Desc: image008.jpg
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20101223/be156fce/attachment-0003.jpg


More information about the SAP-WUG mailing list