Sub topic 6
Sales views: sales organization and plant-level sales data
This chapter assumes you know the organizational levels (client, plant, sales area) and the idea that the material master is split into views. You should also be able to navigate SAP GUI transactions such as MM01 and MM03.
Two sales views, two levels
Sales data is not kept in one place. It is split across two views because it belongs to two different organizational levels.
- Sales: sales org. data 1 and 2 are stored per sales area. A sales area is a sales organization plus a distribution channel. These views hold data that can differ by how you sell: delivering plant, sales unit, tax classification, and the material's pricing and statistics groups.
- Sales: General/Plant data is stored per plant. It holds data that depends on where the goods ship from: availability check, transportation group, loading group, and batch management indicator.
In the tables, sales area data sits in MVKE. Plant-level sales data sits in MARC, the same table as the plant views.
Key fields
| Field | View | Purpose |
|---|---|---|
| Delivering plant | Sales org. data 1 | Default plant for delivery in sales orders |
| Sales unit | Sales org. data 1 | Unit used in sales documents, converted from the base unit |
| Tax classification | Sales org. data 1 | Drives tax determination in billing |
| Material pricing group | Sales org. data 2 | Used in pricing and statistics |
| Item category group | Sales org. data 2 | Helps determine the item category in sales documents |
| Availability check | Sales: General/Plant | Controls how stock and receipts are checked against requirements |
| Transportation group | Sales: General/Plant | Used in shipping and route determination |
| Loading group | Sales: General/Plant | Used in shipping point determination |
The sales unit only works if a conversion to the base unit exists on the Basic Data view. If the sales unit is carton and the base unit is each, the alternative unit of measure must define how many each make one carton.
Why the delivering plant matters
A sales order for a material needs a plant to ship from. The system proposes the delivering plant from the material master, among other sources. If the field is empty, or the material has not been extended to that plant, order entry fails or needs manual correction. Extending a material to a sales area therefore also means choosing a delivering plant that already holds the plant data for that material.
Reading sales data with ABAP SQL
The following query lists the sales area data for one sales organization. It reads MVKE directly.
SELECT matnr,
vkorg,
vtweg,
dwerk,
vrkme
FROM mvke
WHERE vkorg = '1010'
AND vtweg = '10'
INTO TABLE @DATA(lt_sales)
UP TO 100 ROWS.Here dwerk is the delivering plant and vrkme is the sales unit.
Exercise
A material is sold in two distribution channels of the same sales organization but ships from one plant. Which sales data do you maintain once, and which do you maintain twice?
Show answer
The Sales: General/Plant data is maintained once, because it is stored per plant. The Sales org. data 1 and 2 views are maintained twice, once for each sales organization and distribution channel combination, because they are stored per sales area.