Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

PI Context create header and detail structure

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       

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question