10-23-2008 4:46 PM
HI,
We have a scenario where a backround job is scheduled by the user and an idoc is sent to XI from background.
We need to send a mail at the end of pocess to the user who scheduled the job.
Can u tell me how can I retreive the username of the user who scheduled the background job from within the job.
Regards,
Tarun bahal
10-23-2008 4:54 PM
10-23-2008 5:04 PM
There is a option for the Spool List Recipient while scheduling the job.
Go to SM36
Here you will find a button for "Spool List Recipient"
Specify the user name for the receipient.
Regards
Naimesh Patel
10-23-2008 5:34 PM
Thanx
But we want to send a notificvation to the creator of the background job by default.
in future we do want to use sm36 and create transactions which will in turn schedule the job in background.
so does anyone know the tabvles where the details of the background jobs are stored.
can i use table TBTCO. but how do i find out the job name from withion the job,.
Regards
10-23-2008 5:38 PM
If you creating the job from the program using the FM JOB_OPEN, JOB_CLOSE; than it would be more easy to send the notification back to the receipient.
JOB_CLOSE FM has the parameter RECIPIENT_OBJ which will accept the Receipient details.
Regards,
Naimesh Patel
10-23-2008 5:56 PM
If i am not wrong then the user name entered in the receipient field gets a notification containing the spool list.
in the current scenario no spool is generated but an IDOC is created. and an email had to sent stating that IDOC has been processed to an external mail.
10-24-2008 4:38 PM