cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound File Adaptor

Former Member
0 Kudos

Hi Guys,

I have a situation where I would like to receive an XML file into XI and map it to an IDOC and post a transaction in R/3.

I have been able to pick up the XML using the inbound file adaptor. The problem that I am experiencing is that the XML file is encoded using UTF-16. The XML file also has BOMs. I have tried creating a new data type from the XSD but get a parsing error. So I created a new data type manually using the values that are given to me in the XSD file. When I try and test the mapping I get an error. I keep getting a parsing error that indicates to me that it cannot map the XML file that it receives to the data type that I have created. It appears that XI is not able to read this UTF-16 file. Has anyone had this situation before? Can XI handle UTF-16 and BOM?

When creating the data type, do I have to include the BOM and BO elements?

Any help would be appreciated!

Thanks very much,

Miguel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Miguel,

Just for the testing purpose have you tried with using encoding UTF-8. I know UTF-8 works fine and should UTF-16 as well. Then you can narrow down the problem.

Cheers,

Ranjan

Former Member
0 Kudos

Hi Rajan,

Yip, I have tried this already and it works fine. I have also tried uploading an IDoc and that too works fine. This leads me to think that my problem actually lies in the way that my data type is defined and not the actual file adaptor. I think that by finding out whether I should include the BOM and BO elements in my data type would probably help towards solving this problem, because I think that if XI is able to read UTF-16 fine, then it would automatically know that a BOM and BO element is going to be there and would ignore these elements in the XML file.

Here is the test XML file that I am trying to read into XI:-

<?xml version="1.0" encoding="UTF-16"?><BOM><BO><AdmInfo><Object>13</Object><Version>2</Version></AdmInfo><Documents><row><DocNum>127</DocNum><DocType>dDocument_Items</DocType><HandWritten>tNO</HandWritten><DocDate>20050908</DocDate><DocDueDate>20050908</DocDueDate><CardCode>0000000006</CardCode><CardName>Test 2</CardName><Address>3

1690 MBABANE

SWAZILAND</Address><DiscountPercent>0.000000</DiscountPercent><DocCurrency>GBP</DocCurrency><DocRate>0.000000</DocRate><DocTotal>58.750000</DocTotal><Reference1>127</Reference1><Comments/><JournalMemo>AR Invoice - 0000000006</JournalMemo><PaymentGroupCode>-1</PaymentGroupCode><DocTime>1410</DocTime><SalesPersonCode>-1</SalesPersonCode><TransportationCode>-1</TransportationCode><PartialSupply>tYES</PartialSupply><Confirmed>tYES</Confirmed><SummeryType>dNoSummary</SummeryType><WareHouseUpdateType>dwh_Stock</WareHouseUpdateType><ContactPersonCode>67</ContactPersonCode><ShowSCN>tNO</ShowSCN><Series>1000</Series><TaxDate>20050908</TaxDate><Address2>Street 1

Garankuwa

1560 SOUTH AFRICA</Address2><ShipToCode>Ship to</ShipToCode><Rounding>tNO</Rounding><RevisionPo>tNO</RevisionPo><BlockDunning>tNO</BlockDunning><PaymentBlock>tNO</PaymentBlock><MaximumCashDiscount>tNO</MaximumCashDiscount><DeferredTax>tNO</DeferredTax><NumberOfInstallments>1</NumberOfInstallments><ApplyTaxOnFirstInstallment>tYES</ApplyTaxOnFirstInstallment><UseShpdGoodsAct>tNO</UseShpdGoodsAct><DocumentSubType>bod_None</DocumentSubType></row></Documents><Document_Lines><row><BaseType>-1</BaseType><ItemCode>A1000</ItemCode><ItemDescription>Boxing Gloves</ItemDescription><Quantity>1.000000</Quantity><Price>50.000000</Price><Currency>GBP</Currency><DiscountPercent>0.000000</DiscountPercent><LineTotal>50.000000</LineTotal><VendorNum>Box 12321</VendorNum><WarehouseCode>01</WarehouseCode><SalesPersonCode>-1</SalesPersonCode><CommisionPercent>0.000000</CommisionPercent><AccountCode>410000</AccountCode><TaxLiable>tYES</TaxLiable><UseBaseUnits>tNO</UseBaseUnits><SupplierCatNum/><CostingCode/><ProjectCode/><BarCode/><TaxPercentagePerRow>17.500000</TaxPercentagePerRow><VatGroup>O1</VatGroup><PriceAfterVAT>58.750000</PriceAfterVAT><Height1>0.000000</Height1><Height2>0.000000</Height2><Width1>0.000000</Width1><Width2>0.000000</Width2><Lengh1>0.000000</Lengh1><Lengh2>0.000000</Lengh2><Volume>0.000000</Volume><VolumeUnit>4</VolumeUnit><Weight1>0.000000</Weight1><Weight2>0.000000</Weight2><Factor1>1.000000</Factor1><Factor2>1.000000</Factor2><Factor3>1.000000</Factor3><Factor4>1.000000</Factor4><SWW/><Address>Clockhouse Place

London

Middlesex TW14 8HD

UNITED KINGDOM</Address><ShippingMethod>2</ShippingMethod><DeferredTax>tNO</DeferredTax><CorrectionInvoiceItem>ciis_ShouldBe</CorrectionInvoiceItem><CorrInvAmountToStock>0.000000</CorrInvAmountToStock><CorrInvAmountToDiffAcct>0.000000</CorrInvAmountToDiffAcct><ExciseAmount>0.000000</ExciseAmount><ConsumerSalesForecast>tNO</ConsumerSalesForecast><U_Franch>HK</U_Franch></row></Document_Lines><SerialNumbers/><BatchNumbers/><Document_LinesAdditionalExpenses/><DocumentsAdditionalExpenses/><WithholdingTaxData/></BO></BOM>

Thanks for the help,

Miguel