Skip to Content
0
Former Member
Jul 29, 2006 at 08:29 PM

Mapping Problem

24 Views

Hi,

i am executing Text file 2 XML..

i am getting this error, in I.R, when i am trying to execute with XML file generated from SXMB_MONI.

Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)

the XML File is

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

- <ns:MT_Out_Orders xmlns:ns="URN://Text">

- <Recordset>

- <Orders>

<OrderNo>1211</OrderNo>

<Item>Monitor</Item>

<Qty>5</Qty>

<Price>1200</Price>

</Orders>

+ <Orders>

<OrderNo>1213</OrderNo>

<Item>Mouse</Item>

<Qty>40</Qty>

<Price>10</Price>

</Orders>

- <Orders>

<OrderNo>1214</OrderNo>

<Item>Headphone</Item>

<Qty>90</Qty>

<Price>7</Price>

</Orders>

</Recordset>

</ns:MT_Out_Orders>

-


my incoming Datatype is like this

DT_Out_Orders
   Orders
      OrderNo
      Item
      Qty
      Price

my Sender Adapter (File)

Document Name           MT_Out_Orders
Document Namespace      URN://Text
Document Offset         0
Recordset Name 
Recordset Structure     Order,*
Recordsets per Message  *

Orders.fieldNames       OrderNo,Item,Qty,Price
Orders.fieldSeparator   ,
Orders.endSeparator     'nl'
Orders.processConfiguration FromConfiguration

Any sugg?

Thanks

Seshu