Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Create Individual Idocs Based on Parent and Child Segment type

$
0
0

Hi Experts,

 

I have a scenario IDOC to FILE ,  Split Single IDOC into Multiple IDOC's based on parent and child Segment Type

 

 

For example If 3 child segments are same and 1 segment is different under parent segment then 3 same child segments are clubbed and create single idoc under parent segments and 1 different child should create in individual idoc under parent segment.


Note : Same logic should work for N number of Parent Segments and Child Segments.

 

 

 

Outbound:

 

ZIdocName

Control Record

Data Record

Parent Segment A

   Child Segment 1

   Child Segment 1

   Child Segment 1

   Child Segment 2

Parent segment  B

   Child Segment 3

Status Record

 

I should get output like below

 

Inbound:

 

ZIdocName

Control Record

Data Record

Parent segment A

  Child Segment 1

  Child Segment 1

  Child Segment 1

Status Record

 

ZIdocName

Control Record

Data Record

Parent segment A

  Child Segment 2

Status Record

 

ZIdocName

Control Record

Data Record

Parent Segment B

  Child Segment 3

Status Record

 

Please suggest me step by step process to achieve this task.

 

Thanks.

Ram


Viewing all articles
Browse latest Browse all 6719

Trending Articles



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