分类: Web开发
2019-05-15 08:53:18
You receive one of the error messages BS042,BS043.
This can occur when you process any object which uses the general status management, for example project, order, network and so on.
BS02, BS03
The object which is currently subjected to a status change is assigned to a user status profile.
The user status with status number is defined in this user status profile.
You defined for every status with status number an interval in the status profile which must contain the subsequent status.
One is always active at any time for an object in the user status with status number. If you want to change the status, it is first checked whether the required subsequent status is in the allowed interval. If this is the case, it is set and the predecessor status is deactivated. Otherwise, one of the error messages
is issued. The interval limits are output for the status numbers in the long text of the error messages (F1). In this case the logic of the interval check is as follows:
The effect of the second point is that a user status has still an influence on the status sequence if it is no longer active at all yet it was once active.
Thus, status management has something like a "memory".
The following status profile may serve as an example:
Stat.no Status Ini Lstat no. Hstat no.
1 AAAA X 1 2
2 BBBB 2 3
3 CCCC 1 3
This has the initial status AAAA when generating the object.
This alone determines which status number interval is allowed for the subsequent status, namely 1 to 2.
Thus, only BBBB is allowed as a subsequent status. If you switch to BBBB, the status management 'memorizes' that AAAA was once active. However, this has no effects since BBBB is the higher status. 2 to 3 are allowed as a status number of the subsequent status of BBBB. Thus, you may only switch to CCCC, a switching back to AAAA is not allowed. If the status CCCC is reached you can switch back to BBBB as the status number must be between 1 and 3. The object is now again in status BBBB with the difference that you may now also switch back to AAAA because
Since CCCC is the highest status in this status profile, you can switch back to AAAA from every status without restriction.
You can look at this 'memory' function of status management either as "bug" or as "feature" depending on the requirement. Should this attribute be interfering, you can carry out a MODIFICATION of the SAP standard system so that only the currently active status determines the interval limits for the subsequent status. However, this changes the behavior of status management globally for all defined status profiles. You may now receive the error messages BS042/043 for status changes at objects which are assigned to other status profiles and where you made use of the 'memory' of the status management as a "feature".
You must check and test this, otherwise you do not have to expect any other side effects from the modification.
If necessary, make the following MODIFICATION.