cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure fault exception

Former Member
0 Kudos

I have a scenario rfc to soap,even if the input data from rfc is worng or unauthorised than inspite of rfc going to dump,i want a msg like unauthorised even the scenario is failed..i think this can be possible by creating fault exception error....

I have an error in moni this error is because of unauthorisation...

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!-- Call Adapter --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"> <SAP:Category>XIAdapter</SAP:Category> <SAP:Code area="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code> <SAP1 /> <SAP2 /> <SAP3 /> <SAP4 /> <SAP:AdditionalText>soap fault: [Security:090304]Authentication Failed: User javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User denied</SAP:AdditionalText> <SAP:ApplicationFaultMessage namespace="" /> <SAP:Stack /> <SAP:Retry>M</SAP:Retry> </SAP:Error>

In Message monitoring

SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: [Security:090304]Authentication Failed: User javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User denied

Can any please tell me how to configure fault exception in my scenario...

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

Go thro the following links for knowing things about Fault Messages.

http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm

hope this helps.

regards,

P.Venkat

Former Member
0 Kudos

Thanks for the response,if not for this scenario in general for any scenario how to use fault exception in repository they were any weblogs on fault exception..

Thanks

ram

Former Member
0 Kudos

Hi Ram

Execptions means value of SY-SUBRC returned from an function module .

that we can set in Function module by using raise exception for that perticular condition after declaring it in exception tab .

Hope it will help you

Regards

Siddharth

Former Member
0 Kudos

Hi

You can use XI fault Messages only on the Inbound side. So if u r doing RFC -> SOAP then u have to handle exceptions using RFC only.

And i have read in a thread that Fault messages are useful mostly in proxy sceanrios. Check out in the Forums about fault messages. u will get a clear idea.

regards,

P.Venkat

Former Member
0 Kudos

Hi

I Think you should try to create exceptions in your RFC enabled Function Module in SAP only .

regards

Siddharth

Former Member
0 Kudos

Hi,

For avoiding the RFC in going into dump, you have to raise exceptions in your RFC itself so that if the call is unsucessful the RFC does not go into dump.

regards

vijaya