How to implement: Exception class CX_BO_TEMPORARY thrown

Dave Weston Dave.Weston at clockwork.ca
Tue Apr 22 10:13:27 EDT 2008


Hi Florin,

Yes on my current project (ECC 6.0) we have just implemented the exception class CX_BO_TEMPORARY to handle a locked employee situation. Seems to be working fine from RSWWERRE. We have also used non temporary exceptions with our own exception class.

Just defined the exeption against the method and raised it in the code:

        emplcontextstatus = 'L'.                   "employee locked flag
        IF counter >= 5.
          RAISE EXCEPTION TYPE cx_bo_temporary.
        ELSE.
          counter = counter + 1.
          CONTINUE.
        ENDIF.

Cheers
Dave


-----Original Message-----
From: sap-wug-bounces at mit.edu on behalf of Florin Wach
Sent: Tue 4/22/2008 9:13 AM
To: SAP Workflow Users' Group
Subject: How to implement: Exception class CX_BO_TEMPORARY thrown
 
Hi Wuggers,

I have a simple method that declares as exception class the
CX_BO_TEMPORARY
and throws this by using the statement
RAISE EXCEPTION TYPE CX_BO_TEMPORARY.

In the workflow pattern I can see this particular outcome. So all seems to be fine.

When the work item is executed (in background) it keeps it's status "in work", which is fine, as the excecution isn't repeated 3 times, yet, which usually should set this temporary error into a permanent one.

What happends is, that not error message is logged (in the detailed log of the workflow), nor is it picked up by the report RSWWERRRE.

The system log doesn't gives me a clue about uncaught exception or something, so I'm wondering, if someone did use the exception classes successfully  (under ECC 7.00)


Best wishes,
Florin
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3497 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20080422/c6ede468/attachment.bin


More information about the SAP-WUG mailing list