01-04-2011 6:36 PM
Hi all,
In WE05, in you go to menu 'Program', you see option like 'Execute'. The 'Execute and Print' option and
'Execute in Background' are greyed out.
I like to run this program in the background as i need to read to status of the idocs that are flagged 51 with errors, then send an email out.
Have anyone come across on how to set this WE05 to run in the background ?
thanks
Joyce
01-04-2011 8:58 PM
01-04-2011 7:00 PM
Create a variant and then a job via tcode SM36 using the program RSEIDOC2. Run it.
01-04-2011 7:36 PM
Hi,
I did as you stated but the job got cancelled. I got an exception condition :CNTL_ERROR' raised.
A raise stmt in program 'CL_Gui_custom_container' raised the exception.
thanks
Joyce
01-04-2011 8:58 PM
01-04-2011 9:41 PM
Hi Tushar,
I could run this in background. It provides the idoc number. This is good. However i still like to get detail info about the error 51 and the error from the idoc segment.
Would you know if there are any user exit i can modify this program to the the error and idoc details ?
I also like to send an email out with the error details. Do you think it is possible to modify this program ?
thanks
Joyce
01-04-2011 11:34 PM
That's the shortcoming of this report; it does not retrieve the data from EDIDS table.
You can copy this report into a custom report and then retrieve the status message from EDIDS table. There can be multiple status record for given idoc;you can pick latest one which have highest counter.
01-05-2011 3:31 PM
Hi Tushar,
That report may work for me. What is the different between WE02 and WE05 ? They looked the same to me.
Besides the status record, i have to go to specific segment where the error is. There is no direct access to these segment.
Can i also asked : Since i need to send an email about the errors from the idoc, i need to convert this list into pdf first.
Would you know of any FM to convert the list to pdf ?
thank you !
Joyce
01-05-2011 4:02 PM
There is no difference between WE02 and WE05;the underlying report for both of them is same.
You will get the status records from EDIDS table and then you can pick the desired status record among the retrieved records EDIDS based on your criteria e.g. Error record, latest record.
Search the forum and ABAP wiki for PDF requirement, you will get the answer.
01-05-2011 5:39 PM
Hi Tushar,
Thank you so much for your help. These are good info.
Joyce
05-19-2020 1:51 PM
Hi,
Even I scheduled job in SM36 using the program RSEIDOC2, and got an an exception condition :CNTL_ERROR' raised. A raise stmt in program 'CL_Gui_custom_container' raised the exception.
Was this issue addressed and how? Do we need to apply any note for this?