Description
Documents is a business object that represents the header data of documents in the Marketing Documents and Receipts module and the Inventory and Production module of SAP Business One application.
The source table for each document is according to the document type as follows:
- Documents(oInvoices) - OINV
- Documents(oCorrectionInvoice) - OCSI
- Documents(oCorrectionInvoiceReversal) - OCSV
- Documents(oCreditNotes) - ORIN
- Documents(oDeliveryNotes) - ODLN
- Documents(oReturns) - ORDN
- Documents(oOrders) - ORDR
- Documents(oQuotations) - OQUT
- Documents(oPurchaseInvoices) - OPCH
- Documents(oCorrectionPurchaseInvoice) - OCPI
- Documents(oCorrectionPurchaseInvoiceReversal) - OCPV
- Documents(oPurchaseCreditNotes) - ORPC
- Documents(oPurchaseDeliveryNotes) - OPDN
- Documents(oPurchaseReturns) - ORPD
- Documents(oPurchaseOrders) - OPOR
- Documents(oPurchaseQuotations) - OPQT
- Documents(oPurchaseRequests) - OPRQ
- Documents(oInventoryGenEntry) - OIGN
- Documents(oInventoryGenExit) - OIGE
- Documents(oDrafts) - ODRF
- Documents(oDownPaymentAP) - ODPO
- Documents(oDownPaymentAR) - ODPI
Object Model
Remarks
Mandatory fields in SAP Business One: CardCode and ItemCode (from Document_Lines object).
To create a draft document (oDraft) also set the document object type (DocObjectCode).
To display the form in the application:
- For OINV table, select Sales - A/R --> A/R Invoice.
- For ORIN table, select Sales - A/R --> A/R Credit Memo.
- For ODLN table, select Sales - A/R --> Delivery.
- For ORDN table, select Sales - A/R --> Returns.
- For ORDR table, select Sales - A/R --> Order.
- For OQUT table, select Sales - A/R --> Quotation.
- For OPCH table, select Purchasing - A/P --> A/P Invoice.
- For ORPC table, select Purchasing - A/P --> A/P Credit Memo.
- For OPDN table, select Purchasing - A/P --> Goods Receipt PO.
- For ORPD table, select Purchasing - A/P --> Goods Returns.
- For OPOR table, select Purchasing - A/P --> A/R Invoice.
- For OPQT table, select Purchasing - A/P --> Purchase Quotation.
- For OIGN table, select Inventory --> Inventory Transactions --> Goods Receipt.
Or, in case of receipt from production, select Production --> Receipt from Production (see ProductionOrders). - For OIGE table, select Inventory --> Inventory Transactions --> Goods Issue.
Or, in case of issue for production, select Production --> Issue for Production (see ProductionOrders). - For ODRF table, select Sales - A/R (or Purchasing - A/P) --> Document Draft. Set your selection criteria, and click OK.
Example
Add
| Cancel
| Close
| Save XML
| Approving a Document
| Create Draft Document with Down Payment
| Create Order from a Draft Document
| Create a Down Payment Document
| Create Invoice with Down Payment
| Add a Reserved Invoice
| Approving an Invoice Document