on 2007 Jul 09 8:52 PM
Hi All,
I'm looking for a way to trigger a workflow from ABAP code. Apparently, the FM swe_event_create will do this. But when I try it by onli giving the object-key with (ebeln), I receive an error saying that there are parameters of the container missing.
I wonder how I can give these values to the container. I tried to search the forum and google, but the answers were a bit complicated and unclear. Can anyone help me on this ?
thanks !
First I would recommend that you use SAP_WAPI_CREATE_EVENT instead of the old function module SWE_EVENT_CREATE.
If you do that, filling the event container is pretty straightforward. No need to use the macro SWC_SET_ELEMENT, because the container for SAP_WAPI_CREATE_EVENT is a simple key (element) & value list.
If you don't know which container elements to fill, check the event definition to see if it has any parameters. That should be the place to look, but if the error message comes from the workflow rather than the function module you should also check the workflow to see which container elements are required (and check how they are filled from the triggering event).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.