SAP table OIAQB has 16 primary key fields being MANDT,OIEXGPTR,BUDAT,SPMON,SPTAG,SPWOC,SPBUP,OIEXGNUM,OIEXGTYP,OIMATREF,MATNR,OIBASPROD,WERKS,MBLNR,MJAHR,ZEILE.
If you're only analyzing data from a single SAP instance you may omit field MANT in your relationships as it will we the same across the entire dataset. On the other hand, if you're combining data from multiple SAP instances you need to take MANDT into account.
Field
Description
Data Type
Length
Decimals
Checktable
Data Element
MANDT
Client
CLNT
3
0
MANDT
OIEXGPTR
Exchange partner (vendor number)
CHAR
10
0
OIA_EXGPTR
BUDAT
Posting Date in the Document
DATS
8
0
BUDAT
SPMON
Period to analyze - month
NUMC
6
0
SPMON
SPTAG
Period to analyze - current date
DATS
8
0
SPTAG
SPWOC
Period to analyze - week
NUMC
6
0
SPWOC
SPBUP
Period to analyze - posting period
NUMC
6
0
SPBUP
OIEXGNUM
Exchange agreement number
CHAR
10
0
OIA_EXGNUM
OIEXGTYP
Exchange type
CHAR
4
0
OIA_EXGTYP
OIMATREF
Material group reference for exchange balance reporting
CHAR
20
0
OIA_MATREF
MATNR
Material Number
CHAR
40
0
MATNR
OIBASPROD
Base product number
CHAR
40
0
OIA_SBMAT
WERKS
Plant
CHAR
4
0
WERKS_D
MBLNR
Number of Material Document
CHAR
10
0
MBLNR
MJAHR
Material Document Year
NUMC
4
0
MJAHR
ZEILE
Item number
NUMC
6
0
OIA_ITEM
ITEM_TYPE
LIA item type
CHAR
1
0
OIA_UPEITM
1
Book receipt
2
Book delivery
3
Negotiated payment
OINETCYC
Netting cycle (FI blocking indicator)
CHAR
1
0
OIA_NETCYC
SHKZG
Debit/Credit Indicator
CHAR
1
0
SHKZG
H
Credit
S
Debit
OIASTBW
Reversal movement type
CHAR
1
0
XSTBW
EBELN
Purchasing Document Number
CHAR
10
0
EBELN
EBELP
Item Number of Purchasing Document
NUMC
5
0
EBELP
OIVBELN
Delivery
CHAR
10
0
VBELN_VL
OIPOSNR
Delivery Item
NUMC
6
0
POSNR_VL
KDAUF
Sales Order Number
CHAR
10
0
KDAUF
KDPOS
Item number in Sales Order
NUMC
6
0
KDPOS
CLRNO
Doc. number of the netting document clearing the item/cycle
CHAR
10
0
OIA_CLRNO
OIPIPEVAL
Validation indicator for pipeline fields (X=ON, blank=OFF)