SAP CRM資料庫表CRMD_CUMULAT_H的設計原理
Recently I am working in a project and the prerequisite is to understand how table CRMD_CUMULAT_H works. As I could not find enough material in SCN, I make some self study on it and list my learning in this blog. Let me use one record for example to illustrate how its GROSS WEIGHT 400 KG is determined.
As the table name “cumulate” indicates, certain fields in this table are cumulated. I write a small API to demonstrate the logic, it will generate the same Gross Weight amount: 400
DATA: lt_order_i TYPE TABLE OF crmd_orderadm_i-guid,
lt_product_i TYPE TABLE OF crmd_product_i.
SELECT guid INTO TABLE lt_order_i FROM crmd_orderadm_i
WHERE header = iv_guid.
CHECK sy-subrc = 0.
SELECT guid gross_weight INTO CORRESPONDING FIELDS OF TABLE lt_product_i FROM crmd_product_i
FOR ALL ENTRIES IN lt_order_i WHERE guid = lt_order_i-table_line.
LOOP AT lt_product_i ASSIGNING FIELD-SYMBOL(<product>).
rv_gross_weight = rv_gross_weight + <product>-gross_weight.
ENDLOOP.
In order to better explain the calculation logic, I draw a picture below.
Where is gross weight in CRMD_PRODUCT_I.GROSS_WEIGHT coming from
The next question is: how is the value of field GROSS_WEIGHT in table CRMD_PRODUCT_I populated? When we log on WebClient UI, we can only see the quantity 4 ST in each line item. Why 4 ST of product has gross weight 200 KG?
First get product IMU’s guid from table COMM_PRODUCT:
00163EA71FFC1EE1A7CCADA1477A9164 Then query table COMM_PR_UNIT with this guid, and we can know from there that 1 ST = 50 KG, so 4 ST = 200 KG.
When I change the quantity of first item from 4 to 3,
the updated gross weight ( 3 * 50 = 150 KG ) is persisted to database via update function module:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2714072/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM訂單資料庫表CRMD_SHIPPING的填充原理資料庫
- CRM, C4C和SAP Hybris的資料庫層設計資料庫
- Salesforce和SAP Netweaver裡資料庫表的後設資料設計Salesforce資料庫
- SAP CRM產品主資料頁面的縮圖顯示設計原理
- 資料庫原理-設計資料庫
- 資料庫表設計資料庫
- SAP CRM裡產品主資料的文字模型設計模型
- SAP CRM資料庫表CRMD_SRV_REFOBJ和CRMD_SRV_OSSET資料庫OBJ
- SAP CRM Survey調查問卷的模型設計原理解析模型
- SAP中的資料庫表索引資料庫索引
- 【資料庫設計】資料庫的設計資料庫
- (2) 電商資料庫表設計資料庫
- SAP CRM中介軟體下載時資料庫表CRMATAB為空的處理方法資料庫
- SAP ABAP報表依賴設計原理詳解
- 程式設計師面試之MySQL資料庫表的設計程式設計師面試MySql資料庫
- 設計HBase資料庫資料表有關的建議資料庫
- 巢狀評論的資料庫表設計巢狀資料庫
- 關於資料庫表的設計步驟資料庫
- 資料庫設計過程遇到的零散點記錄powerdesigner 資料庫設計 表設計資料庫
- SAP CRM One Order header資料庫表幾個和時間戳相關的欄位Header資料庫時間戳
- SAP Hybris Commerce裡的資料庫表資料庫
- CRM資料庫表COM_TA_R3_ID的資料來源資料庫
- pgsql資料庫的表儲存策略原理SQL資料庫
- ABAP資料庫表的後設資料資料庫
- 資料庫表設計之儲存引擎資料庫儲存引擎
- 資料庫設計之area區域表資料庫
- Oracle資料庫表設計時的注意事項Oracle資料庫
- SAP Basis DEBUG改表資料許可權角色設計
- SAP CRM附件模型的Authorization scope原理介紹模型
- 這個資料庫表如何設計的更優雅?資料庫
- 專案資料庫表設計與建立模型資料庫模型
- MySQL 規範 (資料庫表設計規範)MySql資料庫
- 資料庫表設計三正規化資料庫
- 資料庫表設計正規化 筆記資料庫筆記
- SAP資料庫的分析資料庫
- 客快物流大資料專案(五十一):資料庫表分析 物流專案 資料庫表設計大資料資料庫
- SAP ABAP資料表的操作
- 在SAP HANA Express Edition裡建立資料庫表Express資料庫