Skip to Content

PI Context create header and detail structure


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      unbounded


     document no

     header description

     Detail              1 to unbounded


         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       

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 22, 2016 at 07:25 AM

    Hi Geoff,

    Can you check if the below link helps you.



    Add comment
    10|10000 characters needed characters exceeded