Skip to Content

Estimated Delivery Date issue in SAP Fiori Check Price and Availability application

Hi all,

I am configuring the Check Price and Availability application in Fiori. When I do an availability check with the current date, the application will return yesterday's date as the 'Estimated Delivery Date'. I have checked the OData service and found no issue with the dates. But I found some date calculations happening in the front end inside two Javascript files. Please find the details of the issue below.

  1. Material availability check is performed with today's date (June 4 2014).


2. The month will get decreased inside the Product.controller.js file,.

Before executing line no: 224.


After executing line no: 224.


3. After executing line no: 226, the date is decreased and the month is increased from the method FormatMediumDate defined inside the Javascript file 'DateTimeFormatter.js'.


4. The decreased date will be shown in the final output.

Please advice whether this is an expected behavior or a logical error.

cpa5.png (33.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 23, 2014 at 12:34 PM

    Hi Anson,

    First I can't see images except the last one. But mainly did you solve this problem?

    Thanks, Mike

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.