biuan SAP® BUSINESS ONE SDK
API OTSI / Tax Invoices
OTSI - Sales Tax Invoice Table

SBO SQL database table details

FieldDescriptionTypeConstraintsSizeRelatedDefaultPrimary_KeyUnique
DocEntry KEY UNIQUEInternal NumberInt
11
PRIMARYYes
DocNum KEY UNIQUEDocument NumberInt
11
NUMYes
DocTypeDocument TypeVarChar
I) Invoice
P) Payment
J) Journal Entry
C) Correction Invoice
A) Alteration Invoice
B) Alteration Correction Invoice
1
I
CANCELEDCanceledVarChar
Y) Yes
N) No
1
N
HandWritenManual NumberingVarChar
Y) Yes
N) No
1
N
PrintedPrintedVarChar
Y) Yes
N) No
1
N
TransferedYear TransferVarChar
Y) Yes
N) No
1
N
ObjTypeObject TypenVarChar
20ADP1
Object Settings - History
194
DocDatePosting DateDate
8
CardCodeCustomer CodenVarChar
15OCRD
Business Partner
CreateDateCreation DateDate
8
UpdateDateDate of UpdateDate
8
DocDueDateDue DateDate
8
SeriesSeriesInt
6
0
SegmentSegmentInt
6
0
CntctCodeContact PersonInt
11OCPR
Contact Persons
VatDateDocument DateDate
8
CommentsRemarksnVarChar
127
TrnspCodeShipping TypeInt
6OSHP
Delivery Types
-1
ShipToCodeShip-to CodenVarChar
50
AddressBill tonVarChar
127
Address2Ship TonVarChar
127
LogInstancLog InstanceInt
11
0
CurSourceBase CurrencyVarChar
L) Local Currency
S) System Currency
C) BP Currency
1
C
DocCurDocument CurrencynVarChar
3
UserSignUser SignatureInt
6OUSR
Users
UserSign2Updating UserInt
6OUSR
Users
NumAtCardBP Reference No.nVarChar
100
CardNameCustomer/Vendor NamenVarChar
100
CancelDateCancel DateDate
8
DocTotalDocument TotalNum
20
VatSumTotal TaxNum
20
PayRefNoPayment Ref. No.nVarChar
16
PayRefDatePayment Ref. No. DateDate
8
TaxMethodTaxation MethodVarChar
S) On Shipment
P) On Payment
1
S
AtcEntryAttachment EntryInt
11
IsDpmIS Down PaymentVarChar
Y) Yes
N) No
1
N
AltRevAlteration RevisionInt
11
0
PIndicatorPeriod IndicatornVarChar
10OPID
Period Indicator
TransIdTransaction NumberInt
11OJDT
Journal Entry
JrnlMemoJournal RemarknVarChar
50
BPLIdBranchInt
11OBPL
Business Place
BPLNameBranch NamenVarChar
100
VATRegNumBranch Reg. No.nVarChar
32

Table relationship map

SELECT statement

SELECT OTSI.DocEntry AS 'Internal Number', OTSI.DocNum AS 'Document Number', OTSI.DocType AS 'Document Type', OTSI.CANCELED AS 'Canceled', OTSI.HandWriten AS 'Manual Numbering', OTSI.Printed AS 'Printed', OTSI.Transfered AS 'Year Transfer', OTSI.ObjType AS 'Object Type', OTSI.DocDate AS 'Posting Date', OTSI.CardCode AS 'Customer Code', OTSI.CreateDate AS 'Creation Date', OTSI.UpdateDate AS 'Date of Update', OTSI.DocDueDate AS 'Due Date', OTSI.Series AS 'Series', OTSI.Segment AS 'Segment', OTSI.CntctCode AS 'Contact Person', OTSI.VatDate AS 'Document Date', OTSI.Comments AS 'Remarks', OTSI.TrnspCode AS 'Shipping Type', OTSI.ShipToCode AS 'Ship-to Code', OTSI.Address AS 'Bill to', OTSI.Address2 AS 'Ship To', OTSI.LogInstanc AS 'Log Instance', OTSI.CurSource AS 'Base Currency', OTSI.DocCur AS 'Document Currency', OTSI.UserSign AS 'User Signature', OTSI.UserSign2 AS 'Updating User', OTSI.NumAtCard AS 'BP Reference No.', OTSI.CardName AS 'Customer/Vendor Name', OTSI.CancelDate AS 'Cancel Date', OTSI.DocTotal AS 'Document Total', OTSI.VatSum AS 'Total Tax', OTSI.PayRefNo AS 'Payment Ref. No.', OTSI.PayRefDate AS 'Payment Ref. No. Date', OTSI.TaxMethod AS 'Taxation Method', OTSI.AtcEntry AS 'Attachment Entry', OTSI.IsDpm AS 'IS Down Payment', OTSI.AltRev AS 'Alteration Revision', OTSI.PIndicator AS 'Period Indicator', OTSI.TransId AS 'Transaction Number', OTSI.JrnlMemo AS 'Journal Remark', OTSI.BPLId AS 'Branch', OTSI.BPLName AS 'Branch Name', OTSI.VATRegNum AS 'Branch Reg. No.' FROM OTSI AS OTSI

Related information


Tax Invoices TaxInvoices Object· Table: OTSI
TaxInvoices is a business object that represents the header data of a Tax Invoice document. Source table: OTSI for sales invoices, OTPI for purchase invoices, or OTXD for journal entry according to the DocType valid value.

OTSI SQL Table

Business Place OBPL SQL Table

Business Partner OCRD SQL Table

Contact Persons OCPR SQL Table

Object Settings - History ADP1 SQL Table

Period Indicator OPID SQL Table

Journal Entry OJDT SQL Table

Delivery Types OSHP SQL Table

Users OUSR 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