You have observed the following behavior: the sales volume is displayed in detail view with1880 USD, while in master list, it is displayed as 2K for short. Why?
The truncation behavior in master list is implemented by Fiori application to fulfill the product standard of Globalization requirement. The exact value for SalesVolume is 1880.00,
And for the field in master list, there is a formatter to return the volume in short format:
And in order to understand the implementation detail of framework API “FormatAmountShort”, we have to understand the definition of CLDR – Unicode Common Locale Data Repository. The Unicode CLDR provides key building blocks for software to support the world’s languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages for such common software tasks. See one part of CLDR definition below from http://cldr.unicode.org/translation/number-patterns :
The first call of FormatAmountShort will trigger the load of CLDR file in the runtime.
The English version of CLDR content defined in the web page http://cldr.unicode.org/ is packed and stored in JSON file en.json by SAP and is now loaded:
And here below is the code how “1880” is transformed to “2k” by framework code:
The reason why English version of CLDR file is loaded is the language setting of the browser.
UI5 runtime will use the first Language configured in browser as primary language for all subsequent language-specific configuration stuff load mechanism, as illustrated in line 67 below:
Finally the English version of CLDR file is loaded in line 718:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关推荐
以下是SAP Fiori的三种方案:交易应用程序(Transactional apps),分析应用程序(Analytical apps)和实况报告报表(Fact sheets)。每个方案都有其特定的系统或软件要安装。通过阅读本文档,它可以根据所需的系统...
SAP Fiori SAP Fiori SAP Fiori Architecture Architecture Overview to Deep Overview to Deep Dive -with with focus on S/4 HANA focus on S/4 HANA
SAP fiori的简易开发过程指南,从开发者角度出发,分后面ODATA开发环境和前端SAP UI5环境搭建,以及发布进行了讲解
SAP Fiori 官方最新培训中使用的现金流案例。与你分享。
SAP Fiori Launchpad是移动或桌面设备上Fiori应用程序的入口,Launchpad Designer是配置Launchpad的标准工具。本配置指南提供了设置SAP Fiori Launchpad和Launchpad Designer所需的信息。 此外,它还提供了将所有...
SAP Fiori 快速指南 SAP Fiori 是 SAP 软件和应用程序的新用户体验(UX),提供了一组应用程序,用于常规业务功能,如工作批准,金融应用程序,计算应用程序和各种自助服务应用程序。SAP Fiori 提供 300 多个基于...
SAP Fiori OData Services. OData is used to define best practices that are required to build and consume RESTful APIs. It helps you to find out changes, defining functions for reusable procedures and ...
SAP FIORI OVERVIEW FIORI概览
SAP Fiori - Adding a Custom Workflow in 6 Steps
SAP Fiori---快速指南 共82页 2018年编著 word文档,写的不错,快速入门的好教材。
sapFiori配置手册[整理].pdf
SAP Fiori UX overview 2015/03
SAP Fiori Implementation Guide This document describes exploring SAP Fiori Implementation options and planning a typical SAP Fiori on premise implementation.
Take a deep dive into SAP Fiori and discover Fiori architecture, Fiori landscape installation, Fiori standard applications, Fiori Launchpad configuration, tools for developing Fiori applications and ...
SAP S4HANA frontend fiori详细配置文档,以及简单权限配置
SAP Fiori 官方新产品发布体验 F110自动付款样例.希望您喜欢。
什么是SAP Fiori SAP UX策略 SAP Fiori设计指南(Design Guideline) SAP Fiori运行环境 SAPUI5与OpenUI5 OpenUI演示
描述SAP 最新产品特性,及开发事项。
Session 1: Introduction to SAPUI5 / FIORI (40 mins) ▫ Basic MVC concept: Model, View, Controller ▫ UI5 Control libraries • Session 2: Introduction to SAP Web IDE (20 mins) • Hands on 1: Build your...
S4 HANA 中文版教材