cancel
Showing results for 
Search instead for 
Did you mean: 

SID missing in notification in Tech MON setup Job monitoring

Former Member
0 Kudos


Hi

I am unable to get SID in subject when i recive email notification for managed ABAP or BW job configured

in solution manager, but when we manully try to give and save setting we are grtting it for only one job

please suggest how to get SID in SUbject when we do configration

Is there any way we can get Failed  ABAP Job log content in email that triggers for failed JOB ?

Regards

Rajiv

Accepted Solutions (1)

Accepted Solutions (1)

benu_mariantony2
Participant
0 Kudos

Hello Rajiv,

I am Benu working in the Development Team of SAP Solution Manager.

To get the SID and Client, please use the following API,

DATA(lo_mon_obj) = mo_config_factory->get_mai_bpmon_mon_object( <lv_context_id> ).
lo_mon_obj->get_sid( ).

lo_mon_obj->get_client( ).

Let me know in case of any questions

Regards,
Benu

Former Member
0 Kudos

Hi Benu

Thanks for your response

Can u please tell in which API or interface  we need to rite the above code you mentioned

Regards

Rajiv

benu_mariantony2
Participant
0 Kudos

Hello Rajiv,

you need to implement the BAdI "BADI_DYN_INCI_NOTIF"

Regards,
Benu

Former Member
0 Kudos

Hi Benu

To which object (Class/Interface) mo_config_factory is referring

can you please let me know


Thanks in advance


Regards

Rajiv

Former Member
0 Kudos

Hi Benu

We are able to get Monitored object SID , Thank you so much for your support

Can you please let us know how to capture monitored ABAP  JOB system log in Email notification \

Thanks to all for your valuable contribution

Regards

Rajiv

benu_mariantony2
Participant
0 Kudos

mo_config_factory = cl_bpmon_mai_service_config=>get_mon_object_factory( ).

benu_mariantony2
Participant
0 Kudos

Hello Rajev,

At this moment Job Monitoring does not support sending the Job Logs as a email notifications.

However In the BAdI implementation, you will get the Job Name & Job Count (This would be available as a metric path)
using this you could read the Job Log from SM37 transaction (using a standard FM) & prepare a HTML page/ email content

let me know for more information

Regards,
Benu

Former Member
0 Kudos

Thank you Benu..

Answers (1)

Answers (1)

prakhar_saxena
Active Contributor
0 Kudos

Hi Rajiv,

You can check my blogs below which covers steps

Hope this resolves.

Thanks

Prakhar

Former Member
0 Kudos

Hi Prakhar

Thanks for info , step : configure manually is performed and same as mentioned in documentation

but unable to get desired SID

Can u please suggest where else i can check

Regards

Rajiv

rishav54
Active Contributor
0 Kudos

Hi Rajiv

Alert names are predefined settings for the particular template for particular system, you can not automate to pick the SID automatically, you had to provide the system SID in the template itself.

thanks

Rishav

prakhar_saxena
Active Contributor
0 Kudos

Hi Rajiv,

did you perform all the settings as per below link

this will solve your issue, please check and confirm

thanks

Prakhar

Former Member
0 Kudos

Hi Prakhar

Thank you for quick response

I am getting alerts with SID in subject for other metrics which are done when managed system configuration , But when specific to Job monitoring setup and BI monitoring Setup where we add ABAP jobs from System and save  Monitored object name these jobs are getting notified

as RED: ABAP JOB/ BW Process Chain name : ABAP JOB / BW Process chain

in this format alert is triggered and SID information is missing

Template that we need to create is for individual system specific ?

we have already a template with all settings as mentioned

Do ineed to create a new custom template for JOb monitoring setup for each specific system

Regards

Rajiv

Former Member
0 Kudos

Advanced settings option for custom subject is not editable and is there any need of badi to get details

please check below screen shot

mannisch
Member
0 Kudos

Hi Prakhar,

is it possible to get the SID, Managed Object, Rating and Name in the subject of the alert mail?

SID runs with $SID$ but the others, I can not find out which variable name they have.

Thanks for your answer.

Best regards,

Manfred