You are on page 1of 36

SAP Table Relations

version 1.0.0
compiled by

Christopher Solomon
with contributions by various SAP Professionals

How to use this document?

This document displays and describes the relationships and links between the various SAP database tables. These relationships are displayed graphically as described below:

Table Key
Transparent Table Cluster Table

SAP Table Name (Table Description) SAP Field Name (Field Description)

SAP Table Information

SAP Table Name (Table Description) SAP Field Name (Field Description)

Useful Fields

Link Key
One-to-One One One-to-Many One Many One

Master Data Tables

CEPC = Profit Center Master Data Table CSKS = Cost Center Master KNA1 = Cutomer Master (General Data) LFA1 = Vendor Master (General Data) MARA = Material Master (General Data) SKB1 = G/L Account Master (Company Code) T001W = Plants/Branches T001 = Company Codes

SAP - FI/CO

Accounts Payable

Reconcillation Ledger

General Ledger

Financial Accounting

Special Purpose Ledger

Custom Ledger Accounts Receivable Controlling

Profit Center Accounting

Cost Center Accounting

Tables: BSAD BSAS BSEG BSES BSIK BSIS

FI/CO
Table Mapping

BVOR (Intercompany posting procedures) Intercompany No (BVORG) Company Code (BUKRS) Fiscal Year (GJAHR) Document No (BELNR)

PAYR (Payment transfer medium file) Paying Company (ZBUKR) House Bank (HBKID) Account (HKTID) Payment Method (ZLSCH) Check No (CHECKT) VBLNR BKPF (Accounting document header) Company Code (BUKRS) Document No (BELNR) Fiscal Year (GJAHR) All FI documents

BSIP (Index for vendor validation of double documents) Company Code (BUKRS) Vendor (LIFNR) Currency (WAERS) Document Date (BLDAT) Duplicate Invoices Reference Doc (WRBTR) Amount (WRBTR) Document No (BELNR) Fiscal Year (GJAHR) Line Items (BUZEI)

BSAD (Accounting: Secondary index for customers (cleared items)) Company Code (BUKRS) Customer (KUNNR) Special G/L Trans (UMSKS) Special G/L Ind (UMSKZ) Clearing Date (AUGDT) Clearing Doc (AUGBL) Allocation No (ZUONR) Fiscal Year (GJAHR) Document No (BELNR) Line Items (BUZEI)

Closed items

Open Items

Open Items BSID (Accounting: Secondary index for customers) Company Code (BUKRS) Customer (KUNNR) Special G/L Trans (UMSKS) Special G/L Ind (UMSKZ) Clearing Date (AUGDT) Clearing Doc (AUGBL) Allocation No (ZUONR) Fiscal Year (GJAHR) Document No (BELNR) Line Items (BUZEI)

BSEG (Accounting document segment) Company Code (BUKRS) Document No (BELNR) Fiscal Year (GJAHR) Line Item (BUZEI)

BSIK (Accounting: Secondary index for vendors) Company Code (BUKRS) Vendor (LIFNR) Special G/L Trans (UMSKS) Special G/L Ind (UMSKZ) Clearing Date (AUGDT) Clearing Doc (AUGBL) Allocation No (ZUONR) Fiscal Year (GJAHR) Document No (BELNR) Line Items (BUZEI)

Closed items

Open Items

Closed items

BSAK (Accounting: Secondary index for vendors (cleared items)) Company Code (BUKRS) Vendor (LIFNR) Special G/L Trans (UMSKS) Special G/L Ind (UMSKZ) Clearing Date (AUGDT) Clearing Doc (AUGBL) Allocation No (ZUONR) Fiscal Year (GJAHR) Document No (BELNR) Line Items (BUZEI) KNC1 (Customer master (trans figures)) Customer (KUNNR) Company Code (BUKRS) Fiscal Year (GJAHR)

BSIS Company Code (BUKRS) G/L Account (HKONT) Clearing Date (AUGDT) Clearing Doc (AUGBL) Allocation No (ZUONR) Fiscal Year (GJAHR) Document No (BELNR) Line Items (BUZEI)

BSAS (Accounting: Secondary index for G/L accounts (cleared items)) Company Code (BUKRS) G/L Account (HKONT) Clearing Date (AUGDT) Clearing Doc (AUGBL) Allocation No (ZUONR) Fiscal Year (GJAHR) Document No (BELNR) Line Items (BUZEI)

LFC1 (Vendor master (transaction figures)) Vendor (LIFNR) Company Code (BUKRS) Fiscal Year (GJAHR)

SAP FI/CO Financial Accounting

BKPF (Accounting document header) Company Code Document No Fiscal Year BSEC BSED BSEG BSES BSET

RFBLG (Cluster for accounting document)

Physical

BSEG (Accounting document segment)


en ts

F ll

do

um

Company Code Document No Fiscal Year Line Item

BKPF (Accounting document header) Company Code Document No Fiscal Year

One time accounts

Ta

do

cu

BSEC (One-time account data document segment) Company Code Document No Fiscal Year Line Item

Logical

en

ts
BSET (Tax data document segment) Company Code Document No Fiscal Year Line Item

SAP FI/CO
Controlling
Profit Center Accounting
GLPCT (EC-PCA: Totals Table) Ledger(RLDNR) Record Type (RRCTY) Plan Version (RVERS) Fiscal Year (GJAHR) Object (ROBJNR) Object (COBJNR) Object (SOBJNR) Currency (RTCUR) UOM (RUNIT) Debit/Credit Ind (DRCRX) Period (RPMAX) GLPCA (EC-PCA: Actual Line Items) Record No (GL_SIRID)

Special Purpose Ledger

Example of a Custom Ledger


ZZGLO

ROBJNR GLPCO (EC-PCA: Object Table for Account Assignment Elements) Object (OBJNR)

Object (OBJNR) ROBJNR ZZGLT Ledger(RLDNR) Record Type (RRCTY) Version (RVERS) Fiscal Year (GJAHR) Object (ROBJNR) Object (SOBJNR) Currency (RTCUR) UOM (RUNIT) Debit/Credit Ind (DRCRX) Period (RPMAX)

COBJNR

ZZGLO Record No (GL_SIRID) GLPCC (EC-PCA: Transaction Attributes) Object (OBJNR)

________________________________________________________
Cost Center Accounting
COSP (CO Object: Cost Totals - External Postings) Ledger (LEDNR) Object (J_OBJNR) Fiscal Year (GJAHR) Value Type (WRTTP) Version (VERSN) Cost Element (KSTAR) CO Key (HRKFT) CO Trans (VRGNG) Trading Part ID (VBUND) Trading Part BA (PARGB) Debit/Credit Ind (BEKNZ) Currency (TWAER) Period Block (PERBL) COEP (CO object: period-related line items) Controlling Area (KOKRS) Document No (BELNR) Line Item (BUZEI)

Reconcillation Ledger
COFIT (Totals records - reconciliation ledger) Ledger(RLDNR) Record Type (RRCTY) Version (RVERS) Fiscal Year (GJAHR) Object (ROBJNR) Object (COBJNR) Object (SOBJNR) Currency (RTCUR) UOM (RUNIT) Debit/Credit Ind (DRCRX) Period (RPMAX)
CO BJ

NR

COFIO2 (Transaction-dependent fields for reconciliation ledger) Object (OBJNR)

ROBJNR

COBK Controlling Area (KOKRS) Document No (BELNR)

COFIO1 (Object Table for Reconciliation Ledger COFIT) Object (OBJNR)

SAP FI/CO
Accounts Payable

Vendor Master Data

Purchasing Data

General Data

Company Code Data

LFM1 (Vendor master record purchasing organization data) Vendor No (LIFNR) Purch Org (EKORG)

LFA1 (Vendor master (general section)) Vendor No (LIFNR)

LFB1 (Vendor master (company code)) Vendor No (LIFNR) Company Code (BUKRS)

LFM2 (Vendor Master Record: Purchasing Data) Vendor No (LIFNR) Purch Org (EKORG) Sub-range (LTSNR) Plant (WERKS)

LFBK (Vendor master (bank details)) Vendor No (LIFNR) Bank Cntry (BANKS) Bank Key (BANKL) Bank Acc (BANKN)

LFB5 (Vendor master (dunning data)) Vendor No (LIFNR) Company Code (BUKRS) Dunning Area (MABER)

SAP FI/CO
Accounts Receivable

Customer Master Data

Sales Area Data

General Data

Company Code Data

KNVP (Customer Master Partner Functions) Customer No (KUNNR) Sales Org (VKORG) Distribution Ch (VTWEG) Division (SPART) Partner Function (PARVW) Partner Counter (PARZA) KNA1 (General Data in Customer Master) Customer No (KUNNR) KNB1 (Customer master (company code)) Customer No (KUNNR) Company Code (BUKRS)

KNVV (Customer Master Sales Data) Customer No (KUNNR) Sales Org (VKORG) Distribution Ch (VTWEG) Division (SPART) KNB5 (Customer master (dunning data)) Customer No (KUNNR) Company Code (BUKRS) Dunning Area (MABER)

KNVD (Customer master record sales request form) Customer No (KUNNR) Sales Org (VKORG) Distribution Ch (VTWEG) Division (SPART) Output Type (NA_KSCHL) Mess Language (SPRAS)

SAP FI/CO
Master Data
Cost Elemet Cost Center
CSKA (Cost elements (data dependent on chart of accounts)) COA (KTOPL) Cost Element (KSTAR)

Profit Center

CEPC (Profit center master data table) Profit Center (PRCTR) Valid to Date (DATBI) Controlling Area (KOKRS)

CSKS (Cost center master) Controlling Area (KOKRS) Cost Center (KOSTL) Valid to Date (DATBI)

CSKB (Cost elements (data dependent on controlling area)) Controlling Area (KOKRS) COA (KTOPL) Cost Element (KSTAR) Valid to Date (DATBI) CEPCT (Texts for Profit Center Master Data) Language (SPRAS) Profit Center (PRCTR) Valid to Date (DATBI) Controlling Area (KOKRS) CSKT (Cost Center Texts) Language (SPRAS) Controlling Area (KOKRS) Cost Center (KOSTL) Valid to Date (DATBI)

CSKU (Cost Element Texts) Language (SPRAS) COA (KTOPL) Cost Element (KSTAR)

General Ledger

SKB1 (G/L account master (company code)) Company Code (BUKRS) G/L Account (SAKNR)

SKA1 (G/L accounts master (chart of accounts)) COA (KTOPL) G/L Account (SAKNR)

SKAT (G/L account master record (chart of accounts: description)) Language (SPRAS) COA (KTOPL) G/L Account (SAKNR)

SAP - Materials Management

Purchasing

Materials Management

Materials Management

Financial Accounting

Accounts Payable

Invoice Verification

Tables: EKKO EKPO KNMT MAKT

KNMT (Customer-Material Info Record Data Table)


makt-matnr = knmt-matnr and makt-spras = sy-langu

MAKT (Material Description) MDKP (MRP Header)

EKKO (Purchasing Doc Header)

MDKP-DTNUM = MDTB-DTNUM EKPO-EBELN = EKKO-EBELN

EKPO (Purchasing Doc Item)

MDTB (MRP Detail)

MM
Table Mapping

SAP MM - Purchasing Purchasing Requisition

STXH (STXD SAPscript text file header) Texts (TDOBJECT) Text Name (TDNAME) Text Id (TDID) Language (TDSPRAS)

EBAN (Purchase Requisition) Purchasing Req (BANFN) Item (BNFPO)

EBKN (Purchase Requisition Account Assignment) Purchasing Req (BANFN) Item (BNFPO) Preg Account Assignment (ZEBKN)

STXL (STXD SAPscript text file lines)) (RELID) Texts (TDOBJECT) Text Name (TDNAME) Text Id (TDID) Language (TDSPRAS) (SRTF2)

SAP MM - Purchasing Purchase Orders


S011 (PURCH: Purch. Group Statistics) Statistics (SSOUR) Version (VRSIO) Month (SPMON) Day (SPTAG) Week (SPWOC) Posting Period (SPBUP) Purchasing Org (EKORG) Purchasing Group (EKGRP) Vendor No (LIFNR) S012 (PURCHIS: Purchasing Statistics) Statistics (SSOUR) Version (VRSIO) Month (SPMON) Day (SPTAG) Week (SPWOC) Posting Period (SPBUP) Purchasing Org (EKORG) Purchasing Group (EKGRP) Material No (MATNR) Plant (WERKS) Info Record Category (ESOKZ) Material Group (MATKL) Info Record (INFNR) Country (LAND1) EINE (Purchasing Info Record: Purchasing Organization Data) Info Record (INFNR) Purchasing Org (EKORG) Info Record Type (ESOKZ) Plant (WEKS)

EKET (Delivery Schedules) Purchasing Doc (EBELN) Item (EBELP) Delivery Schedule (ETENR) EKPO (Purchasing Document Item) Purchasing Doc (EBELN) Item (EBELP) EINA (Purch Info Record: General Data) Info Record (INFNR)

EKKN (Account Assignment in Purchasing Document) Purchasing Doc (EBELN) Item (EBELP) Account Assignment (ZEKKN)

EKKO (Purchasing Document Header) Purchasing Doc (EBELN)

EORD (Purchasing Source List) Material No (MATNR) Plant (WERKS) Source List No (ZEORD)

SAP MM - Purchasing Goods Receipt

MKPF (Header: Material Document) Document No (MBLNR) Fiscal Year (MJAHR)

MSEG (Document Segment: Material) Document No (MBLNR) Fiscal Year (MJAHR) Line Item (ZEILE)

S011 (PURCHIS: Purchasing Group Statistics) Statistics (SSOUR) Version (VRSIO) Month (SPMON) Day (SPTAG) Week (SPWOC) Posting Period (SPBUP) Purchasing Org (EKORG) Purchasing Group (EKGRP) Vendor No (LIFNR)

EKBE (History of Purchasing Document) Purchasing Doc (EBELN) Item (EBELP) Account Assign (ZEKKN) Trans Type (VGABE) Fiscal Year (MJAHR) Document No (MBLNR) Line Item (ZEILE)

MVER (Material consumption) Material NO (MATNR) Plant (WERKS) Fiscal Year (GJAHR) Period (PERKZ) Follow-on Records (ZAHLR)

S031 (Statistics: Movements for current stocks) Statistics (SSOUR) Version (VRSIO) Month (SPMON) Day (SPTAG) Week (SPWOC) Posting Period (SPBUP) Plant (WERKS) Material No (MATNR) Storage Loc (LGORT)

S013 (PURCHIS: Statistics for Vendor Evaluation) Statistics (SSOUR) Version (VRSIO) Month (SPMON) Day (SPTAG) Week (SPWOC) Posting Period (SPBUP) Purchasing Org (EKORG) Purchasing Group (EKGRP) Vendor No (LIFNR) Material No (MATNR) Plant (WERKS) Info Record Cat (ESOKZ) Info Record (INFNR)

SAP MM - Master Data

Purchasing Data
MARC (Material Master: C Segment) Material No (MATNR) Plant (WERKS)

Basic Data
MAKT (Material Descriptions) Material No (MATNR) Language (SPRAS)

Accounting Data

MARA (Material Master: General Data) Material No (MATNR)

MBEW (Material Valuation) Material No (MATNR) Valuation Area (BWKEY) Valuation Type (BWTAR)

MLAN (Tax Classification: Material) Material No (MATNR) Country (ALAND)

MARM (Units of Measure) Material No (MATNR) UOM (MEINH)

SAP MM - Purchasing

Purchasing Info Record

KONP (Conditions (Item)) Condition No (KNUMH) Seq No (KOPOS)

KONH (Conditions (Header)) Condition No (KNUMH)

EINA (Purchasing Info Record: General Data) Info Record (INFNR)

EINE (Purchasing Info Record: Purchasing Organization Data) Info Record (INFNR) Purchasing Org (EKORG) Info Record Type (ESOKZ) Plant (WERKS)

A017 (Material Info Record (Plant-Specific)) Application (KAPPL) Condition Type (KSCHL) Vendor (LIFNR) Material No (MATNR) Purchasing Org (EKORG) Plant (WERKS) Info Record Category (ESOKZ) Validity (DATBI)

SAP - Project Planning

Project Planning

PROJ (Project Definition)

PRPS-PSPHI = PROJ-PSPNR

PRPS (WBS Elements)

PRPS-PSPNR = PRTE-POSNR and PRPS-PSPHI= PRTE-PSPHI

PRTE (Schedule Data for Proj. Item)

PRTX-PRPSPNR = PRTE-POSNR

PRTX (Texts(WBS))

PRPS-PSPNR = PRHIS-POSNR and PRPS-PSPHI= PRHIS-PSPHI

PRTX-PRTXTKY = PSTX-PRTXTKY

PSTX (Project Texts (Header)) PRHIS (Proj. Hierarchy for WBS Element)

PSTX-PRTXTKY = PSTT-PRTXTKY

PSTT (Project Texts)

PP
Table Mapping

SAP PP - Project Planning

PROJECTS Project and WBS element numbers have a domain with a conversion function module which converts it from 8 numc input to 24 char on output.

PROJ (Project definition) Project Number (PSPNR) Project Name (PSPID)

PRTE (Scheduling Data for Project Item) PRPS (WBS (Work Breakdown Structure) Element Master Data)) Project Number (PSPHI) WBS Element Number (PSPNR) WBS Name (POSID) Project Number (PSPHI) WBS Element Number (POSNR)

PRTX (PS Texts (WBS)) WBS Element Number (PRPSPNR) Text Identifier (PRTXTKY) PRHIS (Standard WBS, Edges (Hierarchy pointers)) Project Number (PSPHI) WBS Element Number (POSNR) PSTX (PS Texts (Header)) Text Identifier (PRTXTKY) PS text description (PSTXTTI)

PSTT (PS texts (description)) Text Identifier (PRTXTKY) PS text: Description(PTKTEXT)

SAP - Sales and Distribution

Sales Finacial Accounting Accounts Receivable

Shipping

Sales and Distribution

Materials Mgmt. Billing

Material Master

Tables: KONV LIKP LIPS VBAK VBAP VBBE VBEH VBEP VBFA VBLB VBLK VBPA VBRK VBRP VBUK VBUP VEKP VEPO VEPVG

Sales/Order Document

Shipping/Delivery Document

Billing Document

VBBE (Sales Requirements)

VBLB (Release Order Data)


VBLB-VBELN= VBAK-VBELN

VBLK (SD:Delivery Note Header)

VEPO (SD Doc:Shipping Item content)


VEPO-VENUM = VEKP-VENUM

KONV (Condition Table)


VBRK-KNUMV = KONV-KNUMV

VBSK (Collective Proc. for a Sales Doc Header)

VBBE-VBELN= VBAK-VBELN

VBPA (Partner Table)

VEPO-VBELN = LIKP-VBELN VEPO-VBELN = VBLK-VBELN

VBAK (Sales Doc:Header)

VBPA-VBELN= VBAK-VBELN VBPA-POSNR= VBAP-POSNR VBAK-VBELN = VBAP-VBELN

LIKP (Sales Doc:Delivery VTTP-VBELN = Header)


LIKP-VBELN

VEKP (SD Doc:Shipping Unit Header)

VBSS (Collective Proc.: Sales Documents) VKDFS (SD Index: Billing Initiator)

VEPVG (Delivery Due Index) VKDFS (SD Index: Billing Initiator) VAPMA (SD Index: Order Items by Material)
VBEP-VBELN = VBAK-VBELN

VBAP (Sales Doc:Item Info)

VTTP (Shipment Item)


VBPA-VBELN = LIPS-VGBEL LIPS-VBELN = LIKP-VBELN VTTK-TKNUM = VTTP-TKNUM

VBRK (Billing: Header data)

NAST (Message Status)


VBRK-VBELN = VBRP-VBELN

VBEP-VBELN = VBAP-VBELN and VBAP-POSNR = VBEP-POSNR

VBKD-VBELN = VBAP-VBELN and VBKD-POSNR = VBAP-POSNR

LIPS-VGBEL = VBAP-VBELN and LIPS-VGPOS = VBAP-POSNR

VTTK (Shipment Header)

VAKPA (SD Index: Order by Partner Function)

VBEP (Sales Doc:Schedule Lines)


VBELN POSNR ETENR

VBKD (Sales Doc: Business Data) VBFA (Doc. Flow)

LIPS (Sales Doc:Delivery Items)

VRPMA (SD Index: Billing Items per Material) VRKPA (SD Index: Bills by Partner Function)

LIPS-VBELN = VBRP-VGBEL LIPS-POSNR= VBRP-VGPOS

VBRP (Billing: Item data)

vbelv = preceeding document vbeln = subsequent doc

VBUK (Header Status) VBUP (Item Status))

vbeln = document number

SD
Table Mapping

VBEH (Schedule Line History)

vbeln = document number ;use with VBAP and LIPs

SAP SD - Sales Tables


VKDFS (SD Index:Billing Initiator) Billing Cat (FKTYP) Sales Org (VKORG) Billing Date (FKDAT) Customer (KUNNR) Billing Type (FKART) Country (LLAND) Sales doc (VBELN) STXH (STXD SAPscript text file header) Texts (TDOBJECT) Text Name (TDNAME) Text Id (TDID) Language (TDSPRAS) STXL (STXD SAPscript text file lines) (RELID) Texts (TDOBJECT) Text Name (TDNAME) Text Id (TDID) Language (TDSPRAS) (SRTF2)

VBUK (Header Status) Sales doc (VBELN)

VAPMA (SD Index:Order Items by Material) Material No (MATNR) Sales Org (VKORG) Trans Group (TRVOG) Document Date (AUDAT) Distribution Channel (VTWEG) Division (SPART) Document Type (AUART) Sold-to-Party (KUNNR) Sales Office (VKBUR) Sales Group (VKGRP) Customer PO No (BSTNK) User Name (ERNAM) Sales Ord (VBELN) Item (POSNR)

VBFA (Sales Document Flow) VBAK (Sales Document :Header) Sales doc (VBELN) VBUP (Item Status) Sales doc (VBELN) Item (POSNR) Preceding Sales Doc (VBELV) Preceding Item (POSNV) Subsequent Sales doc (VBELN) Subsequent Item (POSNN) Document Cat (VBTYP_N)

VAKPA (SD Index:Order by Partner Function) Partner No (KUNDE) Partner Function (PARVW) Sales Org (VKORG) Trans Group (TRVOG) Document Date (AUDAT) Sales Office (VKBUR) Sales Group (VKGRP) Distribution Channel (VTWEG) Division (SPART) Document Type (AUART) Customer PO No (BSTNK) Sold-to-Party (KUNNR) User Name (ERNAM) Sales Ord (VBELN)

VBAP (Sales Document : Item Info) Sales doc (VBELN) Item (POSNR)

To Shipping through LIPS LIPS-VGBEL = VBAP-VBELN and LIPS-VGPOS = VBAP-POSNR

VBEP (Sales Document : Schedule Lines) Sales doc (VBELN) Item (POSNR) Schedle Line (ETENR)

VBKD (Sales Document : Business Data) Sales doc (VBELN) Item (POSNR)

VBEH (Schedule Line History) Sales doc (VBELN) Item (POSNR) Schedle Line (ETENR)

VBPA (Sales Document :Partner) Sales doc (VBELN) Item (POSNR) Partner Function (PARVW)

SAP SD - Shipping Tables


VTTP (Shipment Item) Delivery Doc Number(VBELN) Shipment Number (TKNUM) Shipment Item (TPNUM) VTTK-TKNUM = VTTP-TKNUM VTTK (Shipment Header) Shipment Number (TKNUM) VTTP-VBELN = LIKP-VBELN VBLK-VBELN = LIKP-VBELN VEPO (SD Doc:Shipping Item content) Delivery Document Number (VBELN) Delivery Item (POSNR) Shipping Unit Number (VENUM) Shipping Unit Item (VEPOS)

VBLK (SD:Delivery Note Header) Delivery Document Number (VBELN)

LIKP (Sales Doc:Delivery Header) Delivery Document Number (VBELN)

VTFA (Shipment Doc. Flow) Shipment Number (TKNUM) Preceeding Doc. (VBELV) VBUK (Header Status) Delivery doc (VBELN) VEPO-VBELN = LIPS-VBELN and VEPO-POSNR = LIPS-POSNR

VEPO-VENUM = VEKP-VENUM

VEKP (SD Doc:Shipping Unit Header) Shipping Unit Number(VENUM)

VBFA (Sales Document Flow) Preceding Sales Doc (VBELV) Preceding Item (POSNV) Subsequent Sales doc (VBELN) Subsequent Item (POSNN) Document Cat (VBTYP_N) VBUP (Item Status) Deliverydoc (VBELN) Item (POSNR)

LIPS-VBELN = LIKP-VBELN

From Sales throughVBAP LIPS-VGBEL = VBAP-VBELN and LIPS-VGPOS = VBAP-POSNR

LIPS (Sales Doc:Delivery Items) Delivery Document Number (VBELN) Item (POSNR)

To Biling through VBRP VBRP-VGBEL = LIPS-VBELN and VBRP-VGPOS = LIPS-POSNR

SAP SD - Billing Tables

VRKPA (Sales Index: Bills by Partner Functions) Partner No (KUNDE) Partner Function (PARVW) Sales Org (VKORG) Billing Date (FKDAT) Distribution Channel (VTWEG) Billing Type (FKART) Payer (KUNNR) Sold-to-Party (KUNNR) SD Doc Cat (VBTYP) User Name (ERNAM) Billing Doc (VBELN)

VKDFS (SD Index: Billing Initiator) Billing Cat (FKTYP) Sales Org (VKORG) Billing Date (FKDAT) Customer (KUNNR) Billing Type (FKART) Country (LLAND) Sales doc (VBELN)

VBSK (Collective Processing for a Sales Document Header) Grouped Delivery (SAMMG)

VBSS (Collective Processing: Sales Documents) Grouped Delivery (SAMMG) Sales doc (VBELN)

NAST (Billing: Header Data) Application (KAPPL) Object (OBJKY) Output Type (KSCHL) Language (SPRAS) Mess Partner (PARNR) Partner Func (PARVW) Date (ERDAT) Time (ERUHR)

VRPMA (SD Index: Billing Items per Material) Material No (MATNR) Sales Org (VKORG) Billing Date (FKDAT) Distribution Channel (VTWEG) Billing Type (FKART) Payer (KUNNR) Sold-to-Party (KUNNR) SD Doc Cat (VBTYP) User Name (ERNAM) Billing Doc (VBELN) Item (POSNR)

VBRK (Billing: Header Data) Billing doc (VBELN)

VBUK (Header Status) Sales doc (VBELN)

VBRP (Billing: Item Data) Billing doc (VBELN) Item (POSNR) From Shipping through LIPS VBRP-VGBEL = LIPS-VBELN and VBRP-VGPOS = LIPS-POSNR VBUP (Sales Document: Item Status) Sales doc (VBELN) Item (POSNR) VBFA (Sales Document Flow) Preceding Sales Doc (VBELV) Preceding Item (POSNV) Subsequent Sales doc (VBELN) Subsequent Item (POSNN) Document Cat (VBTYP_N)

SAP SD - Links to FI Tables

Customer Master Data

Sales Area Data


KNVP (Customer Master Partner Functions) Customer No (KUNNR) Sales Org (VKORG) Distribution Ch (VTWEG) Division (SPART) Partner Function (PARVW) Partner Counter (PARZA)

General Data

Company Code Data

KNA1 (General Data in Customer Master) Customer No (KUNNR)

KNB1 (Customer master (company code)) Customer No (KUNNR) Company Code (BUKRS)

KNVV (Customer Master Sales Data) Customer No (KUNNR) Sales Org (VKORG) Distribution Ch (VTWEG) Division (SPART)

KNB5 (Customer master (dunning data)) Customer No (KUNNR) Companu Code (BUKRS) Dunning Area (MABER)

KNVD (Customer master record sales request form) Customer No (KUNNR) Sales Org (VKORG) Distribution Ch (VTWEG) Division (SPART) Output Type (

SAP SD - Links to MM Tables

Material Master Data

Sales Data
MARC (Material Master: C Segment) Material No (MATNR) Plant (WERKS)

Basic Data

Sales Text Data

MAKT (Material Descriptions) Material No (MATNR) Language (SPRAS) STXH (STXD SAPscript text file header) Texts (TDOBJECT) Text Name (TDNAME) Text Id (TDID) Language (TDSPRAS) MARA (Material Master: General Data) Material No (MATNR)

MVKE (Material Master: Sales Data) Material No (MATNR) Sales Org (VKORG) Distribution Chan (VTWEG) Product Hierarchy (PRODH)

T179 (Materials: Product Hierarchies) Product Hierarchy (PRODH) *use to ge text for hiearchy levels MARM (Units of Measure) MLAN (Tax Classification: Material) Material No (MATNR) Country (ALAND) Material No (MATNR) UOM (MEINH) STXL (STXD SAPscript text file lines) (RELID) Texts (TDOBJECT) Text Name (TDNAME) Text Id (TDID) Language (TDSPRAS) (SRTF2)

Contributions by

Master Data
Jim Lewis (Whittman-Hart, inc.)

FI/CO
Michael Rhodes (MedPartners, inc.)

HR

MM
Jim Lewis (Whittman-Hart, inc.) Michael Rhodes (MedPartners, inc.)

PP

SD
Paul Evans (Whittman-Hart, inc.) Krishna Prasad (Whittman-Hart, inc.) Russ Smith (Benteler) Michael Rhodes (MedPartners, inc.)

KONV-Knumv = VBAK-Knumv KONV-Kposn = VBAP-posnr

KONV ( Condio do Item do Pedido) Knumv Kposn Kschl Kbetr : nmero da condio : item do pedido : tipo de condio : montante ou perc. da condio

VBAK ( Header Pedido ) Auart Vbtyp Vbeln : tipo da ordem : tipo documento : nmero da ordem

VBRK ( Header Doc. Faturamento/Billing )


VBAK-Vbeln = VBAP-Vbeln

Vbeln Zukri+7(10)

: nmero doc.faturamento : nmero fornecimento

VBAP ( Item Pedido ) Vbeln : nmero da ordem Posnr : nmero do item Matnr : material Arktx : descrio Pstyv : tipo do item
VBAP-Vbeln = LIPS-Vgbel VBAP-Vposnr = LIPS-Vgpos VBRK-Vbeln = VBRP-Vbeln VBAP-Vbeln = VBRP-Aubel VBAP-Posnr = VBRP-Aupos VBAP-Vbeln = VBRP-Vgbel VBAP-Posnr = VBRP-Vgpos No caso de faturamento antecipado

VBRP ( Item Doc. Faturamento/Billing ) Vbeln Vgbel Vgpos Aubel Aupos Vgtyp Matnr Fkimg : nmero doc.faturamento : nmero da remessa (doc.origem) : nmero do item da remessa : nmero do pedido : nmero do item do pedido : tipo do documento de origem : material : qtd. faturada
VBRP-Vbeln = J_1BNFLIN-Refkey VBRP-Posnr = J_1BNFLIN-Refitm VBRP-Vbeln = M_J1BAB-Refkey

LIPS ( Item Remessa/Delivery/Fornecimento ) Vbeln : nmero da remessa Posnr : nmero do item Vgbel : nmero do documento origem Vgpos : nmero do item origem

LIPS-Vbeln = VBRP-Vgbel LIPS-Posnr = VBRP-Vgpos

MSEG-Mblnr = J_1BNFLIN-refkey(10) MSEG-Mjahr = J_1BNFLIN-refkey+10(04)

J_1BNFLIN ( Item Nota Fiscal ) RefKey Refitm : documento de origem : item do documento de origem Verificar chave do ndice OU PARA MELHOR PERFORMANCE M_J1BAB ( ndice por N referencia ) RefKey : documento de origem

MSEG ( Item do Documento de Material ) Mblnr Mjahr : nmero do doc. material : ano do documento do material

BKPF-Awkey = J_1BNFLIN-RefKey

BKPF ( Documento Contbil ) VBFA ( Relacionamento entre os documentos de venda ) Vbelv Posnv Vbeln Posnn : Documento precedente : Item doc.precedente : Documento Subsequente : Item doc.subsequente Awkey : documento referncia

Maurcio Mio 01/09/98 VBRK ( Header Doc. Faturamento/Billing ) Vbeln Zukri+7(10) : nmero doc.faturamento : nmero fornecimento

Relacionamentos entre as tabelas SAP

VBRK-Vbeln = VBRP-Vbeln

EKKO ( Header Pedido de Compra ) Ebeln :nmero do pedido de compra Knumv :nmero da condio

VBRP ( Item Doc. Faturamento/Billing ) Vbeln Vgbel Vgpos Aubel Aupos Vgtyp Matnr Fkimg : nmero doc.faturamento : nmero da remessa (doc.origem) : nmero do item da remessa : nmero do pedido : nmero do item do pedido : tipo do documento de origem : material : qtd. faturada
VBRP-Vbeln = J_1BNFLIN-Refkey VBRP-Posnr = J_1BNFLIN-Refitm VBRP-Vbeln = M_J1BAB-Refkey

EKPO-Ebeln = VBRP-Aubel EKPO-Ebelp = VBRP-Aupos EKPO-Ebeln = EKKO-Ebeln

KONV ( Condio do Item do Pedido) Knumv Kposn Kschl Kbetr : nmero da condio : item do pedido : tipo de condio : montante ou perc. da condio

EKPO ( Item do Pedido de Compra ) Ebeln Ebelp :nmero do pedido de compra :nmero do item do ped.de compra

KONV-Knumv = EKKO-Knumv KONV-Kposn = EKPO-Ebeln KONH-VAKEY = EKPO-EBELN + EKPO-EBELP

J_1BNFLIN ( Item Nota Fiscal ) RefKey Refitm : documento de origem : item do documento de origem Verificar chave do ndice OU PARA MELHOR PERFORMANCE M_J1BAB ( ndice por N referencia ) RefKey : documento de origem KONH ( Condio do Programa de Remessa ) Knumh : nmero da condio
KNUMH

KONP ( Condio do Programa de Remessa Item ) Knumh Kschl Kbetr : nmero da condio : tipo de condio : montante ou perc. da condio

MR1M / MR3M Rev.fatura logstica


RBKP ( Header Doc.reviso fatura logistica ) Belnr Xblnr : nmero documento contabil : nmero nota fiscal fatura EKBE ( Historico do pedido de compras ) Ebeln Ebelp Vgabe Belnr Buzei :nmero do pedido de compra : item pedido : 2 - entrada de fatura (valores fixos) : nmero documento contabil : item doc

BKPF-Awkey = J_1BNFLIN-RefKey

BKPF ( Documento Contbil ) Awkey : documento referncia

RSEG (Item Doc.reviso fatura logistica) Belnr : nmero documento contabil Buzei : item doc.fatura Menge : quantidade faturada

MM01 - Viso de Classificao


CABN ( Caracterstica do produto ) Atinn Atnam : cdigo interno : descrio CAWN ( Valores possveis da caracterstica ) Atinn Atwrt Atzhl : cdigo interno : valor ( cdigo externo ) : numerador ( nmero do item )

AUSP-Atinn = CABN-Atinn AUSP-Objek = MARA-matnr por exemplo CAWNT-Atinn = CAWN-Atinn CAWNT-Spras = Sy-langu CAWNT-Atzhl = CAWN-Atzhl AUSP-Atinn = CAWN-Atinn AUSP-Atwrt = CAWN-Atwrt

AUSP ( Valores das Caractersticas ) Objek Atinn Atwrt Atflv Klart : objeto ( Ex. Cd. Material ) : cdigo interno caract. : valor da caracterstica : valor interno em pto.flutuante : tipo de classe

CAW NT ( Descrio da Caracterstica ) Atinn Atzhl Spras Atwtb : cdigo interno caracterstica : nmerador da caracterstica : idioma : descrio da caracterstica

KSSK ( Tipos de classe por material ) Objek Klart Clint : Cdigo do material : Tipo de classe : Cdigo interno do tipo de classe

KLAH ( Classes do material ) Clint Class Klart : Cdigo interno do tipo de classe : cdigo da classe : Tipo de classe

UMA ENTRADA PARA CADA CLASSE DE CADA TIPO

KLAH-Clint = KSSK-Clint

TVBUR ( Agncia de Vendas ) Vkbur Adrnr : cdigo agncia : cdigo do endereo


SADR-Adrnr = TVBUR-Adrnr

SADR ( Endereo da Agncia de Vendas )


TVKBT-Vkbur = TVBUR-Vkbur

Adrnr Name1..4 Natio

: cdigo do endereo : descrio do endereo : verso do endereo

TVKBT ( Descrio da Agncia de Vendas ) Vkbur Spras Bzei : cdigo da agncia : idioma : descrio

M_ORDNA ( Ordem Pai - Filho ) Lead_aufnr Aufnr Maufnr : ordem pai : ordem filho : ordem superior com relao a filho
M_ORDNA-Aufnr = CAUFV-Aufnr

CAUFV ( Ordem de Produao Header ) Aufnr Objnr Plnbez Stlbez : nmero da ordem : objeto da ordem : material da ordem : material da ordem pai

COSP-Objnr = CAUFV-Objnr

COSP ( Custos Externos da Ordem Pr ) Objnr : objeto custo W rttp : categoria do valor ( Plan/Real) Kstar : classe do custo ( GGP/MOD) W og999 : valor em moeda Hrkft : chave custo

COSP-Objnr = AUFK-Objnr

AUFK ( Ordem de Produao Header Dados mestre ) Aufnr Objnr Auart : nmero da ordem : objeto da ordem : tipo da ordem

AUFK-Aufnr = AFPO-Aufnr

COSS ( Custos Internos da Ordem Pr ) Objnr W rttp Kstar W og999 : objeto custo : categoria do valor ( Plan/Real) : classe do custo : valor em moeda
COSP-Objnr = AUFK-Objnr

AFPO ( Ordem de Produao Item ) Aufnr Posnr : nmero da ordem : item da ordem

COKEY-Hrkft = COSP-Hrkft

JEST ( Status individual por objeto ) Objnr : nmero do objeto


AUFK-Aufnr = JEST-Objnr

COKEY ( Header Custos ) Hrkft Matnr W erks : chave custo : cdigo do material : centro

ME11 / ME12 / ME13 Info Record Compras

EINA ( Info Record Compras Dados Gerais ) Infnr Matnr Lifnr : n. registro : material : fornecedor

A017 ( Info record Material Condies ) Lifnr : fornecedor Matnr : material Ekorg : organizao compras W erks : centro Datbi : fim validade Datab : inicio validade Knumh : cdigo da condio

EINA-Infnr = EINE-Infnr

EINE ( Info Record - Dados Organizao Compras ) Infnr : n. registro Ekorg : organizao compras Werks : centro
A017-Lifnr = EINA-Lifnr A017-Matnr = EINA-Matnr A017-Ekorg = EINE-Ekorg A017-Werks = EINE-Werks

KONH-Knumh = A017-Knumh

KONH ( Condies Header ) Knumh : cdigo da condio Datbi : fim validade Datab : inicio validade

KONP-Knumh = KONH-Knumh

KONP ( Condies Item ) Knumh : cdigo da condio Kbetr : valor Kschl : tipo condio

PLKO ( Planos ou Roteiros Header ) PLNTY PLNNR PLNAL LOEKZ STATU : tipo do plano : nmero do plano : numerador : cdigo de eliminao 'x' - del : status do plano

MAPL-PLNTY = PLKO-PLNTY MAPL-PLNNR = PLKO-PLNNR MAPL-PLNAL = PLKO-PLNAL

MAPL ( Roteiros por material ) PLNTY PLNNR PLNAL LOEKZ MATNR W ERKS : tipo do plano : nmero do plano : numerador : cdigo de eliminao 'x' - del : material : centro

PLPO-PLNTY = PLKO-PLNTY PLPO-PLNNR = PLKO-PLNNR PLPO-PLNAL = PLKO-PLNAL

PLPO ( Planos ou Roteiros para Material Item ) PLNTY PLNNR PLNAL LOEKZ ZAEHL VPLTY VPLNR VPLAL : tipo do plano : nmero do plano : numerador : cdigo de eliminao 'x' - del : numerador : tipo plano de referencia : nmero do plano referencia : numerador plano referencia

TVBVK ( Grupo de Vendedores/Ag.Vendas ) Vkbur Vkgrp : Agncia de vendas : Grupo de Vendedores

TVKGR-Vkgrp = TVBVK-Vkgrp

TVKGR ( Grupo de Vendedores ) Vkgrp : grupo de vendedores

TVGRT-Vkgrp = TVKGR-Vkgrp TVGRT-Spras = Sy-langu

TVGRT ( Descrio do Grupo de Vendedores ) Vkgrp Spras Bezei : grupode vendedores : idioma : descrio do grupo de vend.

VTTK ( Transporte Header ) Tknum Tdlnr Dtmeng Dtmev : transporte : transportadora : unidade peso : unidade volume

VTTK-Tknum = LTAK-Tanum

LTAK ( Ordem de Transferencia Header ) Lgnum Tanum Kquit Refnr Vbeln : depsito : N.ordem transferencia : confirmado : Referncia : Fornecimento

VTTK-Tknum = VTTP-Tknum

LTAK-Vbeln = VTTP-Vbeln

LTAK-Lgnum = LTAP-Lgnum LTAK-Tanum = LTAP-Tanum

VTTP ( Transporte Item ) Tknum Tpnum Vbeln : transporte : item : fornecimento

LTAP (Ordem de transferncia Item)


VTTP-Tknum = LTAP-Tanum VTTP-Tpnum = LTAP-Orpos

Lgnum Tanum Tapos Orpos

: depsito : N. ordem transferencia : item : item OT que originou este item

VTTP-Vbeln = LIKP-Vbeln

LIKP ( Fornecimento Header ) Vbeln : fornecimento

VBAK ( Header Pedido ) Auart Vbtyp Vbeln : tipo da ordem : tipo documento : nmero da ordem
VBKD-Vbeln = VBAK-Vbeln VBKD-posnr = 00000000

VBKD ( Dados comerciais ) Vbeln : nmero da ordem Posnr : nmero do item

VBAP ( Item Pedido ) Vbeln : nmero da ordem Posnr : nmero do item Matnr : material Arktx : descrio Pstyv : tipo do item

VBKD-Vbeln = VBAK-vbeln VBKD-posnr = VBAP-posnr

Dados comerciais do pedido de vendas - VA03

VK13 - Condies do material - Preo de venda

A004 ( Condies para determinao preos do material ) Matnr : material Vkorg : organizao de vendas Vtweg : canal de distribuio Datbi : fim validade Datab : inicio validade Knumh : cdigo da condio Kschl : tipo de condio

KONH-Knumh = A004-Knumh

KONH ( Condies Header ) Knumh : cdigo da condio Datbi : fim validade Datab : inicio validade
KONP-Knumh = KONH-Knumh

KONP ( Condies Item ) Knumh : cdigo da condio Kbetr : valor

You might also like