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~
AsPiRiNg tUlY iDiOt
check out my Podcasts http://dj-baz.podomatic.com
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'.