Skip to Content

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

File Content Conversion in Receiver Adapter

Hi!

I have an XML with the following structure :

<CHA>
  <field1>value1</field1> 
  <field2>val2</field2>
</CHA>

I want the following result :

value1;val2

My content conversion parameters are :

Recordset structure : CHA
CHA.fieldSeparator = ;
CHA.fieldFixedLengths = 6,4

But no value in my output file.

Any idee of the reason?

Thanks in advance,

Laurence

replied

Laurence,

The problem is you need another ROOT node compulsorily,

<?xml version="1.0" encoding="UTF-8" ?>

<b><ROOT></b>

<CHA>

<Entete>CHA</Entete>

<Usine />

<CodeTransmission>1</CodeTransmission>

<LieuChargement />

<Filler2 />

<NumeroWagon>318235174340</NumeroWagon>

<EtatChargement />

<Produit>PALP</Produit>

<ChargeLimite>TODO</ChargeLimite>

<PoidsTheorique>TODO</PoidsTheorique>

<TolerancePlus>282</TolerancePlus>

<ToleranceMoins>282</ToleranceMoins>

<PremiereDestination />

<PremierDestinataire />

<WagonChocAvant />

<WagonChocArriere />

<Filler12 />

<TrainComplet>0</TrainComplet>

<EtatWagon>00</EtatWagon>

<DatePesage>20070223</DatePesage>

<PostePesage>1</PostePesage>

<CodePesage>00</CodePesage>

<CodeReseau />

<CodeGare />

<NumeroControle />

<Filler1 />

</CHA>

<b></ROOT></b>

Add this and it will work fine.

Regards

Bhavesh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question