cancel
Showing results for 
Search instead for 
Did you mean: 

Return an application exception from RFC

Former Member
0 Kudos

Hi,

my scenario is File -> XI -> RFC.

I want to send by email any application exception returning from the RFC call.

Since this is a Asynch call how do i implement it?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can call your RFC in an RFC wrapper

and check if the inner RFC returns any exception

if it does you can send another RFC (or abap proxy)

with the error message to the XI and then - mail adapter

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Former Member
0 Kudos

Thanks michal,

Since i am new to ABAP , will you call the RFC from the outer RFC back to XI?

Former Member
0 Kudos

Another question,

I see that their is a fault message option when using the Inbound interface Asynch.

How do i use it?

Former Member
0 Kudos

Hi Udo,

can you answer here?

udo_martens
Active Contributor
0 Kudos

Hi Mushon,

ok. If i understood your scenario right, your message flow should be like:

File->BP (asynchronous)

BP<->RFC1 of R/3 (synchronous)

RFC1 <-> RFC2 (synchronous) inside of R/3

BP ->File / email (asynchronous)

Your oringinal RFC is RFC2. Copy it to wrapper RFC1.

Delete there source code and exceptions and put instead export parameter.

For source code use button "pattern" to call RFC2.

Fill the additional export parameters in the exceptions.

All other parameters are taken from RFC1.

Regards,

Udo

Former Member
0 Kudos

My message is only file - > RFC

and then if there is an application error i want to send back

Rfc -> XI -> EMAIL

udo_martens
Active Contributor
0 Kudos

Hi Mushon,

ok, then the 4th message is BP->mail. You need a condition (a switch step) in your BP as you assumedly want only to send a mail if an error occurs.

Regards,

Udo

Former Member
0 Kudos

what is BP?

udo_martens
Active Contributor
0 Kudos

Hi Mushon,

your Business Process

Regards,

Udo

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I am doing like similar scenario, So could you please help me the steps which u did....

Thanx

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Mushon,

I am not sure if this is the exact solution to this , but, how about configuring ALERTS for your scenario.

Whenever an exception / error occurs in your scenario, your alert will be triggered and coreespndingly an email will also be sent via that alert.

Regards,

Bhavesh