Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

alert message for job failed in sm37

Former Member
0 Kudos

Hi,

I have kept employee transfer report in background .

if job fails, say system is down.....it should alert the user with "employees which has not been updated in the system".

so that the same can be run manually.

Kindly let me know what is the best way to resolve the above.

Regards,

Rachel.

5 REPLIES 5

Former Member
0 Kudos

Hi ,

What you can do is ,

1> when job gets run successfully , Export a flag = Y in memory.

2> If job fails then Export a flag = N in same memory.

3> You will have aseperate program running in background who will keep on reading this status at some time interval. Or if possible for polling , user can execute some transaction zabc to see the status and in that transaction this program will get executed which will read this flag, If this flag is N then show the status message to User about this. along with the Flag you can aslo Export and Import Employee Name/No and show that in message upon failure.

Hope this is helpful.

Regards,

Uma Dave

Former Member
0 Kudos

Through program, how will i find out job has run successfully?

Regards,

Rachel

0 Kudos

Hi,

Inside the program you can call the function module '/BDL/_READ_JOB_STATUS' to read the status of the job.

Hope this helps.

Regards,

Mansi

0 Kudos

You can any time read the status of the job.

Regards,

Uma Dave

Former Member
0 Kudos

I have tried the Fm "/BDL/_READ_JOB_STATUS" , but i am not getting any output.

Is there any other function module which will give me about job failed in sm37.

Regards,

Rachel