日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

SAP CRM One order里user status和system status的mapping逻辑

發(fā)布時間:2023/12/19 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP CRM One order里user status和system status的mapping逻辑 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。