cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous Inbound Proxy & cl_proxy_fault=>raise

Former Member
0 Kudos

Hi there.

I seem to be having difficulty passing the BAPIRET data from a bapi to my exception that I raise within my proxy. The sample code is below:

CALL FUNCTION 'BAPI_ISUPARTNER_GETDETAIL'

EXPORTING

partner = '12345'

IMPORTING

return = lw_return.

APPEND lw_return TO lt_return.

CALL METHOD cl_proxy_fault=>raise

EXPORTING

exception_class_name = 'ZZCX_ZTSX_BUPA_CRE_CHNG_EXCEPT'

bapireturn_tab = lt_return.

I purposely want this to fail and it does returning an error message to the lw_return structure. This is then passed to the raise method. However, the result (this is tested in sproxy) is as below, contains none of the bapireturn information:

- <cls:CX_XMS_SYSERR_APPLICATION id="o1208">

- <CX_ROOT>

<TEXTID>4349F3B101039A42A05904CB12F7FA0E</TEXTID>

<PREVIOUS />

<KERNEL_ERRID />

- <INTERNAL_SOURCE_POS>

<PROGID>212</PROGID>

<CONTID>2597</CONTID>

</INTERNAL_SOURCE_POS>

</CX_ROOT>

<CX_STATIC_CHECK />

- <CX_XMS_SYSTEM_ERROR>

<ID>APPLICATION_ERROR</ID>

<P1 />

<P2 />

<P3 />

<P4 />

<INFO />

<CATEGORY />

<AREA />

<RETRY />

</CX_XMS_SYSTEM_ERROR>

- <CX_XMS_SYSERR_APPLICATION>

<RETRY_MODE>M</RETRY_MODE>

- <FAULT_MSG>

<NAME>ZTSX_BUPA_CRE_CHNG.Exception<;/NAME>

<NAMESPACE>urn:sap-com:document:sap:rfc:functions</NAMESPACE>

</FAULT_MSG>

</CX_XMS_SYSERR_APPLICATION>

</cls:CX_XMS_SYSERR_APPLICATION>

</asx:heap>

</asx:abap>

Am I missing something here? I would appreciate any pointer on this please.

Thanks in advance.

Mick.

Accepted Solutions (1)

Accepted Solutions (1)

SudhirT
Active Contributor
0 Kudos

Hi,

Check the thread

Thanks!

Answers (0)