Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all articles
Browse latest Browse all 1879

SAP Fiori Custom App - XML Parsing issue

$
0
0

Hi,

 

I have a Custom built Fiori App for PO approvals in Master-Detail layout format, in detailed section, users can change quantity/amount fields, and amount gets calculated from quantity (amount = quantity * unit price). This functionality works fine. But the problem is, once amount gets recalculated, when hit "SAVE" button to save changes, I get XML parsing problem.

 

In Gateway, ERROR_LOG, I find all the data comes with double quote except the Amount field (once value changed), if I add the double quote to amount field, and hit REPLAY, it works fine.

 

If I comment out the modification logic for amount calculation in my controller file, then things works good.


I am not sure what formatting error happens within modification logic. This occurs only if amount modified, no issues when amount not modified.

 

Data type info.

 

Quantity, Unit Price and Amount all defined as EDM.DECIMAL in OData as well as Metadata file of the app. (I tried EDM.STRING, that didn't help as well).

 

Screen shots -

 

1.  XML View

2016-05-21 8-11-43 AM.png

2. Controller logic, modify amount based on quantity

2016-05-21 8-16-44 AM.png

3. What I see in Gateway after Modification of Amount, rest of the field all good. The double quote missing on amount which is causing parsing error.


2016-05-21 8-20-43 AM.png

 

Appreciate any help or direction to get rid of XML parsing error.

 

Thanks, Saty


Viewing all articles
Browse latest Browse all 1879

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>