Results Processing step not working in Workflow
Mike Pokraka
wug at workflowconnections.com
Fri Feb 29 08:35:04 EST 2008
Hi Sue,
Do your values come from outside the object? If they are available in your
object, you'd be better off using a virtual attribute here. Otherwise
there's nowt wrong with your code.
GET_PROPERTY IMAGEEXISTS.
if object-imageexists is initial. "Only read once
select....
if found object-imageexists = X else ' '
endif.
swc_set_element container 'ImageExists' object-imageexists.
END_PROPERTY.
On Fri, February 29, 2008 12:46 pm, Sue Doughty wrote:
> Hi Mike,
>
> It is just a regular parameter NOT a result parameter. I tried using
> the result parameter, but got the same results. It is called
> 'ImageFound'.
>
> Hi Rick,
>
> I don't have a 4.6c system to reproduce it. Thank you for trying to
> help me. At this point, I don't know what else to do. I've recreated
> the method in the BOR, recreated the task, and recreated the workflow.
> I've tried using the Result parameter and tried just sending out the
> ImageFound parameter. I've tried using Y and N instead of T and F.
>
> Below is the code in the method. Please remember that I'm NOT an ABAPer
> so I only do simple code :-). There might be a better way to do this.
> I just don't know why a T would work and an F does not work :-(
>
> BEGIN_METHOD CHECKEMPFORA2IMAGE CHANGING CONTAINER.
>
> DATA: DOCTYPE(10),
> IMAGEDATE LIKE SY-DATUM,
> IMAGEFOUND(1).
> TABLES: TOA01.
>
> SWC_GET_ELEMENT CONTAINER 'DocType' DOCTYPE.
> SWC_GET_ELEMENT CONTAINER 'ImageDate' IMAGEDATE.
>
> SELECT * FROM TOA01
> WHERE SAP_OBJECT = 'PREL'
> AND OBJECT_ID = OBJECT-KEY
> AND AR_OBJECT = DOCTYPE
> AND AR_DATE >= IMAGEDATE.
> ENDSELECT.
> IF SY-SUBRC = 0.
> IMAGEFOUND = 'T'.
> ELSE.
> IMAGEFOUND = 'F'.
> ENDIF.
>
> SWC_SET_ELEMENT CONTAINER 'ImageFound' IMAGEFOUND.
>
> END_METHOD.
>
> Regards,
> Sue T. Doughty
> SAP Workflow Specialist
> Old Dominion Freight Line, Inc.
> 500 Old Dominion Way
> Thomasville, NC 27360
> Phone: (336) 822-5189
> Toll Free (800 ) 432-6335, ext. 5189
> Email: sue.doughty at odfl.com
More information about the SAP-WUG
mailing list