User Status & System Status是相对应的概念,后者是系统内部定义的,用户不能直接修改,前者则供用户发挥。两者共同发挥作用。
System Status: A status the SAP System sets internally as a part of general status management. This status tells the user that a certain business transaction was performed for an object.
User Status: A status set by the user to complement the system status for a given status object. You can use only a user status belonging to a status profile (defined in Customizing) and assigned to the relevant status object. User statuses enable you to extend the control of business processes managed by the system status. You can set and delete user statuses manually when carrying out business transactions.
系统/用户状态,主要起到流程控制的作用:通过对Business Transaction(事务)施加影响(允许/禁止/警告)来实现。因为事务的执行,需要状态的允许;反过来,事务能激活或撤销状态。此外,还有Object Type(对象类型)的概念,它包含一系列允许的事务(表:TJ05),对象类型跟应用程序(Program)关联。
系统状态(I0???)是预先定义好的:系统状态对事务的允许/禁止/警告(表:TJ07),事务对系统状态的激活或撤销(表:TJ06)。以及更重要的,系统状态在各个对象类型中的Status Numbers(表:TJ04)。
用户状态(E0???)则需要一个载体Status Profile(状态文件),再将状态文件授予应用程序,同时状态文件需分配给对象类型。用户状态的设定主要存放在表:TJ31。如下图所示。
附录 T-CODE 事务码:
- BS03 – Status Profile
- BS13 – Object Types
- BS23 – System Status
- BS33 – Business Transaction
