help on container elements
Hill, Anna
anna.hill at sap.com
Fri Dec 2 07:49:45 EST 2005
You write the code before you call SAP_WAPI_CREATE_EVENT, so it would
look something like this (this actually uses SWE_EVENT_CREATE but it's
exactly the same principle), where param_1, 2, 3 are parameters defined
on your event on your object:
swc_set_element container 'Param_1' l_param1_value.
swc_set_element container 'Param_2' l_param2_value.
swc_set_element container 'Param_3' l_param3_value.
* Trigger workflow
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = l_object
objkey = l_key
event = l_event
IMPORTING
event_id = lc_evtid
TABLES
event_container = container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
RAISE error_by_trigger.
ELSE.
COMMIT WORK.
ENDIF.
Anna Hill
SAP Netweaver Technology
SAP (UK) Ltd
Clockhouse Place, Bedfont Road,
Feltham, Middlesex TW14 8HD
T +44 (0)20 8917 6125
F +44 (0)20 8917 6461
M +44 (0)7966 975125
E anna.hill at sap.com
-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of vijay srikanth
Sent: 02 December 2005 12:14
To: sap-wug at mit.edu
Subject: RE: help on container elements
Hi,
So what you're saying is that I keep these event parameters defined in
my
event.
When I run the FM SAP_WAPI_CREATE_EVENT, if I pass these element names
and
the values,
the event parameters get populated automatically. Where do I have to
write
the piece of code then. I'm actually calling the event from an FM
SAP_WAPI_CREATE_EVENT.
Regards,
Vijay
>From: "Hill, Anna" <anna.hill at sap.com>
>Reply-To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
>To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
>Subject: RE: help on container elements
>Date: Fri, 2 Dec 2005 12:47:07 +0100
>
>Hi Vijay
>
>The container table is for you to raise additional parameters when your
>event is published, so it depends on what information you want to raise
>with your event. If there are event parameters defined on your event,
>then you need to use the following to set them when the event is
raised:
>
> swc_set_element container 'Event_parameter_name' l_parameter_value.
>
>Cheers
>Anna
>
>Anna Hill
>SAP Netweaver Technology
>
>SAP (UK) Ltd
>Clockhouse Place, Bedfont Road,
>Feltham, Middlesex TW14 8HD
>
>T +44 (0)20 8917 6125
>F +44 (0)20 8917 6461
>M +44 (0)7966 975125
>E anna.hill at sap.com
>
>
>-----Original Message-----
>From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On
Behalf
>Of vijay srikanth
>Sent: 02 December 2005 11:12
>To: sap-wug at mit.edu
>Subject: help on container elements
>
>Hi,
>
>I've only sparingly used the FM SAP_WAPI_CREATE_EVENT.
>There's a table in this FM that has input container values.
>Should I pass the container names as attributes of the business object
>and the corresponding values to this table and call the FM. Thanks in
>advance for the help.
>
>
>Regards,
>Vijay
>
>
>_______________________________________________
>SAP-WUG mailing list
>SAP-WUG at mit.edu
>http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>_______________________________________________
>SAP-WUG mailing list
>SAP-WUG at mit.edu
>http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
More information about the SAP-WUG
mailing list