Symptom
How to change the production order status to 'Closed' automatically once the production order status changes to 'Finished'.
Environment
SAP Business ByDesign
Cause
When a production order is released, a corresponding production lot is created. The planned structure (operations, activities, and reporting points) and the planned data of the production order are copied to the production lot and used as a basis for creating production tasks and default values.
When the production tasks end, consequently, the production lot is finished, the production order is automatically finished as well.
When the production lot is closed, the production order is automatically closed as well.
Depending on the above definition, a Lot Closure Run can be created to mass close production lots. Consequently, the respective production orders will be automatically closed.
Resolution
There is no operation to change the production order status to 'Closed' automatically once the production order status changes to 'Finished', while a Lot Closure Run can be created and executed to close the production lot. As a result, the production order will be closed automatically.
Steps to create a Lot Closure Run:
-
Choose the Lot Closure Run subview.
-
Click New to open the New Automated Lot Closure Run quick activity.
-
On the General Data view, enter an ID and description for the run.
-
Specify further selection criteria for the run using the tabs available. The system automatically includes or excludes production orders based on these criteria. In the table and under each tab view, click Add Row to add a new row.
-
Filter production lots using a selection range
In the Inclusion/Exclusion field, click the arrow and choose Inclusion or Exclusion. In the Search Pattern field, click the arrow and choose Equals. In the From and To fields, select the start and end range for selection.
-
Filter production lots with reference to a particular selection
In the Inclusion/Exclusion field, click the arrow and choose Inclusion or Exclusion. In the Search Pattern field, click the arrow and choose the appropriate operator, for example Less than or Equal To. In the From field, select the business document for the selection, for example Product ID 1234. (1234 represents the product ID)
Repeat the steps outlined above to specify the selection criteria for each relevant tab.
-
-
At the top of the New Automated Lot Closure Run quick activity, click Save. Then click Close to return to the Automated Actions view.
The new lot closure run has been created and saved to the system. Now schedule a time for this run.
Steps to schedule a Lot Closure Run:
-
Choose the Lot Closure Run subview and click Schedule to open the Schedule Job quick activity.
-
Under Schedule , select the relevant option to schedule the run:
-
Select Start Immediately to execute the run immediately.
-
Select Run after Job and select a job. The run will be executed immediately after the specified job has been executed.
-
Select Single Run to define a date and time for the run.
-
Select Recurrence to execute the run at regular time intervals. In the recurrence list, choose a recurrence for the run, for example, daily, weekly, or monthly.
-
-
Click Save and Close after selecting the schedule run to return to the Automated Actions view.
See Also
Keywords
Production Order, Production Lot, Finished, Status, Lot Closure Run, Automatically closed, , KBA , AP-PE-ORD , Production Order , How To