Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8338

Duplicate check while mapping

$
0
0

Hello,

 

I have a source message with 2 fields headerID and DetailID.

 

The target is an IDoc structure with below snippet.

 

Segment E1E337

     HeaderID

      Sub-Segment E1E440

          DetailID

 

HeaderID and DetailID in the IDoc segments are mapped to the sources structure fields accordingly.

 

When there are 6 messages, I am able to see an IDoc with 6 E1E337 segments. This works fine.


I need to insert the following logic:

Check and create the segment E1E337 as long as the values of HeaderID and DetailID are unique. There should not be two E1E337 segments which have the same value for HeaderID and DetailID.

 

I think this needs a UDF. Can someone assist as to how this needs to be done.

 

Thanks,

Murali


Viewing all articles
Browse latest Browse all 8338

Trending Articles



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