biuan SAP® BUSINESS ONE SDK
API Documents / Document Installments

Description

A child object of Documents object representing the installments feature in marketing documents.

Source tables: INV6, OPCH6.

Object Model

Remarks

To access installments in the application: Sales-A/R > A/R invoice > Accounting tab > Installments.

Example

Creating Document with Two Installments (Visual Basic)
Sub Installments Try Dim oInv As SAPbobsCOM.Documents Dim oIns As SAPbobsCOM.Document_Installments 'Create Invoice Object oInv = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices) 'Set Invoice Header Values oInv.CardCode = Some Card Code oInv.DocDueDate = Doc Date If optApplyTaxFirst.Checked = True Then oInv.ApplyTaxOnFirstInstallment = SAPbobsCOM.BoYesNoEnum.tYES End If 'Set Invoice Line Values oInv.Lines.ItemCode = Some Item Code oInv.Lines.Quantity = Quantity oInv.Lines.Price = Price 'Set Installments oIns = oInv.Installments 'Installment #1 oIns.DueDate = Installment #1 Date oIns.Percentage = Percentage oIns.Add() 'Installment #2, completes #1 to 100% oIns.DueDate = Installment #2 Date oIns.Percentage = Percentage lRetCode = oInv.Add ' Try to add the invoice to the database If lRetCode <> 0 Then oCompany.GetLastError(lErrCode, sErrMsg) MsgBox(lErrCode & " " & sErrMsg) ' Display error message Else MsgBox("Invoice Added to DataBase", MsgBoxStyle.Information, "Invoice Added") End If Catch ex As Exception MsgBox(ex.Message) End Try End Sub

See Also

SAP® B1 DI-API C# definition

public class Document_InstallmentsClass : IDocument_Installments, Document_Installments { public virtual int Count { get; } public virtual DateTime DueDate { get; set; } public virtual int DunningLevel { get; set; } public virtual int InstallmentId { get; } public virtual DateTime LastDunningDate { get; } public virtual BoYesNoEnum PaymentOrdered { get; } public virtual double Percentage { get; set; } public virtual double Total { get; set; } public virtual double TotalFC { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public extern Document_InstallmentsClass(); public virtual extern void Add(); public virtual extern void Delete(); public virtual extern void SetCurrentLine(int LineNum); }

Related information


Documents Documents Object· Table: OIGE OIGN
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...


Address Extension AddressExtension Object· Table: INV12 IGE12 IGN12
The Bill To and Ship To address for a marketing document. Source table: INV12
   Parent: Documents Documents Object· Table: OIGE OIGN

Document Approval Requests Document_ApprovalRequests Object· Table: OWDDV
Documents_ApprovalRequests is a child object of the Documents object. You can set the remarks field of the approval request. Source table: OWDDV.
   Parent: Documents Documents Object· Table: OIGE OIGN

Document Lines Document_Lines Object· Table: IGE1 IGN1
Document_Lines is a child object of Documents object and represents the line entries of a document in the Marketing Documents and Receipts module and the Inventory and Production module. The source table for each document is according to the...
   Parent: Documents Documents Object· Table: OIGE OIGN

Document Special Lines Document_SpecialLines Object· Table: INV10
This object represents text and subtotal lines in marketing documents. Source table: INV10 and IN10V (a virtual table for storing calculated values).
   Parent: Documents Documents Object· Table: OIGE OIGN

Document Packages DocumentPackages Object
This object holds a collection of packaging types you can attach to items in Delivery or A/R Invoice documents. Access this object via Documents.Packages property. Source tables: DLN7, DLN8, INV7, INV8.
   Parent: Documents Documents Object· Table: OIGE OIGN


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