cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of Fault message in XI

Former Member
0 Kudos

Hi,

I am using BAPI_PO_CHANGE which does not raise any exceptions.

After importing BAPI_PO_CHANGE in XI it does not displays any fault message structure as it does not throw any exception.

But i want to send a fault message whenever

the return table BAPIRET2 has an entry with type = ‘E‘.

Is there any possible way to do this.

Regards,

Bhavish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In general in BAPI you shouldn't have any exceptions. All errors are returned in RETURN structure.

Remember to add commit parameter in your Communication channel. Because BAPI need explicit commit.

Regards,

Wojtek

Former Member
0 Kudos

Hi,

BAPI do not have exceptions.

Alternative;

1. Create a wrapper of RFC around the BAPI

2. Use the advance mode functionality of the RFC adapter;

http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm

Regards

Vijaya