<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
This could be a a very basic question but no time to debug and find out.<br>
<br>
I am on ECC 6.0 SP15 on Basis 7.0.&nbsp; I have a custom background task for
BUS2012.Release method. The method calls BAPI_PO_RELEASE and raises an
exception based on SY-SUBRC (which is always 0). If the PO is locked
the Workflow goes into error status with the exception and the
following error in the log:<br>
<br>
Work item 000000001475: Object 4500000105 method RELEASE
cannot be executed<br>
Purchasing document RMALEY blocked<br>
Error handling for work item 000000001475<br>
Purchasing document RMALEY blocked
<br>
<br>
(Needless to say the wrong parameter of Lock Owner is used in the error
message)<br>
<br>
However, if I execute the Object method from SWO1 test mode while the
PO is still locked, I don't get an exception but the Return parameter
is populated with the following message:<br>
<br>
<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;">E ME006
User RMALEY already processing Purchase
order 4500000105<br>
<br>
I would like to know how the exception was raised within Workflow while
the actual exception never gets executed within the Object Method. The
exception is raised if I test the task by itself in SWUD. Is this
something to do with BAPI methods?<br>
<br>
This particular exception should have been of type Temporary but SAP
has defined it as Application. I am contemplating on copying the method
and changing the exception type.<br>
<br>
TIA.<br>
<br>
Regards,<br>
</span>Ramki.<br>
<br>
<br>
</body>
</html>