Results Processing step not working in Workflow

Sue Doughty Sue.Doughty at odfl.com
Fri Feb 29 11:14:41 EST 2008


Well, something interesting.

I created another method in the BOR and copied the code from the other
method, added the parameters and generated it.  Created a new task for
the new method...set up the same way as the other task.  Took out the
old task in the WF and put in the new Task.  Now, when I execute it,
NEITHER the T or F will work (the Result processing does not get
executed in the log).  It does not get to the next step in the workflow.
I can still see the method has the T or F in Imagefound, but it does not
get returned to the workflow (the binding from the task back to the
workflow container).

SAP did respond back that the message has been sent to the developers
for analysis.

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

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Mike Pokraka
Sent: Friday, February 29, 2008 8:35 AM
To: SAP Workflow Users' Group
Subject: RE: Results Processing step not working in Workflow

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


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


****************************
CONFIDENTIALITY NOTICE: The information contained in this message may be confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message, any part of it, or any attachments. If you have received this message in error, please delete this message and any attachments from your system without reading the content and notify the sender immediately of the inadvertent transmission. Thank you for your cooperation.




More information about the SAP-WUG mailing list