Professional Documents
Culture Documents
MM Important Tables in Purchasing
MM Important Tables in Purchasing
Important Tables/Fields
Purchasing Documents
Thomas Klemm
Purchasing documents
Purchase Order (PO)
Request For Quotation (RFQ)
Contract (Agreement)
Delivery plan (Scheduling agreement)
KONV Document . . - . 6)
conditions
1) EKKO contains information about the type of the document, the vendor/
supplying plant and other informations valid for all items of the document;
2) EKPO contains information about what is ordered to which price; you can
order material (with or without material number!) or services; a document
contains between 1 and 99999 items;
3) In EKET we find the desired delivery date and the quantity we‘ve ordered
for each delivery date; for each item we can maintain between 1 and 9999
schedule lines;
4) In EKKN account assignment datas are stored (G/L account, cost center,
order,...); we need account assignment data every time, the material will not
be posted to stock; then the data are directly used at time of goods receipt
and invoice receipt to generate the financial document; it is possible to
enter between 1 and 99 account assignments for one item; if you‘ve more
than one account assignment the goods receipt can‘t be posted valuated,
means that then no financial document can be created;
sap customers are able to add own account assignment fields to EKKN
and other structures via customizing (IMG);
you‘ll find entries in table EKKN every time when EKPO-KNTTP ne space and
EKPO-KZVBR ne U;
5) Normally every document needs an output message record to send the information
to the vendor; the determination of output message records is customizable; there
are processes where you don‘t need information flow (e.g. stock transport order);
6)7) Regullarly the goods we order are not free and we‘ve to pay for them. In these
cases the item contains conditions; we can identify such items by the following fields:
- EKPO-REPOS ne space or EKPO-XCONDITIONS ne space (4.6C)
The following items can contain conditions (e.g. delivery costs):
- EKPO-REPOS eq space and EKPO-PSTYP eq 7 (stock transport order)
For the difference between document and time dependent conditions please
have a look at paper ‚CONDITIONS and PRICING‘; if possible to switch, this is
ruled by EKKO-STAKO which is filled from T161-STAKO (document type); the
document conditions are linked to the purchasing document through EKKO-KNUMV,
time dependent conditions through various Axxx condition table entries
8) Partners are used to store information about sender of the invoice, supplier of the
goods or another address where the po should be sent to; the determination of partners
and the options for maintaining them in the doucment is ruled by a partner scheme
stored in T161 (document type); for more information please read the paper ‚partners
in purchasing‘
9) Whether an item contains service data or not is ruled by the item category
(EKPO-PSTYP); service data and limits are necessary when EKPO-PSTYP = 1
(blanket po) or EKPO-PSTYP = 9 (service); the service data are linked to the po item
through EKPO-PACKNO, this is the key for the service database tables; for more
information please have a look at paper ‚services‘
10) Import data are necessary if the vendor belongs to another country than the
receiving plant; depending to the company code you can decide whether the
import data screens should be processed never, ever, for every import or only
if it is an import inside the EU (T001-IMPDA); the import data are linked to the
purchasing data through field EKKO-EXNUM which is the key of tables EIKP and
EIPO
11) Subcontracting components are necessary when item is of category ‚subcontracting‘
(EKPO-PSTYP = 3); there are different components stored for each schedule line;
RESB linked with EKET through field EKET-RSNUM; relinked via RESB-EBELN,
RESB-EBELP, RESB-ETENR;
12) Texts are possible on header and item level; texts are stored in database tables
STXH and STXL; header texts with TDOBJECT = EKKO, item texts with
TDOBJECT = EKPO; the possible text id‘s are customized (see various transactions
in menue OLME);
13) Changedocuments are written if you create or change a document; there are different
types of changedocuments:
Insert or delete a record (e.g. item, schedule line, account assignment data)
Change a record for each field of the record which is changed and the appropriate flag
in the data element of the field is switched on in DDIC one changedocument item is written
containing the old and the new value of the field
Note: not for all database tables in purchasing we do have changedocuments (KONV,
RESB,...)
Changedocuments are stored in tables CDHDR and CDPOS;
You will find all changedocuments for one document searching with
OBJECTCLAS = EINKBELEG and OBJECTID = EKKO-EBELN;
14) EKPV and VETVG are written for all items which need a delivery through LES
application; this is the case in stock transport orders (EKKO-RESWK ne space) and
return items (EKPO-RETPO ne space and EKPO-LFRET ne space); LES shipping is
only possible if the item has an material master;
most of the data of EKPV are derived via function module
SD_TRANSFERDATA_DETERMINE; EKPV-LEDAT is filled with the lowest shipping
date of all open schedule lines; a schedule line is open in that mind when
EKET-MENGE GT EKET-GLMNG; shipping date is determined through function
module ME_CALCULATE_LEDAT (beginning with 4.5);
VETVG is used from LES to create the deliveries; VETVG-LEDAT is calculated
as the minimum of EKPV-LEDAT of all items of the document; if VETVG-LEDAT
is 0 the record will be deleted;
15) EKUB is stored for stock transport orders (EKKO-RESWK ne space); the index is
used in MRP to display and calculate the requirements in the delivering plant
(EKKO-RESWK); if an item is no more open EKUB will be deleted (regullarly) to save
performance in ATP checks;
16) One EKBE record is written for every goods receipt (GR), invoice receipt (IR), delivery,
goods issue, service entry or down payment posted against a po or delivery plan item;
EKBE is used every time we need information about how many we‘ve received until
now, how many is invoiced, what is the open quantity of the item;
17) One EKBZ record is written for every delivery cost condition at time of goods and
invoice receipt; for delivery costs you have to maintain an additional invoice item;
To save performance there is the option to comprimize EKBE and EKBZ and to store
The original data in other data base tables EKBEH and EKBZH. This is used often for
Delivery plans because customer‘s are working with the same delivery plan over some
Years.
18) In EKES we store the information about confirmations and shipping notifications;
both are documents from the vendor to confirm that or at which time he can deliver the
ordered material and in what quantity; main purpose of EKES is that ATP/MRP can
calculate using the most actual knowledge about material flow; EKES is more actual
than EKET is;
19) One EKAB record is written every time you create an po or delivery plan item against
a contract item; EKAB is used every time you need information about the open quantity
of a contract item;
Key data
- MANDT client
- key field in all application data base tables, see ‚client concept‘
Status data
Status data
STATU status
- A RFQ with maintained quotation for 1 item at minimum
- Rest creation indicator gives information about
- Which application has created the document (e.g.: 1 -> APO, K -> BBP, F -> KANBAN)
- In which transaction the document was created (e.g.: B -> ME59, 9 -> ME21N)
Status data
Organizational data
Commercial data
- LIFNR vendor
- Supplier (vendor) of the goods or services
- Is filled in normal po‘s, can be filled as well in stock transport orders (especially cross company)
In each purchasing document you enter the supplier or the supplying plant!
- WAERS currency
- Each document has a document currency, default comes from vendor master, normally
the invoice will be send in this currency
SPRAS language
- Each document has a document language, default comes from vendor master, the
document is printed in this language, texts are determined in this language,
ZTERM, ZBD1T, ZBD1P, ZBD2T, ZBD2P, ZBD3T payment terms
- Are used during invoice verification and to calculate the effective price of an item
Reference data
Key data
- MANDT client
- see EKKO
Status data
- STATU status
- A RFQ item with maintained quotation
- F item originated from a production order, netplan or wbs element (PP)
- V item originated from a sales order (SD)
EKPO-STATU F and V are only possible if you create the po with reference to a requisition because
Both (PP and SD) are generating only requisitions and only when such a requisition is transfered
Into a po EKPO-STATU is set to F or V;
Organizational data
- WERKS plant
- receiving plant; the goods are delivered to this plant; default delivery adress comes from the
plant; many material data are different from plant to plant (delivery time); plants can have
different calendars, conditions and prices;
Commercial data
categories 4 and 8 are only used in contracts; category 6 text is not that important;
If we‘ve more than one account assignment for one item then you can choose between:
- no goods receipt
- Unvaluated goods receipt
Reference data
Reference data
Reference data
Key data
- MANDT client
- see EKKO
Status data
Commercial data
Status data
Status data
WEMNG, WAMNG and GLMNG are calculated in program SAPLEINU. The EKBE record
is transfered to SAPLEINU and then the appropriate field is en- or decreased. For correction
purposes a correction report is available via oss note.
All three fields are not necessary for purchasing purposes, because this is handled by the
EKBE records (what quantity is open? ...). The fields are only needed for MRP/ATP purposes
because otherwise it would be to time consuming to determine the open quantity and to
distribute the EKBE quantities to the delivery dates which is necessary for MRP/ATP.
Status data
Reference data