Access in workflow container to method exception outcome (code and message)

Michael Pokraka workflow at quirky.me.uk
Mon Mar 24 06:05:49 EST 2003


Hmmm, I see the problem. It builds a nice fancy message that just gets returned as the workflow error.
I don't know if this is feasible, but may work if you copy the task and define it as a dialog item. Thus if the original fails, reroute the new ("dialog") version to a user. They execute and get the error message displayed....
 
The other alternative (not so nice) is to copy the method into a new one and fill the container with the message using SWC_SET_CONTAINER etc. In short this will involve some ABAP and a delegated subtype of ZBUS2081.
The task needs to have an element - type BAPIRET works well - as well as the WF, and then you can just bind it back.
 
Cheers
Mike
 
 
On Mon, Mar 24, 2003 at 11:23:37AM +0100, Fred Lunaspa wrote:
> Hello,
>
> Can someone tell me how to pass the error no./message back to the flow in a
> container element? I'm using standard SAP (4.6C) business object BUS2081
> (invoice), method PreliminaryPost. This method has one exception defined:
> 1001 BUS2081 00 398 & & & &.
>
> When looking at the task I do not have the option to define the binding from
> the method to the task (no parameters defined).
>
> Regards,
>
> Fred Kouw
>
>
>
>
>
>
>
>
>
>
> >From: Michael Pokraka <workflow at quirky.me.uk>
> >Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
> >To: SAP-WUG at MITVMA.MIT.EDU
> >Subject: Re: Access in workflow container to method exception outcome (code
> >and message)
> >Date: Thu, 20 Mar 2003 12:50:38 +0000
> >
> >Hi,
> >Pass the error no./message back to the flow in a container element.
> >
> >Though why you need to do this may be a valid question: Why not raise
> >different exceptions and model different outcomes based on these?
> >
> >Cheers
> >Mike
> >
> >On Thu, Mar 20, 2003 at 01:03:41PM +0100, Fred Lunaspa wrote:
> >> Hello,
> >>
> >> My method has an exception defined. When this exception occurs an
> >outcome of
> >> my step is 'raised' (error occurred). Can someone tell me how to have
> >access
> >> to the error code and error message in my workflow (i.e. in the tasks
> >> description and/or workitem text)?
> >>
> >> Regards,
> >>
> >> Fred Kouw
> >>
> >>
> >>
> >>
> >>
> >> _________________________________________________________________
> >> MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
>
>
> _________________________________________________________________
> Hotmail en Messenger on the move
> http://www.msn.nl/communicatie/smsdiensten/hotmailsmsv2/
 


More information about the SAP-WUG mailing list