on 04-14-2006 3:51 PM
Hi,
I want to trigger a business object event from a program. Is there a way to do it.
Thanks,
Sri.
Hi Sri,
Use FM : SAP_WAPI_CREATE_EVENT
Pass parameter OBJECT_TYPE, OBJECT_KEY and EVENT.
Thanks,
Ask.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
yes you can do that...
check this..
objkey = '00000000000000'..
* SET THE WORK FLOW CONTAINER
clear l_text.
concatenate 'Exception on Invoice for PO# ' l_porder into l_text.
swc_set_element my_container 'PurchaseOrder' L_pORDER.
swc_set_element my_container 'IdocCreateDate' V_CREDAT.
swc_set_element my_container 'RepId' l_repid.
swc_set_element my_container 'Message' l_text.
if l_order = ' '.
swc_set_element my_container 'Agent' 'A 50003012'.
else.
swc_set_element my_container 'Agent' ''.
swc_set_element my_container 'SalesOrder' l_order.
endif.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
OBJTYPE = OBJTYP
OBJKEY = OBJKEY
EVENT = WFEVENT
TABLES
EVENT_CONTAINER = MY_CONTAINER
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1
OTHERS = 2.
if sy-subrc = 0.
commit work.
endif.
But you should have an event configured , check in SW01.
Regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Use the Function Module SWE_EVENT_CREATE to trigger an event.
Regards,
Nagaraju Chidurupalli
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 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.