on ‎2010 Sep 13 10:19 AM
G'day
Last friday I changed my FM call from SWE_EVENT_CREATE_FOR_UPD_TASK to SAP_WAPI_CREATE_EVENT
Now the parameter "Spec" won't follow the event-call which causes Wrong workflow to be created.
IF bkpf-bktxt(4) = '1234'.
swc_set_element lt_container 'Spec' 'X'.
ENDIF.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
OBJECT_TYPE = gc_obj_bkpf
OBJECT_KEY = lv_obj_key
EVENT = gc_ev_pr_created
COMMIT_WORK = 'X'
TABLES
INPUT_CONTAINER = lt_container.
* CALL FUNCTION 'SWE_EVENT_CREATE_FOR_UPD_TASK'
* EXPORTING
* event = gc_ev_pr_created
* objtype = gc_obj_bkpf
* objkey = lv_obj_key
* TABLES
* event_container = lt_container.
*Do you have any suggestions..
Best reg
Henrik
Request clarification before answering.
You should give yourself some points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems like the two uses different declarations of the container...
SWR_CONT / SWCONT
...need to check that...
/H
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.