前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP cross distribution chain status在Fiori应用中的draft handling

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

作者头像
Jerry Wang
发布2020-08-17 16:38:34
3510
发布2020-08-17 16:38:34
举报

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:

There is corresponding field in old SAPGUI transaction MM03:

The value is stored in table MARA, field MSTAE. The available list of status value could be maintained in this customizing:

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

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

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:

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.

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.

The parent entry could be found in PROD_ROOT:

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

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.

The persistence to MARA is done by function module MATERIAL_MAINTAIN_DARK:

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

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:

代码语言:javascript
复制
     Figure1: user input is stored in draft table PROD_SALES
代码语言:javascript
复制
     Figure2: user clicks save button
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-16 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档