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

Error handling in function module MATERIAL_INIT

Former Member
0 Likes
393

Hello All,

I am using the function module MATERIAL_INIT.

I get sy-subrc = 1. In exception handling I am giving an error message with my message. But my message is not coming as an error message its coming as an exit message and I loose control over my transaction. Please suggest how can I handle this.

Thanks in advance.

Regards,

Anju

2 REPLIES 2
Read only

Former Member
0 Likes
360

Hi,

Use the syntax

Message S.... display like 'E'.

return to exit or what ever code u wnat to execute.

If you raise a error message in the middle of the program, the program exits and displays a blank screen.

Shruthi

Edited by: Shruthi R on May 23, 2008 6:51 AM

Read only

Former Member
0 Likes
360

done