| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
MESSAGE xxxx RAISING xxxxBy Suresh Kumar Parvathaneni In
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. For
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 In
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. Now,
instead of raising the exception using RAISE EXCEPTION, we would use the
following statement: MESSAGE
E309(06) with ‘xxx’ Raising XXXX. Using
the above statement is similar to the usage of RAISE EXCEPTION, except for:
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
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 |
||