user status和system status的mapping逻辑是什么

35次阅读
没有评论

共计 1942 个字符,预计需要花费 5 分钟才能阅读完成。

行业资讯    
服务器    
user status 和 system status 的 mapping 逻辑是什么

这篇文章主要讲解了“user status 和 system status 的 mapping 逻辑是什么”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着丸趣 TV 小编的思路慢慢深入,一起来研究和学习“user status 和 system status 的 mapping 逻辑是什么”吧!

新建一个 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.

保存之后,在数据库里针对该 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

系统从 step2 里取得 business transaction 之后,根据 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.
上述三步系统的执行逻辑可以通过 debug 如下的 function module 来学习:

再看另一个例子:
创建 Task 的时候,可以选择的 status 是根据 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 的状态到 released 是被禁止的。所以在 Web UI 上新建一个 task 的时候,因为还有很多字段没有维护,所以 transaction 的 system status 是 contains error – I1030 的状态,Page 上的每次 change 操作都会触发状态检查,一旦有 I1030 这个状态,对应的 released user status 就会从 drop down list 中拿掉。

如果维护了所有必填字段确保 transaction 没有 error,released status 就会出现在 drop down list 中:

user status 和 system status 的 mapping 逻辑是什么

感谢各位的阅读,以上就是“user status 和 system status 的 mapping 逻辑是什么”的内容了,经过本文的学习后,相信大家对 user status 和 system status 的 mapping 逻辑是什么这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是丸趣 TV,丸趣 TV 小编将为大家推送更多相关知识点的文章,欢迎关注!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-16发表,共计1942字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)