|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Raising exceptions in a method and handling the same in the workflow
By Suresh Kumar Parvathaneni
document details the procedure in defining exceptions in a method and using the
same in a workflow.
us first look at raising exceptions in a method:
Business Object Builder (Transaction SWO1).
the method you have created and click on button “Exceptions” available on
on Create. Following popup screen appears:
information as shown above. The error type “Temporary error” is chosen in
the case wherein the record is locked by somebody else or some required resource
is not available. The error type “Application Error” is to be chosen when
there is no authorization for the document you are processing. The error type
“System error” is to be chosen if there are no values passed for the
Go back to
the main screen.
Now in the
method, provide the following code:
business object and release the same.
executing the method by clicking on Test/Execute (F8). The exception would be
raised as shown below:
the exception raised by the method in the workflow:
Workflow Builder (TCode: SWO1).
task and provide the following details in the new task:
entries and return to the previous screen.
“Outcomes” tab. Here you can observe the exception you defined in your
observed in the observe screen, the outcome is not active by default. If we do
not handle the exception, the work item might go into the error status. Activate
entries and go back to the main screen of Workflow builder. Please ensure that
you have done the agent assignment for this task.
now observe a new branch when the exception is raised. You can define your steps
whenever the exception is raised.
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