Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Handle empty JSON message in REST receiver adapter

$
0
0

Hi Harish,

 

It goes like this.

 

Mapping1 = IDoc -> JSON1

Mapping2 = IDoc -> JSON2

If there is no segment for JSON1 or JSON2, then an empty message is created. I want to stop it in PI without any message. And yes, both are in the same ICO. I can't enter the condition in receiver determination or interface determination since the logic is complex and is based on the fields in the segments at 2/3 levels. So I pass the IDoc to both mappings. If the message is created, then it will flow to the target system. If not, it should not trigger an error in the PI.


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>