Below you will find some objects which is useful when you are performing ABAP development for status management in SAP.
Function Modules
STATUS_READ
: With this function, you can get the system status and user status internal codes, such asI0001
,E0001
.STATUS_TEXT_EDIT
: With this function, you can get the external status codeREL
APPR
for one object. In an update transaction, if you set the input parameterBYPASS_BUFFER
toX
, it will get the old status code from database. If you set the input parameterBYPASS_BUFFER
to blank, it will get the new status code after the change.STATUS_CHANGE_INTERN
: With this function, you can update the system status.STATUS_CHANGE_EXTERN
: With this function, you can update the user status.STATUS_CHANGES_GET
: With this function, you can get the status changes in the current update transaction.
Tables
JSTO
: Status object information. It contains the status profile and object category for one object.JEST
: Individual Object Status. It contains the object status information. FieldINACT
indicates whether the status is active or not.TJ02T
: System status texts. It contains the external status code and description for one system status, which isINNNN
.TJ30T
: Texts for User Status. It contains the external status code and description for one user status, which isENNNN
.JCDS
: Change Documents for system/user status. It contains the change documents for status management.
T-codes
BS23
: Display system statusBS03
: Display status profile (user status)
Tips
- You can use
Authorization key
to control the authorization to update user status. If the auth key is assigned to one user status in status profile, the authorization with auth objectB_USERSTAT
and auth key should be assigned to the user, so that one is able to update the user status.