Getting a data value from the container
Dave Weston
Dave.Weston at clockwork.ca
Thu Jul 7 10:54:11 EDT 2005
Hi Rhonda, how is the import parameter of your method defined. Does the name match that in the swc_get_element statement ? First thing to check I think.
Cheers
Dave
________________________________
From: sap-wug-bounces at mit.edu on behalf of Rossman, Rhonda
Sent: Thu 7/7/2005 10:39 AM
To: sap-wug at mit.edu
Subject: Getting a data value from the container
Hi,
I am very new to the Workflow world and I'm having a problem getting the value of a field in the container. The field is a standard one, StatusNotApproved. Here's my code.
begin_method abc changing container.
DATA: f_value(1) TYPE c,
r_roleid LIKE zrole_struc-roleid,
f_not_approved LIKE swceditor-objstatus.
CLEAR: f_value, r_roleid, f_not_approved.
swc_get_element container 'Notify_flag' f_value.
swc_get_element container 'RoleID' r_roleid.
swc_get_element container 'StatusNotApproved' f_not_approved.
CALL FUNCTION 'Z_SEND_EMAIL'
EXPORTING
notification_id = object-key
role_id = 'AUT'
process_completion = 'X'
noti_type = f_value
noti_roleid = r_roleid
notify_mgr_complete = 'X'
reject_flag = f_not_approved.
I've set a breakpoint before the call to the function module, and the value of f_not_approved is always initial, even though I can see an 'X' in the container. Can anyone offer some advice?
Thanks,
Rhonda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 36004 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20050707/1221d1fa/attachment.bin
More information about the SAP-WUG
mailing list