_adhoc_object stopping WI execution!

Mike Pokraka wug at workflowconnections.com
Wed Mar 10 07:06:43 EST 2010


Hi Andy,

Just to make sure I've understood this: The document behind the BOR object
has been deleted, but WF is still trying to pass it along the rest of the
WF? This is a perfectly valid scenario, so it seems like a gap in standard
functionality to me, there must be some way to remove an object from the
ad-hoc list.

This should be very easy to reconstruct in a test WF with a different
object, and if the behaviour is the same I'd raise it with OSS. If you
want/need to solve it yourself, I'd suggest trying a programmed binding
rather than secondary method, just to avoid potential locking/update
issues - I can't remember details but have a vague memory of folks having
problems with updating containers in secondary methods.

Cheers,
Mike

On Tue, March 9, 2010 3:05 pm, Catherall, Andy wrote:
> Hi guys
>
> I have a (4.6c) workflow that will not allow me to execute the work item
> because it complains that an "object cannot be created".
>
> This is correct. The object (BUS2094) has been deleted.
>
> The annoying aspect is that I am not using BUS2094 anywhere on either
> the method or work item that is throwing the error. There is absolutely
> no reference to this (deleted) object on the node/task/method.
>
> However...
>
> Earlier in the workflow, there is a decision task. In order to give the
> users the ability to make an informed decision, I have allocated the
> BUS2094 as an adhoc object (_adhoc_object) to this step. From this point
> on, the workflow contains the BUS2094 on the adhoc objects list, and so
> this reference is being passed into my troublesome step.
>
> There doesn't seem to be anything I can do at design-time within the
> workflow design to remove this object from the Adhoc list, and yet at
> run time, the work item execution code (specifically macro
> SWC_CONTAINER_CONVERT within SWO_INVOKE within SWW_WW_EXECUTE_S_NEW...)
> is showing the same concern over the adhoc object validity as it does
> for objects that are actually required for the method execution.
>
> Great.
>
> I'm about to try a messy 'after' method using SAP_WAPI_WRITE_CONTAINER
> to try to remove the BUS2094 as soon as possible, but this strikes me as
> a poor solution.
>
> OSS hunts have so far not struck gold. Any suggestions?
>
> Thanks
>
> Andy Catherall
> Technical Analyst - SAP Workflow, IXOS & DMS
>
>
>
> Int: 751 0556
> Ext: +44 (0)121 486 0556
> Mobile: +44 (0)7813 025481
>
>
>
>
> The Cadbury Cocoa Partnership is working to secure the future of cocoa
> farming around the world. Cadbury Dairy Milk bars are now Fairtrade
> certified in the UK and Ireland. Visit http://www.cadbury.com/ to learn
> more.
>
> Be part of our "Purple Goes Green" commitments and don't print this email.
>
>
> -----------------------------------------
>
> This email (including any attachment) is confidential and may contain
> privileged information and is intended for the use of the individual(s) to
> whom it is addressed. If you are not the intended recipient or receive it
> in error, you may not use, distribute, disclose or copy any of the
> information contained within it and it may be unlawful to do so. If you
> are not the intended recipient please notify us immediately by returning
> this email to us at mailto:mailerror at cadbury.com and destroy all copies.
> Any views expressed by individuals within this email do not necessarily
> reflect the views of Cadbury Holdings Ltd or any of its subsidiaries or
> affiliates. This email does not constitute a binding offer, acceptance,
> amendment, waiver or other agreement, or create any obligation whatsoever,
> unless such intention is clearly stated in the body of the email. Whilst
> we have taken reasonable steps to ensure that this email and any
> attachments are free from viruses, recipients are advised to subject this
> email to their own virus checking, in keeping with good computing
> practice. We accept no liability for any damage sustained as a result of
> any viruses. Please note that email received by Cadbury Holdings Ltd or
> its subsidiaries or affiliates may be monitored in accordance with
> applicable law.
> This email originates from Cadbury Holdings Ltd ("Cadbury") or Cadbury UK
> ("Cadbury UK") as the case may be.
>
> Cadbury Holdings Ltd: registered in England and Wales, registered no.
> 52457
> Registered office address: Cadbury House, Sanderson Road, Uxbridge,
> Middlesex, UB8 1DH United Kingdom. Telephone: +44 (0)1895 615000  Fax:+44
> (0)1895 615001
>
> Cadbury UK: a partnership of Cadbury UK Ltd, Trebor Bassett Ltd and The
> Old Leo Company Ltd. each of which is registered in England and Wales.
> Principal trading address: Cadbury House, Sanderson Road, Uxbridge,
> Middlesex, UB8 1DH United Kingdom. Telephone: +44 (0)1895 615000  Fax:+44
> (0)1895 615001
>
> -----------------------------------------
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>





More information about the SAP-WUG mailing list