Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BAPI Error not propagated to Adapter/BPEL layer

subsahuSep 21 2010 — edited Oct 28 2010
Hi All,

I have an issue with invoking SAP BAPIs. Basically when I insert some erroneous request data, the BAPI fails with partner link error
"Error in processing the input document"

Looking at the JCA log files I can find exact details of the error message:

BapiError: Error in document: BKPFF $ PRDCLNT510 BapiError: Missing line item for characteristic line 0000000123
getMessage(): java.lang.Exception: BapiError: Error in document: BKPFF $ PRDCLNT510 BapiError: Missing line item for characteristic line 0000000123 int getError(): Server getAdapterCode(): null getVendorThrowable(): null at com.ibi.sap.SapAdapter20.inProcess(SapAdapter20.java:398)
...
...
Also I can see the correct response returned from BAPI in the log file.
<RETURN>
<item>
<TYPE>E</TYPE>
<ID>RW</ID>
<NUMBER>609</NUMBER>
<MESSAGE>Error in document: BKPFF $ PRDCLNT510</MESSAGE>
<LOG_NO/>
<LOG_MSG_NO>000000</LOG_MSG_NO>
<MESSAGE_V1>BKPFF</MESSAGE_V1>
<MESSAGE_V2>$</MESSAGE_V2>
<MESSAGE_V3>PRDCLNT510</MESSAGE_V3>
<MESSAGE_V4/>
<PARAMETER/>
<ROW>0</ROW>
<FIELD/>
<SYSTEM>PRDCLNT510</SYSTEM>
</item>
<item>
<TYPE>E</TYPE>
<ID>RW</ID>
<NUMBER>621</NUMBER>
<MESSAGE>Missing line item for characteristic line 0000000123</MESSAGE>
<LOG_NO/>
<LOG_MSG_NO>000000</LOG_MSG_NO>
<MESSAGE_V1>0000000001</MESSAGE_V1>
<MESSAGE_V2/>
<MESSAGE_V3/>
<MESSAGE_V4/>
<PARAMETER>CRITERIA</PARAMETER>
<ROW>1</ROW>
<FIELD/>
<SYSTEM>PRDCLNT510</SYSTEM>
</item>
</RETURN>

Is there a way to propagate this response structure(shown in log file) back to the Adapter/BPEL layer rather than having the BPEL fail with a binding fault and insufficient fault message like "Error in processing the input document".

I have observed that in certain case SAP BAPI does return the response structure(at BPEL) with error message. But that's not the case with all scenarios. Is there a way to get around this ?

Regards
Subhankar

Edited by: subsahu on Sep 20, 2010 10:38 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2010
Added on Sep 21 2010
1 comment
996 views