Hi All,
I am implementing inbound synchronous proxy which has inbound ,outbound and fault message ( same of SAP-PI).
I am calling a FM inside inside the method. All the business logic is coded in the FM which also handles the exception.
The exception raised in the FM is captured in the MESSAGE table of type BAPIRET2.
During testing I found that the exception raised inside the FM( Message Table) is not passed to Fault message
which is in the proxy method( If sy-subrc 0, raise excption type MT_FaultMessage was coded after FM).
I found 5 instance under the Fault message exception.IF_MESSAGEGET_TEXT , IF_MESSAGEGET_LONGTEXT ,IF_AI_APPLICATION_FAULT~GET_RT_FAULT_TEXT,
GET_SOURCE_POSITION and CONSTRUCTOR.
Kindly provide the input how to pass the error text captured in MESSAGE TABLE of FM to the exception message MT_FaultMessage of Proxy
Regards
Alice Rebecca