SAP CRM One order里user status和system status的mapping逻辑
Below example show: How the mapping relationship between User status and System status maintained in One Order.
APP: My Opportunity
Transaction type: OPSM
First,I create an new Opportunity in WebClientUI, I set the status with E0001( User status).
新建一個Opportunity,將其status 設置成E0001( User status):
After I saved the Opportunity, in the DB, I can find both user status E0001 - Open and system status I1002 there.
保存之后,在數(shù)據(jù)庫里針對該Opportunity不僅僅存儲了用戶手動選擇的user status E0001 - Open,還保存了如下的system status I1002:
Second,How the mapping relationship between User status and System status maintained in One Order?
這個user status到system status的mapping 邏輯:
Step1. Under transaction type OPSM, we can find status profile.
找到transaction type OPSM 對應的status profile:
Step2. In the status profile, we can find the business transaction OPEN of user status.
找到該 user status對應的business transaction OPEN:
Step3.Based on the business transaction OPEN, we will select system status from TJ06
where VRGNG = business transaction OPEN
and INACT not equal X
系統(tǒng)從step2里取得business transaction之后,根據(jù)VRGNG = transaction的邏輯到TJ06里去查找所有結果INACT不為X的entry,結果即為該user status對應的所有system status
Then,The configure point for table TJ06: tcode BS32
TJ06 表里的entry通過tcode BS32維護:
Finally,You can find below 3 steps in below function module.
上述三步系統(tǒng)的執(zhí)行邏輯可以通過debug如下的function module來學習:
再看另一個例子:
創(chuàng)建Task的時候,可以選擇的status是根據(jù)Task的status profile來的,最終會看到在Table TJ30中會有各種user status對應task這個transaction,其中就包括released:
但是在WEB UI新建task的drop down list里面卻沒有這個user status:
這是因為在Web UI上,雖然drop down list里面的status是從TJ30來的,但是這期間還有對新建transaction的status check。在Table TJ07或者Tcode BS22中,有對user status和system status之間的mapping:
其中I1030是system status,它對應的releases這個user status 的配置是forbidden,意思是當transaction上有error的時候,改變transaction的狀態(tài)到released是被禁止的。所以在Web UI上新建一個task的時候,因為還有很多字段沒有維護,所以transaction的system status是contains error - I1030的狀態(tài),Page上的每次change操作都會觸發(fā)狀態(tài)檢查,一旦有I1030這個狀態(tài),對應的released user status就會從drop down list中拿掉。
如果維護了所有必填字段確保transaction沒有error,released status就會出現(xiàn)在drop down list中:
要獲取更多Jerry的原創(chuàng)文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP CRM One order里user status和system status的mapping逻辑的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python实现阶乘的方法
- 下一篇: SAP CRM One Order关于索