|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
MESSAGE xxxx RAISING xxxx
By Suresh Kumar Parvathaneni
general, exceptions in a function module are handled by means of RAISE
EXCEPTION. This sets a return code which is passed back to the calling program.
eg., let us consider an example of a function module SXXXX, which would create a
purchase order with reference to a Purchase Requisition. The import parameter
for this function module is Purchase Requisition number and the export parameter
is the Purchase Order number created here. Assume that after a PR is created, a
material is moved from one plant to another. Now during the PO creation, because
of this mismatch the
a normal case, if there is any mismatch, we generally use RAISE EXCEPTION XXXX.
This would stop the function module from further processing and returns to the
calling program with just the return code. But the calling program would never
know the material number that caused this error.
instead of raising the exception using RAISE EXCEPTION, we would use the
E309(06) with ‘xxx’ Raising XXXX.
the above statement is similar to the usage of RAISE EXCEPTION, except for:
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