共計(jì) 1942 個(gè)字符,預(yù)計(jì)需要花費(fèi) 5 分鐘才能閱讀完成。
行業(yè)資訊
服務(wù)器
user status 和 system status 的 mapping 邏輯是什么
這篇文章主要講解了“user status 和 system status 的 mapping 邏輯是什么”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著丸趣 TV 小編的思路慢慢深入,一起來研究和學(xué)習(xí)“user status 和 system status 的 mapping 邏輯是什么”吧!
新建一個(gè) Opportunity,將其 status 設(shè)置成 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 不僅僅存儲了用戶手動(dòng)選擇的 user status E0001 – Open,還保存了如下的 system status I1002:
Second,How the mapping relationship between User status and System status maintained in One Order?
這個(gè) user status 到 system status 的 mapping 邏輯:
Step1. Under transaction type OPSM, we can find status profile.
找到 transaction type OPSM 對應(yīng)的 status profile:
Step2. In the status profile, we can find the business transaction OPEN of user status.
找到該 user status 對應(yīng)的 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 里去查找所有結(jié)果 INACT 不為 X 的 entry,結(jié)果即為該 user status 對應(yīng)的所有 system status
Then,The configure point for table TJ06: tcode BS32
TJ06 表里的 entry 通過 tcode BS32 維護(hù):
Finally,You can find below 3 steps in below function module.
上述三步系統(tǒng)的執(zhí)行邏輯可以通過 debug 如下的 function module 來學(xué)習(xí):
再看另一個(gè)例子:
創(chuàng)建 Task 的時(shí)候,可以選擇的 status 是根據(jù) Task 的 status profile 來的,最終會看到在 Table TJ30 中會有各種 user status 對應(yīng) task 這個(gè) transaction,其中就包括 released:
但是在 WEB UI 新建 task 的 drop down list 里面卻沒有這個(gè) user status:
這是因?yàn)樵?Web UI 上,雖然 drop down list 里面的 status 是從 TJ30 來的,但是這期間還有對新建 transaction 的 status check。在 Table TJ07 或者 Tcode BS22 中,有對 user status 和 system status 之間的 mapping:
其中 I1030 是 system status,它對應(yīng)的 releases 這個(gè) user status 的配置是 forbidden,意思是當(dāng) transaction 上有 error 的時(shí)候,改變 transaction 的狀態(tài)到 released 是被禁止的。所以在 Web UI 上新建一個(gè) task 的時(shí)候,因?yàn)檫€有很多字段沒有維護(hù),所以 transaction 的 system status 是 contains error – I1030 的狀態(tài),Page 上的每次 change 操作都會觸發(fā)狀態(tài)檢查,一旦有 I1030 這個(gè)狀態(tài),對應(yīng)的 released user status 就會從 drop down list 中拿掉。
如果維護(hù)了所有必填字段確保 transaction 沒有 error,released status 就會出現(xiàn)在 drop down list 中:
感謝各位的閱讀,以上就是“user status 和 system status 的 mapping 邏輯是什么”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對 user status 和 system status 的 mapping 邏輯是什么這一問題有了更深刻的體會,具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是丸趣 TV,丸趣 TV 小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!