biuan SAP® BUSINESS ONE SDK
DTW A/P Correction Invoice - Freight
API Documents Additional Expenses / Base Doc Entry
CPI3 - A/P Correction Invoice - Freight Table

SBO SQL database table details

FieldDescriptionTypeConstraintsSizeRelatedDefaultPrimary_KeyUnique
DocEntry KEYDocument Internal IDInt
11OCPI
A/P Correction Invoice
DOCUMENTNo
ExpnsCodeExpense CodeInt
11OEXD
Freight Setup
LineTotalTotalNum
20
TotalFrgnTotal (FC)Num
20
TotalSumSyTotal (SC)Num
20
PaidToDatePaid to DateNum
20
PaidFCPaid in FCNum
20
PaidSysPaid in SCNum
20
CommentsRemarksnVarChar
100
ObjTypeObject TypenVarChar
20ADP1
Object Settings - History
163
LogInstancLog InstanceInt
11
0
DistrbMthdDistribution MethodVarChar
N) None
Q) Quantity
V) Volume
W) Weight
E) Equally
T) Row Total
1
TaxStatusTax LiableVarChar
Y) Yes
N) No
1
Y
VatGroupTax GroupnVarChar
8OVTG
Tax Definition
VatPrcntRow Tax %Num
20
VatSumTax AmountNum
20
VatSumFrgnTax Amount (FC)Num
20
VatSumSyTax Amount (SC)Num
20
DedVatSumDeductible Tax AmountNum
20
DedVatSumFDeductible Tax Amount (FC)Num
20
DedVatSumSDeductible Tax Amount (SC)Num
20
IsAcquistnAquisition TaxVarChar
Y) Yes
N) No
1
N
TaxCodeTax CodenVarChar
8OSTC
Sales Tax Codes
TaxTypeTax TypeVarChar
Y) Regular Tax
N) No Tax
U) Use Tax
1
Y
WTLiableWT LiableVarChar
Y) Yes
N) No
1
VatAppliedVat AppliedNum
20
VatAppldFCApplied Tax (FC)Num
20
VatAppldSCApplied Tax (SC)Num
20
EquVatPerEqualization Tax %Num
20
EquVatSumTotal Equalization TaxNum
20
EquVatSumFTotal Equalization Tax (FC)Num
20
EquVatSumSTotal Equalization Tax (SC)Num
20
LineVatNet Tax AmountNum
20
LineVatFNet Tax Amount (FC)Num
20
LineVatSNet Tax Amount (SC)Num
20
BaseMethodBase MethodVarChar
N) None
Q) Quantity
V) Volume
W) Weight
T) Total
A) All
1
StockStockVarChar
Y) Yes
N) No
1
LstPchPrceLast Purchase PriceVarChar
Y) Yes
N) No
1
AnalysRptAnalysis ReportVarChar
Y) Yes
N) No
1
N
BaseAbsEntBase Abs EntryInt
11
-1
BaseTypeBase Document TypeInt
-1)
0
18) A/P Invoice
163) A/P Correction Invoice
11
BaseRefBase Document ReferenceInt
11
BaseLnNumBase Document Line No.Int
11
LineNumline numInt
11
-1
StatusStatusVarChar
O) Open
C) Closed
1
O
TrgTypeTarget TypeInt
11
TrgAbsEntTarget Abs. EntryInt
11
-1
StDstrStock Distributed SumNum
20
StDstrSCStock Distributed Sum (SC)Num
20
StDstrFCStock Distributed Sum (FC)Num
20
FixCurrFixation CurrencynVarChar
3OCRN
Currency Codes
VatDscntPrTax Discount %Num
20
OcrCodeDistribution RulenVarChar
8OOCR
Distribution Rule
TaxDistMtdTax Distribution MethodVarChar
N) None
Q) Quantity
V) Volume
W) Weight
E) Equally
T) Row Total
1
OcrCode2Distribution Rule2nVarChar
8OOCR
Distribution Rule
OcrCode3Distribution Rule3nVarChar
8OOCR
Distribution Rule
OcrCode4Distribution Rule4nVarChar
8OOCR
Distribution Rule
OcrCode5Distribution Rule5nVarChar
8OOCR
Distribution Rule
ProjectProject CodenVarChar
20OPRJ
Project Codes
VatGrpSrcVAT Group SourceVarChar
N) Not Defined
M) Manually Entered
D) Determined
1
N
DrawnTotalDrawn TotalNum
20
DrawnFCDrawn Total (FC)Num
20
DrawnSCDrawn Total (SC)Num
20

Table relationship map

SELECT statement

SELECT CPI3.DocEntry AS 'Document Internal ID', CPI3.ExpnsCode AS 'Expense Code', CPI3.LineTotal AS 'Total', CPI3.TotalFrgn AS 'Total (FC)', CPI3.TotalSumSy AS 'Total (SC)', CPI3.PaidToDate AS 'Paid to Date', CPI3.PaidFC AS 'Paid in FC', CPI3.PaidSys AS 'Paid in SC', CPI3.Comments AS 'Remarks', CPI3.ObjType AS 'Object Type', CPI3.LogInstanc AS 'Log Instance', CPI3.DistrbMthd AS 'Distribution Method', CPI3.TaxStatus AS 'Tax Liable', CPI3.VatGroup AS 'Tax Group', CPI3.VatPrcnt AS 'Row Tax %', CPI3.VatSum AS 'Tax Amount', CPI3.VatSumFrgn AS 'Tax Amount (FC)', CPI3.VatSumSy AS 'Tax Amount (SC)', CPI3.DedVatSum AS 'Deductible Tax Amount', CPI3.DedVatSumF AS 'Deductible Tax Amount (FC)', CPI3.DedVatSumS AS 'Deductible Tax Amount (SC)', CPI3.IsAcquistn AS 'Aquisition Tax', CPI3.TaxCode AS 'Tax Code', CPI3.TaxType AS 'Tax Type', CPI3.WTLiable AS 'WT Liable', CPI3.VatApplied AS 'Vat Applied', CPI3.VatAppldFC AS 'Applied Tax (FC)', CPI3.VatAppldSC AS 'Applied Tax (SC)', CPI3.EquVatPer AS 'Equalization Tax %', CPI3.EquVatSum AS 'Total Equalization Tax', CPI3.EquVatSumF AS 'Total Equalization Tax (FC)', CPI3.EquVatSumS AS 'Total Equalization Tax (SC)', CPI3.LineVat AS 'Net Tax Amount', CPI3.LineVatF AS 'Net Tax Amount (FC)', CPI3.LineVatS AS 'Net Tax Amount (SC)', CPI3.BaseMethod AS 'Base Method', CPI3.Stock AS 'Stock', CPI3.LstPchPrce AS 'Last Purchase Price', CPI3.AnalysRpt AS 'Analysis Report', CPI3.BaseAbsEnt AS 'Base Abs Entry', CPI3.BaseType AS 'Base Document Type', CPI3.BaseRef AS 'Base Document Reference', CPI3.BaseLnNum AS 'Base Document Line No.', CPI3.LineNum AS 'line num', CPI3.Status AS 'Status', CPI3.TrgType AS 'Target Type', CPI3.TrgAbsEnt AS 'Target Abs. Entry', CPI3.StDstr AS 'Stock Distributed Sum', CPI3.StDstrSC AS 'Stock Distributed Sum (SC)', CPI3.StDstrFC AS 'Stock Distributed Sum (FC)', CPI3.FixCurr AS 'Fixation Currency', CPI3.VatDscntPr AS 'Tax Discount %', CPI3.OcrCode AS 'Distribution Rule', CPI3.TaxDistMtd AS 'Tax Distribution Method', CPI3.OcrCode2 AS 'Distribution Rule2', CPI3.OcrCode3 AS 'Distribution Rule3', CPI3.OcrCode4 AS 'Distribution Rule4', CPI3.OcrCode5 AS 'Distribution Rule5', CPI3.Project AS 'Project Code', CPI3.VatGrpSrc AS 'VAT Group Source', CPI3.DrawnTotal AS 'Drawn Total', CPI3.DrawnFC AS 'Drawn Total (FC)', CPI3.DrawnSC AS 'Drawn Total (SC)' FROM CPI3 AS CPI3

Related information


 v9.0  Base Doc Entry BaseDocEntry Property· Table: CPI3
Sets or returns the source document ID. Field name: DocEntry.
· Table: DRF3 RPC3 PCH3 CPI3 CPV3 PDN3 RPD3 POR3 PQT3 RIN3 INV3 CSI3 CSV3 DLN3 RDN3 RDR3 QUT3    Parent: Documents Additional Expenses DocumentsAdditionalExpenses Object· Table: DRF3 RPC3 PCH3 CPI3 CPV3 PDN3 RPD3 POR3 PQT3 RIN3 INV3 CSI3 CSV3 DLN3 RDN3 RDR3 QUT3
A/P Correction Invoice OCPI SQL Table

Freight Setup OEXD SQL Table

Currency Codes OCRN SQL Table

Object Settings - History ADP1 SQL Table

Distribution Rule OOCR SQL Table

Project Codes OPRJ SQL Table

Sales Tax Codes OSTC SQL Table

Tax Definition OVTG SQL Table



SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates