on 08-16-2016 5:53 AM
Hello,
Anyone can please share more details about EH Generate functions via config through which we can call our Z function module to execute our custom code before posting event message?
1. Purpose of EH Generate functions in EM - please explain more details
2. When exactly the EH generate functions being called when posting event to event handler?
2. Whether we can generate event handler and post event message by adding our plugin via custom code
3.When exactly the EH generate functions to use in EM. (our config).
4. Any sample code that would really helpful to add custom Z function module code via config
Appreciate your help.
Thank you,
Sudhan
Hi Sudhan,
1. Purpose of EH Generate functions in EM - please explain more details
You have a scenario where you do not have a direct trigger for creating an EH. e.g. a postal scenario. You just get messages and want to create the EH with the first message for your new object.
2. When exactly the EH generate functions being called when posting event to event handler?
It's called at the beginning of Event Message Processing after some initial checks are done (prerequisite is that you have the customizing done in /SAPTRX/TSC0MBF).
2. Whether we can generate event handler and post event message by adding our plugin via custom code
Yes that is the purpose of the function.
3.When exactly the EH generate functions to use in EM. (our config).
As written above you should use if you have a scenario where you just get messages and don't have a trigger for creating the EH directly like in an ERP integration scenario.
4. Any sample code that would really helpful to add custom Z function module code via config
Check the template function module
/SAPTRX/EH_GEN_TEMPL
There are some hints how to use it. It is very similar to the extractor function modules you use in the application system. You have to fill the structures for APPLOBJECTS, Parameters etc.
Best regards,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have a requirement to send one event from one event handler to another event handler which can be controlled via Ruleset of event handler where event was posted. Can you please provide more details for logic in order to send one event posted to one event handler and needs to send to another event handler.Please send sample code that would really helpful.
Best Regards,
Sudhan
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.