WF condition check issues

Mike Pokraka wug at workflowconnections.com
Fri Mar 4 11:26:58 EST 2011


Hi Rick,

What I meant was to check your attribute code - does it populate the
container in all cases? I've seen where the swc_set_attribute statement
was skipped if no value was found, which would produce a null value.

You can't check '' in a condition. If the code isn't a problem then I
think the following should also cover it:

  status = 'D' or
  status =     or
not status EX

This will check for 'D', space, and null.
Regards,
Mike


On Fri, March 4, 2011 2:13 pm, Sample, Rick wrote:
> Hey Mike,
>
> Thanks for input.
>
> That BOR.attribute must be set to 'B' to start the WF in question. So,
> that values 'was' B for Blocked. (VBUK-CMGST I think?)
> VKM1 Release block, set to <whatever?> space, INITIAL, ?
> Seen this before, but can't recall.
>
> If I can't find my notes, I am going to just put in:
> zBUS2032.Overall CreditStatus = 'D' or zBUS2032.Overall CreditStatus = or
> zBUS2032.Overall CreditStatus = '' or zBUS2032.Overall CreditStatus = ' '
> and call it a day.
>
> But I hate trying to explain multiple trasnsports and then the question
> comes up... why it works in dev not Q? We shouldn't be guessing why works
> in one client and not another.
>
> I will poke around in SDN and respond when I get back in ofc and in the
> client in question. There is a reason, I will find it.
>
> Rick
>
>> -----Original Message-----
>> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
>> Of Mike Pokraka
>> Sent: Friday, March 04, 2011 7:53 AM
>> To: SAP Workflow Users' Group
>> Subject: Re: WF condition check issues
>>
>> Blanks are always a minefield, as it depends on what you're doing with
>> the
>> container. Unused parameters will start out not existing in the
>> container, once a
>> value is assigned (even if blank), they come to life. If a value is not
>> returned
>> because it doesn't exist then it will be false, since ' '
>> (space) is not the same as '' (nothing).
>> Although when evaluating an attribute it should always work, so that's a
>> bit odd -
>> does your attribute code put a space into the return value?
>>
>> If possible try to reverse logic to check for copnditions that don't
>> involve blank, or
>> use 'EX' operator to check existence.
>>
>> Regards,
>> Mike
>>
>>
>> On Fri, March 4, 2011 1:23 pm, Sample, Rick wrote:
>> > Hi all,
>> >
>> > I have a minor issue. I have a WF condition check on a standard BOR
>> > attribute.
>> > > >
>> > Seen this before, but don't recall where / what I need to change.
>> >zBUS2032.Overall CreditStatus = 'D' or zBUS2032.Overall CreditStatus =
>> >
>> > No value in VBUK-CMGST evaluates correctly in dev, but false in Q.
>> > Rick
>> >
>> > _______________________________________________
>> > 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