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

Message mapping problem

$
0
0

Hi All

 

I have a message mapping problem that I would like help with please:

 

I have a list of rows from a JDBC source that I need to map to an IDOC (ORDERS05)

 

The source file looks like:

 

HeaderID  LineType  Value

1               HDR            NULL

1               LINE1          NULL
1               LINE2          15

1               LINE3          15

2               HDR            NULL

2               LINE1          NULL

2               LINE2          20

2               LINE3          20

2               LINE2          8

2               LINE3          8

 

I split each change in HeaderID into a new IDOC by using:

 

HeaderID -> removeContext -> sort -> SplitByValue (value change) -> collapseContext -> IDOC

 

So this is giving me 2 separate IDOCS - which is great.

 

My problem is that I also need to be able to create a node in each IDOC only for each LINE3 that appears

 

So in the above the IDOC split would be:

 

1     LINE3     15

 

2     LINE3     20

       LINE3     8

 

I've tried various options but cannot work out a way to do this?

 

If you are able to help a detailed answer would be great.

 

Thanks in advance

Mark


Viewing all articles
Browse latest Browse all 3363

Trending Articles



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