Checking of Changed Sales Orders
When you cancel a sales order in SAP Customer Relationship Management (SAP CRM) or in SAP ERP SD, or you change the requested quantity, you can specify whether the system is to consider the cancellation or the change in the demand history of the affected product.
When you cancel a sales order, you can assign a cancellation reason code to this sales order. For each cancellation reason code, you can specify whether the system considers the sales order despite the cancellation, when compiling historical data.
Note
It can be useful to consider a cancellation in the demand history if a customer withdraws an order, for example. If you cancel a sales order because you cannot fulfill it, it can be nonetheless useful to consider the sales order in the demand history, since the demand does exist even though it cannot be covered.
The system adopts cancellation reason codes from SAP CRM or SAP ERP SD. As part of Service Parts Planning, we deliver default cancellation reason codes. You can also use additional cancellation reason codes from SAP CRM or SAP ERP SD, and enter these in Customizing for Service Parts Planning.
When compiling historical data, the system checks whether cancellation reason codes exist for the sales orders. If cancellation reason codes exist for sales orders, the system handles these sales orders as you have defined in Customizing.
Recommendation
If you do not want to work with cancellation reason codes, you have not selected the Keep Orig. Demand
checkbox for the default cancellation reason codes &1
and &2
.
You have taken the cancellation reason codes you require from SAP CRM and SAP ERP SD and entered them in Customizing in the general settings for the demand history.
For more information, see the Implementation Guide (IMG) for Advanced Planning and Optimization
under .
When you cancel a sales order and assign a cancellation reason code to it in SAP CRM or SAP ERP SD that SAP SCM does not know (in other words, one that you have not included as a cancellation reason code in the general settings for the demand history), the system assigns the default cancellation reason code &1
to this sales order.
If you select the Keep Orig. Demand
checkbox for this default cancellation reason code, the system considers the sales order when generating the demand history. This means that the sales order remains stored in the DataStore object 9ARAWDAT
and in the InfoCube 9ADEMAND
.
Note
In this case, the system deletes the sales order in the Supply Chain Management system (SCM system). This means that the demand of the sales order continues to exist in the 9ARAWDAT
and 9ADEMAND
InfoProviders, but the sales order item no longer exists in the SCM system. If the system now runs a service for reorganizing the demand history when maintaining the historical data, it does not find a sales order item for the demand that exists in the InfoProvider, and therefore generates an error message. To prevent this, we recommend that you implement the Business Add-In (BAdI) BAdI: Adjust Interface Parameter for ATP Check
(/SAPAPO/PDEM_ATP_CHECK_IF
). For more information, see the IMG for Advanced Planning and Optimization
under .
If you do not select the Keep Orig. Demand
checkbox for this default cancellation reason code, the system does not consider the sales order when generating the demand history. This means that it deletes the sales order from the DataStore object 9ARAWDAT
and from the InfoCube 9ADEMAND
.
When you cancel a sales order and assign a cancellation reason code to it, the system checks whether you have selected the Keep Orig. Demand
checkbox for this cancellation reason code and handles it as described above.
When you reduce the quantity of a sales order, you cannot assign a cancellation reason code to the sales order in SAP CRM or SAP ERP SD for the quantity reduction. However, in SAP SCM, the system assigns the default cancellation reason code &2
to the sales order in which you have reduced the quantity.
If you select the Keep Orig. Demand
checkbox for this default cancellation reason code, the system considers the entire sales order when generating the demand history. This means that the entire sales order remains stored in the DataStore object 9ARAWDAT
and in the InfoCube 9ADEMAND
.
If you do not select the Keep Orig. Demand
checkbox for this default cancellation reason code, the system consider the sales order when generating the demand history, but reduces the quantity accordingly. This means that it changes the quantity in the DataStore object 9ARAWDAT
and in the InfoCube 9ADEMAND
.
When you increase the quantity of a sales order, the system considers the increased quantity in the demand history.
When you change the entries in one or more date fields in a sales order, for example, the delivery date, the system considers this change in the demand history.
Recommendation
If you change a date field in the sales order and then, before you load this change to the Business Intelligence system of SAP SCM, you cancel the sales order or change the quantity field and you have selected the Keep Orig. Demand
checkbox for the default cancellation reason code &2
, the system does not consider your change to the other date field. In this case, the system considers the cancellation or the quantity change only. To prevent this, we recommend that you schedule the upload of data to the Business Intelligence system at short intervals (for example, every 10 minutes).
In Customizing, select the Keep Orig. Demand
checkbox in the general settings for demand history for those cancellation reason codes whose assigned sales orders you want to consider when generating the demand history.