SAP cross distribution chain status在Fiori应用中的draft handling

简介: The explanation why draft handling is necessary in Fiori application could be found from Fiori Design Guideline.In this blog, I will use the update of field “cross distribution chain status” in S4 Product master Fiori application as example.This field could be found from Fiori UI:

The explanation why draft handling is necessary in Fiori application could be found from Fiori Design Guideline.


In this blog, I will use the update of field “cross distribution chain status” in S4 Product master Fiori application as example.

This field could be found from Fiori UI:


image.png


There is corresponding field in old SAPGUI transaction MM03:


image.png


The value is stored in table MARA, field MSTAE.

The available list of status value could be maintained in this customizing:


image.png


When end user clicks edit button and chooses a given value from dialog and press enter key:


image.png


The draft instance of this product will automatically be persisted in the backend.


image.png


At this time ( product is still in edit mode ), we can find out the lock is still acquired via tcode SM12. Also the draft uuid would be found:


image.png


How to find the database table which stores the draft data of Cross distribution chain status?

In tcode BOBX, open BO I_PRODUCTWD and double click node I_PRODUCTSALESWD, you can find out table name PROD_SALES.


image.png


Query this table with the draft uuid found from SM12 against field PARENTDRAFTUUID, and you can find one corresponding entry for draft instance in Fiori UI.


image.png


The parent entry could be found in PROD_ROOT:


image.png


When user clicks save button in Fiori UI, an HTTP post will be sent to backend:


image.png


The method COPY_DRAFT_TO_ACTIVE_DOCUMENT of class configured in BOBX is called, to merge the data in draft table to MARA, this is called activation.


image.png


image.png


The persistence to MARA is done by function module MATERIAL_MAINTAIN_DARK:


image.png


The value to be persisted is maintained in table parameter amara_ueb:


image.png


Meanwhile once activation is done successfully, the draft entry will be removed automatically.

In summary, the draft handling process could be described in the following graphs:


image.png

相关文章
|
1月前
|
数据库 API
启用SAP Fiori之前的一些注意事项
启用SAP Fiori之前的一些注意事项
14 0
|
2月前
|
Web App开发 数据采集 前端开发
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
21 0
|
2月前
|
XML 存储 数据格式
SAP UI5 控件 customData 属性的应用介绍
SAP UI5 控件 customData 属性的应用介绍
35 0
|
3月前
|
Web App开发 前端开发 JavaScript
乱花渐欲迷人眼 - 让 SAP UI5 应用的日志输出不再素面朝天
乱花渐欲迷人眼 - 让 SAP UI5 应用的日志输出不再素面朝天
51 0
|
3月前
让 SAP UI5 应用的日志打印变得五彩缤纷试读版
让 SAP UI5 应用的日志打印变得五彩缤纷试读版
99 2
|
1月前
关于 SAP ABAP OData 服务如何实现 Deep Insert 场景 - SAP 应用的标准行为试读版
关于 SAP ABAP OData 服务如何实现 Deep Insert 场景 - SAP 应用的标准行为试读版
16 1
|
2月前
SAP UI5 Link 控件的使用方法介绍 - 后续学习 Fiori Elements Smart Link 的基础试读版
SAP UI5 Link 控件的使用方法介绍 - 后续学习 Fiori Elements Smart Link 的基础试读版
16 0
|
2月前
|
UED
什么是 SAP Fiori 的 Technical Catalog 和 Business Catalog
什么是 SAP Fiori 的 Technical Catalog 和 Business Catalog
38 0
|
2月前
|
前端开发 UED
SAP Fiori 到底指什么
SAP Fiori 到底指什么
49 0
|
2月前
|
XML 前端开发 JavaScript
SAP Fiori Launchpad Custom Fields tile 里的 ABAP 语法高亮显示
SAP Fiori Launchpad Custom Fields tile 里的 ABAP 语法高亮显示
17 0