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

How to continue the batch process?

Former Member
0 Likes
598

Hi, I would like to continue the BATCH process even there has error. Does it work if I change the message from 'E' to 'W'? Or should I change the 'E' to 'I'?

If SY-BATCH = 'X',

LOOP AT gi_messages.

IF gi_messages-zzmsgty = 'W'.

g_message = gi_messages-zzmessage.

MESSAGE <b>e000</b>(z1) WITH gi_vbap-vbeln '-' g_message.

ENDIF.

ENDLOOP.

What is the 'e000'? Is this for 'error'? Do I need to change to other for 'Warning'?

Thank you very much!

Helen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

Hi Helen,

E000 means an error and the program will stop and raise an error message.

If you want to continue the processing, you can use I000 or W000 or S000 instead.

Hope this will help.

Regards,

Ferry Lianto

3 REPLIES 3
Read only

Former Member
0 Likes
523

Hi,

If you want to continue...use the success message..

MESSAGE S000(Z1) WITH gi_vbap-vbeln.

Thanks,

Naren

Read only

Former Member
0 Likes
524

Hi Helen,

E000 means an error and the program will stop and raise an error message.

If you want to continue the processing, you can use I000 or W000 or S000 instead.

Hope this will help.

Regards,

Ferry Lianto

Read only

gopi_narendra
Active Contributor
0 Likes
523

if you want to continue please replace the error 'E' with either a warning 'W' or information 'I' or success 'S' message type.

Regards

- Gopi