cancel
Showing results for 
Search instead for 
Did you mean: 

Alerts - operating system commands

Former Member
0 Kudos

Hi,

How can i configure that when an alert is raised an OS commnad will be executed?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

is it possible to forward alerts to an RFC? or a file?

MichalKrawczyk
Active Contributor
0 Kudos

hi,

of course it is...

you can forward them anywhere as you can send them via mail

Regards,

michal

Former Member
0 Kudos

great - how ?

I have the following scenario:

(MQ)Jms -> XI -> R3

I would like to return a message back to MQ if i get an error (alert). how can i do it?

Thanks,

Former Member
0 Kudos

byt , my customer is using lotus notes so i am not sure that I can use SMTP. am i right?

bhavesh_kantilal
Active Contributor
0 Kudos

Hi ,

Use your alerts to Send an EMAIL.

This can be done in your ALRTCATDEF --> CONFIGURATION ---> SMTP FORWARDING AS XML.

Now, you will get an email as XML .

Create a separate MAIL -- XI -- JMS interface which will collect the Error mails and send it back to your JMS as you want.

Regards,

bhavesh

Former Member
0 Kudos

Thanks but what if i don't have the smtp protocol ?

any other protocol i can use?

MichalKrawczyk
Active Contributor
0 Kudos

hi,

I don't know if mail adapter works with L notes

but you can also try to find a BADI

that gets executed once an altert is created

and invoke an OS command from there (from abap)

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Mushon,

As long as your mail server supports POP3 and IMAP , you can use XI mail adapter

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Mushon,

Also check note : 780154

Regards,

Bhavesh

Former Member
0 Kudos

Thanks,

i read that us also has a API - any idea where to find it?

bhavesh_kantilal
Active Contributor
0 Kudos

Mushon,

<i>read that us also has a API - any idea where to find it?</i>

Can you elaborate further?

Regards,

Bhavesh

Former Member
0 Kudos

I am looking for ome API that will alow me to get the message is sent to email.

how can i write or use the BAdi or Bapi that michal mentioned

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>> I am looking for ome API that will alow me to get the message is sent to email.

what for? once the alert will be sent to mail

you can get it from there (via PO3 protocol and mail adapter) so you'll have the whole alert

>>>>how can i write or use the BAdi or Bapi that michal mentioned

BADI (you can write it as any other BADI)

go to SE18 and search for alert

and maybe there's a badi that will help you

Regards,

michal

Former Member
0 Kudos

I am trying to avoid the mail solution since i am not sure i can use it in this case.

what i would like to do is to have a function that will invoke an RFC instead of the mail solution

Former Member
0 Kudos

In other words i am trying to use the auto reaction mechanizim to invoke an RFC instead of email or SMS

is it posible?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

RFC?

you can invoke an OS command from abap FM

(don't remember the name)

Regards,

michal