Application Development and Automation 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: 
Read only

WE05 - run background

Former Member
0 Likes
2,306

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

1 ACCEPTED SOLUTION
Read only

tushar_shukla
Active Participant
1,644

Check the report RSEBWE02 .

9 REPLIES 9
Read only

Former Member
0 Likes
1,644

Create a variant and then a job via tcode SM36 using the program RSEIDOC2. Run it.

Read only

0 Likes
1,644

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

Read only

tushar_shukla
Active Participant
1,645

Check the report RSEBWE02 .

Read only

0 Likes
1,644

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

Read only

0 Likes
1,644

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.

Read only

0 Likes
1,644

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

Read only

0 Likes
1,644

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.

Read only

0 Likes
1,644

Hi Tushar,

Thank you so much for your help. These are good info.

Joyce

Read only

Former Member
0 Likes
1,644

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?