cancel
Showing results for 
Search instead for 
Did you mean: 

Exception in RFC Lookup

Former Member
0 Kudos

Hi Experts,

I have a query in Graphical RFC Lookup function.

I am working on Pi 7.1 and scenario is File to Idoc.

In the file, material number is coming, and I have to find out the corresponding Customer number from ECC table using RFC Lookup.

I know how to use RFC lookup.

But here issue is, if Customer Number is not maintained in the ECC table for the incoming material number, then exception should be thrown and processing should be stopped at that moment.

Please tell me how to throw this exception and hence fail the mapping.

-Supriya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

I guess you want to fail the message transformation at Message mapping level with Red Error in Monitoring , If LOOKUP return Nothing ...

What You can Do Is , Instead of RFC LOOKUP Function , Use UDF Based RFC LOOKUP , and Inside UDF you can easily raise exception.

Or

In Grapphical Message mapping pass the result from RFCLOOKUP To a 1..1 Target , if during transfermation if 1..1 node will not get any value , so mapping will get failed automatoicaly ..

hope the idea Helps

regards

PS