Skip to Content
0
Former Member
Oct 14, 2006 at 12:25 PM

outcomes of a method in business object workflow

70 Views

Hi Gurus,

I am using the following code in method of my object type.

IF SY_SUBRC <> 0.

CASE SY_SUBRC.

WHEN 1.

EXIT_RETURN 9001 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 2.

EXIT_RETURN 9002 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 3.

EXIT_RETURN 9003 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 4.

EXIT_RETURN 9004 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 5.

EXIT_RETURN 9005 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 6.

EXIT_RETURN 9006 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 7.

EXIT_RETURN 9007 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 8.

EXIT_RETURN 9008 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

WHEN 9.

EXIT_RETURN 9009 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.

This results in a number of outcomes(which is what i want) if i use this method in my task and in turn use it in my workflow step.

I am required to define this exceptions in the method level can any body tell me how to define these exceptions at object method level ?

Can any of you gurus help me out on how to do this.

Regards

Narendiran Rathinavelu