Task value in Rule FM

Gardiner, Keith (CIS) Keith.Gardiner at capita.co.uk
Wed May 23 10:25:17 EDT 2007


Hi,
 
We are on Basis 620 system R3 4.72.
 
This seems fairly basic to me but I can't get it to work (:.
 
I am trying to get the value of the current work item task (TS91nnnnnn)
into a function module for Agent Evaluation for the dialog step the task
is attached to.
 
I have created a Workflow Container element defined as BOR Object Type -
WORKINGWI - Import / Export.
 
I have created a Rule Container element defined as above - Import only.
 
I am binding ' _WORKITEM' from the Step to the Workflow Container
element defined above.
 
I am binding the Workflow Container element to the Rule Container
element.
 
Within the Rule FM I have the following code:
==========================================================
 
INCLUDE <cntn01>.
 
DATA:
l_initiator TYPE wfsyst-initiator,
l_contract TYPE zrcmt_wf0001-contract,
l_route TYPE zrcmt_wf0003-zzroute,
l_claim TYPE iclactivity-claim,
l_subclaim TYPE iclactivity-subclaim,
l_activity TYPE iclactivity-actnumber,
l_iclact TYPE swc_object,
l_key TYPE key,
l_task1 type sww_task,
l_rule_wi TYPE swc_object.
 
* convert persistent container to runtime container
swc_container_to_runtime ac_container.
 
swc_get_element ac_container 'INITIATOR' l_initiator.
swc_get_element ac_container 'CONTRACT' l_contract.
swc_get_element ac_container 'ICLACT' l_iclact.
swc_get_element ac_container 'ROUTE' l_route.
swc_get_element ac_container 'RULE_WI' l_rule_wi.
 
swc_get_object_key l_iclact l_key.
 
swc_get_property rule_wi 'WorkitemTask' l_task1.
 
================================================================
 
On execution l_rule_wi is empty (RULE_WI) being the Rule Container
element.
 
I suspect I'm doing something really dumb here but I cannot see what.
 
Please help before I go mad ):.
 
Regards
 
Keith Gardiner
SAP Development and Support
 
 

This email and any files transmitted with it are confidential, and may be subject to legal privilege, and are intended solely for the use of the individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may not peruse, use, disseminate, distribute or copy this message. Please notify the sender immediately and delete the original e-mail from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070523/e8135ff3/attachment.htm


More information about the SAP-WUG mailing list