This website is not affiliated with, sponsored by, or approved by SAP AG.

RFC Exception not be able to catch

All postings related to SAP XI

Moderators: Snowy, thx4allthefish

RFC Exception not be able to catch

Postby KAFFUNMAN » Tue Nov 16, 2010 5:19 am

Hi, experts

I'm doing File <-> RFC (sync mode) scenario and intend to catch defined exception from RFC. However, it doesn't work currently and not sure the root cause..
The steps I performed were as below (PI 7.1 SP2):
1. Implement exception in RFC called y_abc (Currently define INTERFACE_NO_RANGE_ERROR and OTHER)
2. Add y_abc.exception both in sender and receiver Service Interface error part
3. Create Message Mapping (Source and destination)
4. In operation mapping, assign message mapping for Source/Target Fault Message (Under Error Tab)

Is there any steps wrong or setting I missed?
Thanks in advance~

KF
KAFFUNMAN
 
Posts: 7
Joined: Mon Nov 15, 2010 2:52 am

Re: RFC Exception not be able to catch

Postby Baz » Tue Nov 16, 2010 5:40 am

how have you created it in the RFC? is it RFC to SAP? is it a BAPI? or Proxy? if so you have to map the correct structure to the Error, so you have import, export and error mapped.
Baz

AsPiRiNg tUlY iDiOt Image

http://www.catb.org/~esr/faqs/smart-questions.html

Image

check out my Podcasts http://dj-baz.podomatic.com
Baz
 
Posts: 4736
Joined: Fri Nov 08, 2002 5:54 am
Location: He's out there! somewhere!!!!

Re: RFC Exception not be able to catch

Postby KAFFUNMAN » Wed Nov 17, 2010 5:19 am

Hi Expert,

In SAP RFC development,
under import tab, one parameter called receivecode,
under export tab, one parameter called sendcode,
under RFC Exceptions tab, define 1 exception called RANGE_ERROR.
My sample code is as below
Code: Select all
  IF receivecode = 'A'.
    raise RANGE_ERROR.
  ENDIF.
  sendcode = 'OK'.

However, I can got response data but still can't catch exception "RANGE_ERROR"
when I input receivecode = 'A'.

Any clues?

KF
KAFFUNMAN
 
Posts: 7
Joined: Mon Nov 15, 2010 2:52 am

Re: RFC Exception not be able to catch

Postby KAFFUNMAN » Thu Nov 18, 2010 4:12 am

Hi,

The problem was solved~

Thanks anyway~
KF
KAFFUNMAN
 
Posts: 7
Joined: Mon Nov 15, 2010 2:52 am

Re: RFC Exception not be able to catch

Postby Gothmog » Sat Nov 20, 2010 1:55 pm

Care to share what was wrong ?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to SAP Process Integration (SAP PI/XI)

Who is online

Users browsing this forum: No registered users and 2 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.