Configuring Status Profiles for Production Orders

Objective

After completing this lesson, you will be able to configure status profiles for production orders

Status Management of a Production Order

Status Management of a Production Order

Production orders have a status management that controls on the one hand, which status is set by the execution of a business process in the order, and on the other hand, which business processes are allowed or forbidden in which order status. System statuses are predefined by SAP and cannot be changed. However, SAP’s system status concept can be supplemented by user statuses to record additional information in the order or fine-tune whether a business process can be executed.

System Status

Decorative element

The figure shows a basic example of the relationship between business processes and system status: When a production order is created, the status CRTD Created is set. In Created status, among other things, the order can be scheduled, a material availability check can be performed, and the order can be released (→ column Allowed Business Processes). However, it is not possible, for example, to print the order and to post goods issues, confirmations and goods receipts (→ column Not Allowed Business Processes). If the order is released, the CRTD Created status is deleted and the REL Released status is set. Now, the previously forbidden business processes are possible. However, due to the REL Released status, the order cannot be released again.

System and User Status

The enabled and un-enabled business processes of an production order based on system and additional user statuses. When an order is released (REL Released), it can confirm the order, while goods receipt is prevented with the initial NoGR user status set. Once the order is confirmed (CONF Confirmed status), goods receipt becomes an allowed process, and the user status changes to GR indicating goods receipt is permitted for that order. The diagram shows that certain processes like goods receipt can be restricted or enabled based on the order status, acting as control points to ensure proper flow and execution of order execution activities.

In the SAP S/4HANA Public Edition standard, you can post a goods receipt for a production order when the order was released. If you want to ensure that, for example, an order was completely manufactured before the warehouse clerk can post the goods receipt, you can implement this restriction without the necessity of additional programming by assigning a user status profile to a production order type. In our example, the assigned user status profile consists of two statuses GR and NoGR: The status NoGR forbids posting of the goods receipt; the status GR does not forbid posting of the goods receipt. The latter is automatically set once the order was confirmed.

We first consider a released order (the first part of the figure): The system status REL Released enables the confirmation of the order and the goods receipt. However, no sequence is specified in which these two business processes must be processed. In our scenario, however, the user status NoGR Goods Receipt Forbidden is set in addition. Because NoGR forbids posting of the goods receipt, the user cannot post the goods receipt to this order unless the user status changed to GR.

Now, we confirm the order. The system is configured such that the confirmation posting automatically deletes the user status NoGR Goods Receipt Forbidden and sets the user status GR Goods Receipt Allowed instead. Since the latter does not prevent posting of the goods receipt, the warehouse clerk can now post the goods receipt for the production order.

As you can see in this simple example, you can leverage user statuses to forbid the execution of business processes that are enabled in SAP standard. In addition, you can also automatically set a user status if a certain business process is performed in the system. As a consequence, you can, for example, enforce a sequence in which the user must execute two business processes. You can also define a list of conditions (each condition corresponds to one user status) which must be fulfilled before, for example, an order can be released.

Note

To use user statuses with production orders, you must define a status profile and assign the status profile to the respective order type.

A status profile is defined in the configuration activity, Define Business Transaction Control. This is explained in the following sections.

The assignment of a status profile to an order type is defined in the configuration activity, Define Production Order Types. This was explained in lesson Configuring Production Order Types.

In the example above, we limited our discussion to user status profiles on order header level. Since the operations of a production order also have a status management, you can also enrich the default operation status values with a customer-specific user status concept.

Definition of Status Profiles for Production Orders

The Configuration Activity: Define Business Transaction Control

The configuration activity, Define Business Transaction Control enables you to make settings for blocking or unblocking certain business transactions for a status profile either immediately or when other business transactions are executed.

Definition of Status Profiles for Business Transaction Control

Open the configuration activity Define Business Transaction Control in SAP Central Business Configuration.

In the Define Status Profile view, you can create a status profile and assign an object node type. By assigning an object node type you specify whether the settings are relevant for a production order, a process order, or an order operation.

In the previous figure, for example, you can see that the status profile ZPP00003 GR only after Confirmation is assigned to the object node type Production Order Header.

Assignment of Status Profiles to Production Order Types

Open the configuration activity Define Production Order Types in SAP Central Business Configuration. For Order Type YBM1 the Status Profile Header ZPP00003 is assigned.

To use the settings of a status profile with production orders, you must assign the status profile to the respective order type.

In the previous figure, for example, you can see that the status profile ZPP00003 is assigned to the order type YBM1.

Example of Configuration of a Status Profile

In the following, the configuration settings for the user status example discussed in the previous section Status Management of a Production Order are explained.

Double click on Define Business Transaction Control with the selected profile ZPP00003 in the configuration activity Define Business Transaction Control in SAP Central Business Configuration. The user statuses GR Goods Receipt enabled and NoGR Goods Receipt forbidden are listed.

In the Define Business Transaction Controls view, you can view user statuses for your status profile and specify whether a user status is to be activated immediately. Activated immediately means that the user status is set automatically when an order is created.

In our example, the user statuses GR and NoGR were defined for status profile ZPP00003. The user status NoGR is initially set when the order is created. 

Display the statuses in the production order after order creation. System status CRTD Created, User statuses GR Goods Receipt enabled (not set yet) and NoGR Goods Receipt forbidden (initially set), and Status Profile ZPP00003 highlighted.

In the previous figure, for example, you can see that the status profile ZPP00003 was assigned to production order 1000021 when the order was created. The user status NoGR was initially activated. The user status GR is not activated yet.

Double click on Define Business Transaction Control to be blocked with the selected profile ZPP00003 and user status NoGR in the configuration activity Define Business Transaction. Business transaction Goods receipt for production order is blocked.

In the Define Transactions to Be Blocked view, you can specify the business transactions to be blocked by the selected user status.

In our example, the business transaction Goods Receipt for Production Order is blocked by the user status NoGR. This means that when an order is created, the user status NoGR is initially activated and a goods receipt posting for the order is therefore prohibited.     

Double click on Define Activating/Deactivating BTs with the selected profile ZPP00003 and user status NoGR in the configuration activity Define Business Transaction Control. Business transaction Confirm order deactivates the blocking of user status NoGR.

In the Define Activating/Deactivating BTs view, you can assign business transactions to a user status and define whether these business transactions activate or deactivate a user status.  

In our example, the user status GrNO is deactivated by executing the business transaction Confirm Order. This means that when the order is confirmed, the user status NoGR is deactivated and a goods receipt posting for the order is enabled.   

Double click on Define Activating/Deactivating BTs with the selected profile ZPP00003 and user status GR in the configuration activity Define Business Transaction Control. Business transaction Confirm order activates the user status GR.

In our example, the user status GR is also activated when the order is confirmed. This is for information purposes only. This status does not affect business transactions; no entry is defined in the Define Business Transactions view.

Review the changes to the statuses in the production order after confirmation. System status CNFD Confirmed and user status GR Goods Receipt enabled are set, user status NoGR Goods Receipt forbidden is deactivated.

In the previous figure, you can see that as a result of the order confirmation the NoGR user status was deactivated and the GR user status was activated.

Video Tutorial

Play the following video to learn how to define a Status Profile for a Production Order.

Log in to track your progress & complete quizzes