|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Handling Type 'E' messages from function modules
By Rahul Gopinath, Wipro Technologies
function module L_TO_CREATE_DN is used for Transfer Order creation. We were
facing the issue of abnormal termination of the program when an Error Message
was being thrown from the function without the RAISING statement. Since an
Exception was not being raised we were not able to handle the same in our
program and it lead to abnormal termination with a Type 'E' message in the
Error Message without RAISING
termination of the program with the Error Message
Error Messages from standard function modules can be handled in our ABAP
programs in the same way as we handle Exceptions from function modules and we
can continue the execution of the program without the Error Message terminating
call the function module by adding the statement
ERROR_MESSAGE = Any No.
in the EXCEPTIONS part of the function module call.
mentioned above will be the value of sy-subrc when the control is
returned back to the program after the execution of the function module with an
And now we can simple
handle that Error Message
sy-subrc EQ 17.
“code to handle the error message
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards