cancel
Showing results for 
Search instead for 
Did you mean: 

EH Generate functions in EM

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member190756
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

ZenonK
Participant
0 Kudos

Hi Sudhan.

2 options come to mind.

1) Create a new tracking-id and assign  to both EH Types then use that in your message.  1 message will update 2 EH types.

2) Use Ruleset standard Activity 'RESEND'..

Good Luck.

Zenon.

Former Member
0 Kudos

Hi,

Can you anyone check and provide the mapping details between EDI 214/315 IDOC (IDOC type EVMSTA02) and EDI 214/315 fields for mapping between IDOC fields and 214 data from EDI 214/315 spec. it would be really helpful.

Thanks

Sudhan

Answers (0)