cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI Sender File Adapter with Complex Structure

0 Kudos

Hi All,

I need to configure Sender file adapter FCC,

where my File structure is

<Recordset>

<Header>

<Record_Type/>

<Currency_Code/>

<Filler/>

</Header>

<Detail_Prices>

<Replacement_Parts_Prices>

<Record_Type/>

<Part_Number/>

<Part_Type/>

</Replacement_Parts_Prices>

<Remanufactured_Prices>

<Record_Type/>

<Dlr_Core_Deposit/>

</Remanufactured_Prices>

</Detail_Prices>

<Trail>

<Record_Type/>

<Control_Count/>

<Filler/>

</Trail>

</Recordset>

I dont know how to handle The Detail price node as it doent have any key fields and it contain two other nodes where it contain

key fields

Thanking you

Sridhar

Sridhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For the type of structure that you have mentioned, you need a key field for either FCC or the MessageTransform bean to work.

Try to go for a two step conversion. First define a structure like :

<Row> ..... 0 to unbounded

<Data> ... 1

</Row>

In sender FCC, get each line of the file into a seperate Data field. Then in GUI message mapping, convert the first structure to your required sender xml structure.

The other option would be to write a custom adapter module to do the conversion in the sender comm. channel.

Regards

Answers (0)