on 10-09-2014 1:43 PM
Hi Gurus,
I need total number of event message posted for Event handler if its exceeds the limit(Example 25 Event Message).I need to trigger an alert.
I hope we can do this by rule set.
1. I got existing event handlers information form the below code
wa_eh_data = i_eai-eh_model->eh_data( it_tables ) .
2.In wa_eh_data-EVMSG i got all the existing event message but not the current one.
3.we get current event message information from i_eai-event_msg
4.we can sum up
Total no of Event message = wa_eh_data-Evmsg( Existing event message) + i_eai-event_msg (Current Event Message)
5.if Total no of Event message > 25 Alert is triggered
6.My concern here is after 25 message.If multiple event message is posted.Mail will get triggered for each message as per rule set.
7.Is there any possibility to control this ? multiple event message ?
Please let me know my approach is correct.
Hi Ram,
If I understand your requirement properly, you want to send Alert only when exceeds 25 but not multiple times.
Doesn't that mean the condition
5.if Total no of Event message > 25 Alert is triggered
should be
5.if Total no of Event message = 26 Alert is triggered
So incase you get more than 26, it wont send alert
Or am I missing something in understanding your requirement ??
Please explain.
Thanks,
Deb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh ok..I got it.
So, for this purpose, you have to probably use a Global Internal table (in global data section of your activity/condition function group) to save the Batch Guid (I_EAI-EVENT_MSG-HDR-BATCH_GUID), Evt ID and say a "Already Processed" flag.
Make an entry in this internal table during the 1st run of the same Batch, if the total count is > 25.
Thanks,
Deb
User | Count |
---|---|
7 | |
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.