Skip to Content
Dec 21, 2020 at 01:16 AM

Make respounds message to sender system in message mapping

63 Views Last edit Dec 23, 2020 at 09:03 AM 5 rev

Hi experts.

I am trying to add a customized authority check in PI system, request message will go into receiver system as expect only if authority check passed.

Now I am doing as:

1. create a RFC in ABAP client containing the customized authority check logic, and RFC will return 'S' for success, 'E' for error

2. use the RFC in message mapping as a RFC lookup

3. only when RFC loopup get 'S', then the request message will go into receiver system as expect;

if RFC lookup get 'E', I want to interface stopped and make a friendly feedback in a customized format to sender system.

Just liks this pic:

if RFC lookup get 'E', the messge will not go futher into receiver system, and PI system will make the return message by itself.
the message will always be: { "RETURN": { "MessageType": "E", "MessageText": "Authority check failed" } }

Now I dont know how to make PI to generate the custom formatted return message to sender system.

and don`t know if it is the right way to achieve the requirement.

Pls help me out.


pi-issue.jpg (89.6 kB)