Workflow seems to just halt (possible looping problem)

Mike Pokraka wug at workflowconnections.com
Thu Jul 31 04:59:35 EDT 2008


Hi Adrian,

Shouldn't present any upgrade issues unless any tests fail. While loops
still work and are still supported, but you'll notice they are simply no
longer available as step types in the WF builder.
Based on this I wouldn't spend time on while problems and simply replace
them since every while can be built with until (now that's great English,
no?).

Cheers,
Mike

On Thu, July 31, 2008 8:43 am, Adrian Clarke wrote:
> Mike,
>
> Thanks for the tips - Using an until loop worked fine (so now I have an
> Until within an Until, instead of a While within an Until).
>
> Thanks also for the tip about the while being obsolete. We are currently
> going through an upgrade from 4.6c to ECC6, and now I can add one more
> task to my ever growing list of things to do :(
>
> With Best Wishes
>
> Adrian
>
>
>
> Adrian Clarke
> SAP Consultant
> Xchanging
> Endeavour Drive, Basildon,
> Essex. SS14 3WF. UK
>
>
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
> Of Mike Pokraka
> Sent: 30 July 2008 08:48
> To: SAP Workflow Users' Group
> Subject: Re: Workflow seems to just halt (possible looping problem)
>
> G'Day Adrian,
>
> Two things:
> 1. Try replacing 3a with a simple assignment step that sets the loop
> exit value.
> 2. Use an until loop. While loops are dead as of 4.7 or shortly
> thereafter.
>
> Cheers,
> Mike
>
> On Tue, July 29, 2008 6:28 pm, Adrian Clarke wrote:
>> Dear Wuggers,
>>
>> I have just created a workflow which has the following structure :
>>
>> 1. Send Mail
>> 2. Set container ERRNO to 9
>> 3. While ERRNO = 9
>>    3a  Call Program which returns a value into ERRNO (either 0, 1 or
>> 9) 4. Send Mail 5. Call Program for manager authorisation, returning a
>
>> value into APPROVED (either true or false) 6. Loop until APPROVED =
>> 'true' (loops back to step 2)
>>
>> When I execute the above, it executes step 1, and step 2, but then
>> goes no further.
>>
>> If I remove the two loops (i.e. the while at 3, and the until at 6)
>> the steps at 1, 2, 3a, 4, 5 are executed I can then put back the while
>
>> loop at 3, and then 1, 2, 3, 3a, 4, 5 are executed When I put back the
>
>> until loop at 6 (looping back to step 2) the workflow executes step 1
>> and 2, but then halts at that point.
>>
>> There is no error being produced (well, not in the workflow log
> anyway).
>>
>>
>> Could this be a problem with having a loop within a loop (especially
>> two different types of loops)?
>> Has anyone seen (and successfully got around) this problem before?
>>
>>
>> Adrian
>>
>>
>>
>> _______________________________________________
>> SAP-WUG mailing list
>> SAP-WUG at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
> _______________________________________________
> 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