cancel
Showing results for 
Search instead for 
Did you mean: 

PI Context create header and detail structure

former_member271795
Participant
0 Kudos

Hi

I have a sender message which has record types 1 ... Header and 2....Detail

I need to put them into a header/ detail structure

Can anyone tell me how to map the nodes to create the correct context

Incoming message is

row                    1 to unbounded

  ar_data            type string

The 1st char of ar_data indicates if its a header(1) or detail record(2)

The next 10 characters of ar_data is the document number

this is followed by description (header or detail)

I want to put it into the following structure

Header               1....to unbounded

     rectype         

     document no

     header description

     Detail              1 to unbounded

         rectype

         document no

          detail description

the incoming message looks like this

01 1234567890 abcdfgh                    "header rec

02 1234567890 sdhjfdh                     "detail rec

02 1234567890 uyndnds                   "detail rec

01 9876543210 yueueueu                 "header rec

02 9876543210 jdjdjdddd                   "detail rec

So far I've managed to create the correct header records but I cannot get the context right to associate the detail records with the correct header       

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Geoff,

Can you check if the below link helps you.

Regards,

Akhila.A