on 12-07-2016 8:08 AM - last edited on 02-03-2024 5:53 PM by postmig_api_4
Hi Experts,
Currently I am having problems with raising an event from BTE.
I built a workflow Z and I am using BOR BKPF
event: CLEARINGREVERSE.
Also, I have implemented the BTE 1120 to raise my ZWF:
However, when I process the transaction the wf is not raised, and when I go to trx SWEL it is empty. But I if I execute SWUE or SWUS, the wf is raised. I was thinking the problem is the BTE because I decided to raise the event in a ztest program and it works, my problem is that I need raise the event from the BTE.
What I am doing wrong? Any thoughts would be much appreciated.
Hey guys!!!
thank you very much for you help, I solved my problem.
In sap documentation I found this:
"When a Business Transaction Event occurs the system calls a function module which creates the BOR event. To do this, this function module "converts" the data from the Business Transaction Event into the format suitable for the event and creates the appropriate event for the Business Transaction Event. The function module hence has a parameter interface and implementation which are appropriate for the Business Transaction Event."
So, I decided to implemented the interfaz: SAMPLE_INTERFACE_00001040. Obviously, I copied in a Z before and now my wf is raised and it works perfectly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You use CL_SWF_EVT_EVENT->RAISE_IN_UPDATE_TASK so it will only be executed after a following COMMIT WORK, are you sure the BTE is executed before the transaction COMMIT? (In case of doubt, you could use a class like CL_SYSTEM_TRANSACTION_STATE, methods GET*, to define current state of transaction and depending on the result use RAISE_IN_UPDATE_TASK or RAISE method.)
Also which exact BTE did you process (Process or P/S) To trigger from FI event I usually use P&S modules of the 00001020-00001050 range?
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can check with debugging at the point of raising event.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the process documentation (check in your version, transaction FIBF or BERP)
PROCESS
This process is always reached when all the final checks have been completed before a document is updated. However, at this stage, the document number has not yet been assigned.
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
I am using
SAMPLE_PROCESS_00001120
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.