!--a11y-->
Integration of Commodity Pricing
in SD Sales Documents 
You use this function if you want to carry out pricing for commodities in sales documents. Pricing for commodities is based on agreed complex pricing rules rather than on fixed prices or amounts. These complex rules determine how price quotations and exchange rates are used to calculate the price of the sales document.
You use the commodity pricing engine (CPE) in the transactional context of price-relevant sales documents.
For more information, see Integration in SD Pricing.
· You have made the necessary settings in SAP Solution Manager.
· You use a sales process that begins in SAP CRM.
You can use the following functions in SD sales documents:
· For each sales document, the system saves either a document-specific CPE formula or a reference to a CPE formula in Customizing.
· You can edit both variants of the CPE formula in the document’s original system.
· Each CPE formula refers to a different condition type. The condition type must contain the calculation type Q.
· Within each document, there are default formulas at header level that are not valuated, and formulas at item level that are valuated.
· When you call pricing, the CPE formulas at document item level are valuated. The formula results influence the net price of the document item at condition type level.
· To display or change CPE formulas, on the Conditions tab page at sales document item level, choose the symbol with the quick info text Formula Details.
· You can only create sales orders using a programming interface if you use the CRM Middleware interface.
The system supports the following document types:
· Sales orders and related document types that can be exchanged between SAP CRM and the ERP system.
· Invoices
