Skip to Content
avatar image
Former Member

Fiori Create Sales Orders Error while parsing an XML stream

Within the Fiori APP “Create Sales Orders” we have a problem with creating Sales Orders. The SAP UI 5 Javascript generates a mal formed XML document for create sales order command. We receive the error “Error while parsing an XML stream”

Process in the app:

1.     Choose “Create Sales Orders” in the HOME page.


2.     Choose a customer, e.g. “TEST01”.

3.     Switch to “Products” tab and enter “P-” as search string.

4.     Choose any product and click on “Add To Cart” button.


5.     Choose the cart icon.

6.     Choose “Check Out” button.--> We get an error: “Error while parsing an XML stream”


In the Firefox web console, we found the http body for the create command.

The XML prolog <?xml version=”1.0” ?> is missing in the http body. The XML document from the web console:


<a:entry xmlns:a="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"><a:author><a:name/></a:author><a:content type="application/xml"><m:properties><d:SalesOrderSimulation m:type="Edm.String">true</d:SalesOrderSimulation><d:SingleShipment m:type="Edm.String">false</d:SingleShipment><d:PO m:type="Edm.String"/><d:RequestedDate m:type="Edm.String">20131121</d:RequestedDate><d:CustomerID m:type="Edm.String">TEST01</d:CustomerID><d:SalesOrganization m:type="Edm.String">1000</d:SalesOrganization><d:DistributionChannel m:type="Edm.String">10</d:DistributionChannel><d:Division m:type="Edm.String">00</d:Division></m:properties></a:content><a:link href="" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrderItemSet" type="application/atom+xml;type=feed"><m:inline><a:feed><a:entry><a:author><a:name/></a:author><a:content type="application/xml"><m:properties><d:Quantity m:type="Edm.String">1</d:Quantity><d:UnitofMeasure m:type="Edm.String">PC</d:UnitofMeasure><d:RequestedDeliveryDate m:type="Edm.String">20131121</d:RequestedDeliveryDate><d:Product m:type="Edm.String">P-100</d:Product><d:ItemNumber m:type="Edm.String">000010</d:ItemNumber><d:ProductName m:type="Edm.String">Pump PRECISION 100</d:ProductName></m:properties></a:content></a:entry></a:feed></m:inline></a:link></a:entry>

Here is the request data, displayed in the gateway error log:

Gateway Error Log

Do you have any idea how to fix this bug or do we have a mistake in our configuration??

Thanks for any hints!!!

Best Regards

Dominik


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 21, 2013 at 04:50 AM

    Hi Dominik,

    What is SAP_BASIS SP level and Kernel patch level?

    Regards,

    Masa

    SAP Rapid Innovation Group - RIG

    Add comment
    10|10000 characters needed characters exceeded