Question:
Hi,
I have a bussines object ZBKPF and I'm trying to trigger an event from a report with the function SWE_CREATE_EVENT. The function returns with SY-SUBRC = 0 however the workflow is not triggered. My source code is
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
OBJTYPE = 'ZBKPF'
OBJKEY = '00010'
EVENT = 'CREATED'.
Commit Work.
I don't know what happen. Anybody can help me ???
Thanks!!
Answer:
Please check the status of that event. Switch it to release and make sure its not disabled.
Answer:
Hi, try using:
CALL FUNCTION 'SWF_CREATE_EVENT'
EXPORTING
object_type = 'ZBKPF'
object_key = '00010'
event = 'CREATED'
xml_container = xml_container
xml_size = xml_size.
Answer:
Check the event linkage for your workflow is active. Assuming ZBKPF is a subtype for BKPF, object key should consist of Company Code, Document Number and Fiscal Year.
Ramki.
Answer:
Hi,
please switch on event trace and then see what u gets.
another way check event linkage and type linkage if any?
Cheers
P.R.
Answer:
Hi,
Your Key is definitely wrong. As mentioned before it should consist of Company Code, Document, Year. It would look like this for example:
XXXX1600000268ABCD
XXXX is the company code
1600000268 is the doc no.
ABCD is the year (eg2002)