Created Task/Method is not working

Ulrich Mende wug at mende-edv-beratung.de
Wed Mar 20 03:00:13 EST 2002


Hi Weidong-
I think, your task does not need a return value, because you don't put
any value in field ZMM_ASSIGN_DLI before giving it back to the workflow
via RESULT.
The true result of your calculation is coming thru container field
ADDRESS, isn't it? So I would switch the result flag of, delete the last
line before the END_METHOD statement.
If it still will not work, you could switch the "instance independent"
flag off too, transfer the object reference but not use it in the
method.
 
Best regards Uli
 
Weidong Yang <weidong4sap at hotmail.com> schrieb am 19.03.2002, 21:10:37:
> Dear WF expert,
>
> I got following issue:
>
> 1) I created an object type which is subtype of BUS1001006
> 2) I added a method to it. The method is instance independent. I added
> follwoing codes
> BEGIN_METHOD ZMM_ASSIGN_DLI CHANGING CONTAINER.
> DATA:
>       plant   like marc-werks,
>       mattype like mara-mtart,
>       address like sood-objnam,
>       ZMM_ASSIGN_DLI(255).
>
> SWC_GET_ELEMENT CONTAINER 'Plant' PLANT.
> SWC_GET_ELEMENT CONTAINER 'MatType' MatType.
>
>   if mattype = 'ZERP'.
>      address = 'SHIPMAT'.
>   elseif mattype = 'ZERB'.
>      address = 'PRODCAT'.
>   endif.
>
>   SWC_SET_ELEMENT CONTAINER 'ADDRESSNAME' ADDRESS.
>   SWC_SET_ELEMENT CONTAINER RESULT ZMM_ASSIGN_DLI.
> END_METHOD.
>
> 3) I created 3 containers for this task: MATTYPE, PLANT, ADDRESSNAME
>
> 4) I created a workflow udsing this task and a send email task after this
> task.
>
> I want to use this task to assign the distribution list to the receipient's
> name and then using send email function to send emails to the distribution
> list.
>
> I am using Event trigger to trigger my workflow.
>
> The result looks like that the Method I created was not working at all.
> What's wrong?
>
> I will greatly appreciated, if anyone of you can give me some hits.
>
>
> Regards,
>
>
> Weidong
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
 


More information about the SAP-WUG mailing list