06-22-2010 6:02 AM
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.
06-22-2010 6:56 AM
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
06-22-2010 7:24 AM
Through program, how will i find out job has run successfully?
Regards,
Rachel
06-22-2010 7:32 AM
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
06-22-2010 11:48 AM
06-28-2010 11:03 AM
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