Skip to Content
avatar image
Former Member

Abap Proxy exception Handling

Hi guys,

I've implemented the following scenario:

BPM Process where I've got a async receive (from a file receiver), a sync send (to an ABAP PROXY) and a send async (to a file sender).

The scenario is working great, I've catched 'Communication exceptions', and the proxy contemplates the necessary exception throwers too, but I'm now trying to Handle one specific exception. Imagine you force a dump, with a divide by zero in the proxy code...the proxy will dump and the XI gets a mapping exception (like is supposed to).

The exception is:

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>

The thing is, I want to catch this exception on the mapping and handle it, so the bpm process sends the handle response with the file sender.

I've looked to Alessandro Guarneri blog, but it's a little bit different, because I don't want to throw an exception but I'd like to handle it....

Can you guys help me with this question?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 17, 2006 at 10:12 AM

    Hi,

    This will help you

    Inbound ABAP Proxy Trace and error handling

    Handling Exceptions

    ABAP Server Proxies - Fault Handling

    Exception handling in integration processes

    ABAP Proxy and fault messages

    /people/bhanu.thirumala/blog/2006/02/07/abap-proxy--xml-to-abap-transformation

    Regards

    Agasthuri Doss

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2006 at 08:20 AM

    Hey guys....can anyone give me any hint...?

    The divide by zero error is not the one that I've posted before, but

    <SAP:Category>XIProxy</SAP:Category>

    <SAP:Code area="ABAP">DYNAMIC_CALL_FAILURE</SAP:Code>

    <SAP:P1>COMPUTE_INT_ZERODIVIDE</SAP:P1>

    <SAP:P2>ZGDCCL_MI_POST_SAPREQ</SAP:P2>

    <SAP:P3>EXECUTE_SYNCHRONOUS</SAP:P3>

    <SAP:P4 />

    <SAP:AdditionalText>Unable to execute the dynamic application call (kernel error ID COMPUTE_INT_ZERODIVIDE, class ZGDCCL_MI_POST_SAPREQ, method EXECUTE_SYNCHRONOUS)</SAP:AdditionalText>

    <SAP:ApplicationFaultMessage namespace="" />

    Can anyone help me?

    I can catch this exception in the BPM, but only with a general exception text...I wanted to be more specific...is it possible?

    Message was edited by: Gonçalo Mouro Vaz

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Vijaya,

      relating to your first question. Yes, I'm forcing a dump in the function module but I don't know what type of exception is, so that I can catch it.

      I want to catch that exception so that I can raise the ABAP proxy exception, and XI gets it as an exception and not as an error.

      Do you know how can I catch this exceptions?