!--a11y-->
Mass Status Change 
You can use this function to change the status of numerous specifications simultaneously. The specifications can belong to the following specification categories:
· Recipe
· Formula
· Substance
· Packaging
You have made the following settings in Customizing for Recipe Management:
· You have processed the IMG activities Specify Mass-Change Services and Specify Status Change Profiles.
· To enable mass status changes to be made from the hit list for each specification category, you have specified the following function modules as the third function module in the IMG activity Adapt Initial Screens:
Specification Category |
Function Module |
Recipe |
RMSA142_APP_SCREEN_INIT |
Formula |
RMSA145_APP_SCREEN_INIT_FRM |
Substance |
RMSA145_APP_SCREEN_INIT_SPEC |
Packaging |
RMSA145_APP_SCREEN_INIT_SPEC |
Status change profiles control mass status changes. You define these profiles in Customizing for Recipe Management by choosing Specify Status Change Profiles. In a status change profile you can specify the following:
· The specification types for which the defined status changes are to be made
· The conditions that must be fulfilled before a status is changed
· The status changes that the system makes if the conditions are fulfilled
Before you start mass status changes, you must choose one of the defined status change profiles.
The system makes the defined status
changes on the
Scope of Application tab page for recipes and formulas, or on
the Status tab page for substances and packagings.
For recipes, you can define additional status changes that the system makes on
the
Basic Data tab page.
The system changes the status on the
Scope of Application or Status tab
pages in the row whose validity period includes the key date. That means it does not create a new row, and
it does not change any other data in the row, not even the valid-from or
valid-to date. If the tab page does not contain a status entry, the system
does not create a status entry.
You can make mass status changes in the following ways:
· You can make the mass status change for selected specifications from the hit list. Since the hit list contains specifications of one specification category only, you can only change specifications of one specification category.
For the mass status change, you choose a status change profile and a key date on which the change is to be made. For the system to include a specification in the change, the conditions in the chosen status change profile must be fulfilled on the chosen key date.
The system ignores the change number that you set in the recipe workbench and makes the change on the specified key date only. If a specific change state applies on this key date, the system alters the change state. If you set a change number in the recipe workbench, the system proposes the valid-from date for this change number as the key date for the mass status change. You can also transfer the valid-from date for a specific change number as the key date and thus ensure that the system alters the change states for this change number.
· You can run the report program RCPP_STATUS_CHANGE (transaction RMSTAT). This takes you to a screen on which you choose a change number and a status change profile. The system then determines all specifications that were changed using this change number and includes only those specifications in the status change. The specifications can belong to different specification categories.
The system uses the valid-from date for the change number as the key date. For the system to include a specification in the status change, the conditions in the chosen status change profile must be fulfilled on this key date.
Based on the key date, the system
changes the status entries on the
Scope of
Application and Status tab pages as
described. In recipes, it alters the change state that was created with the
change number.
To change the status of a number of specifications from the hit list of the recipe workbench, proceed as follows:
...
1. Search for the specifications.
2.
In the hit list,
select the specifications you require and choose
with
the quick info text Mass Change.
3. Choose the mass-change service Status Change, enter any other data required, and confirm your entries.

If necessary, transfer the
valid-from date for a change number as the key date by choosing
Change
No. and searching for the change number.
The Check Mass Change screen appears. On this screen, the system displays the status entries of the specifications that exist on the key date. Each status entry is displayed in a separate row (item), except when there are different user status entries for a recipe, in which case it groups these in one item. If the system does not display a status entry for a selected specification, this can have the following causes:
¡ The specification does not have a status entry or does not have one that is valid on the key date.
¡ You are not authorized to display the specification.
4. If you have set the relevant indicators in Customizing for Recipe Management under Specify Status Change Profiles, you can change the sequence in which the status changes are made. Change the sequence or subsequence numbers, if necessary, by assigning numbers that are not already in use, and confirm your entries.
The system reorders the sequence in accordance with your settings and renumbers the rows sequentially in steps of 10.

If you have defined changes for
recipes in the status change profile in Customizing that the system must make
on the
Scope of Application and
Basic
Data tab pages, you cannot change the sequence of the rows for a
recipe. The system then sorts the rows for the recipe so that it can make the
status changes in the following order:
·
If the system status of the recipe allows
the changes to the scope of application, the system makes the changes on the
Scope of Application tab page first and then changes the
system status.
·
If the system status of the recipe
prohibits the changes to the scope of application, the system changes the
system status on the
Basic Data tab page first in accordance
with the status change profile. The system then makes the changes on the
Scope
of Application tab page.
5.
Set the Change indicator for all items whose status is to be changed
and choose
with the quick info text Check Selected Data Records.
The system checks the items and informs you in the Message Type column which types of messages (error messages, warnings, or success messages) have occurred. It deselects the Change indicator in all items in which errors occurred. Errors can have one of the following causes:
¡ The specification is currently being edited.
¡ You are not authorized to change the status of the specification.
¡ The status of the item already matches the required status.
¡ The status of the item does not fulfill the conditions that you defined for the status change profile in Customizing.
6. You can check any messages that occurred for the individual items by choosing the icon for the message type in the relevant row.
7.
Choose
with the quick info text Change Selected
Data Records.
The system changes the status, saves the data for the affected specifications, and displays the new status entries in the table.

If you do not want the system to save the data automatically, you must set up your own mass-change service in Customizing and implement it. You must not then set the md_autosave indicator in the ABAP class for the mass-change service. If you do not set this indicator, you must save the changed data after the mass change or you can cancel the mass change if needed.
8.
In certain cases, it is possible that a
status change is not allowed. This is the case, for example, if all substances
in a recipe must be released first before the recipe can be released, but the
sequence in the mass status change is the opposite of this. You can then check
any messages that occurred for the individual items by choosing the icon for
the message type in the relevant row. If you want to display all messages,
choose
with the quick info text Application Log, where you can print them out as
required.

You can specify when a status change is not allowed in Customizing for Recipe Management in the IMG activity Set Up Checks for Switching Status.
