biuan SAP® BUSINESS ONE SDK
API Documents / Document Lines

Description

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 document type as follows: INV1, RIN1, DLN1, RDN1, RDR1, QUT1, DPI1, PCh2, RPC1, PDN1, RPD1, POR1, PQT1, DPO1, IGN1, IGE1, and DRF1.

Object Model

Remarks

To add a document, you must have at least one item line.

Mandatory fields in SAP Business One: AccountCode and ItemCode.

To display the form in the application:

  • For INV1 table, select Sales - A/R --> A/R Invoice.
  • For RIN1 table, select Sales - A/R --> A/R Credit Memo.
  • For DLN1 table, select Sales - A/R --> Delivery.
  • For RDN1 table, select Sales - A/R --> Returns.
  • For RDR1 table, select Sales - A/R --> Order.
  • For QUT1 table, select Sales - A/R --> Quotation.
  • For DPI1 table, select Sales - A/R --> A/R Down Payment Invoice.
  • For PCh2 table, select Purchasing - A/P --> A/P Invoice.
  • For RPC1 table, select Purchasing - A/P --> A/P Credit Memo.
  • For PDN1 table, select Purchasing - A/P --> Goods Receipt PO.
  • For RPD1 table, select Purchasing - A/P --> Goods Returns.
  • For POR1 table, select Purchasing - A/P --> Purchase Order.
  • For PQT1 table, select Purchasing - A/P --> Purchase Quotation.
  • For DPO1 table, select Purchasing - A/P --> A/P Down Payment Invoice.
  • For IGN1 table, select Inventory --> Inventory Transactions --> Goods Receipt.
    Or, in case of receipt from production, select Production --> Receipt from Production (see ProductionOrders).
  • For IGE1 table, select Inventory --> Inventory Transactions --> Goods Issue.
    Or, in case of issue for production, select Production --> Issue for Production (see ProductionOrders).
  • For DRF1 table, select Sales - A/R (or Purchasing - A/P) --> Document Draft. Set your selection criteria, and click OK.

See Also

SAP® B1 DI-API C# definition

public class Document_LinesClass : IDocument_Lines, Document_Lines { public virtual string AccountCode { get; set; } public virtual int ActualBaseEntry { get; set; } public virtual int ActualBaseLine { get; set; } public virtual DateTime ActualDeliveryDate { get; set; } public virtual string Address { get; set; } public virtual int AgreementNo { get; set; } public virtual int AgreementRowNumber { get; set; } public virtual double AppliedTax { get; } public virtual double AppliedTaxFC { get; } public virtual double AppliedTaxSC { get; } public virtual BoYesNoEnum BackOrder { get; set; } public virtual string BarCode { get; set; } public virtual int BaseEntry { get; set; } public virtual int BaseLine { get; set; } public virtual double BaseOpenQuantity { get; } public virtual int BaseType { get; set; } public virtual SAPbobsCOM.BatchNumbers BatchNumbers { get; } public virtual DocumentLinesBinAllocations BinAllocations { get; } public virtual string CFOPCode { get; set; } public virtual string ChangeAssemlyBoMWarehouse { get; set; } public virtual BoYesNoEnum ChangeInventoryQuantityIndependently { get; set; } public virtual string COGSAccountCode { get; set; } public virtual string COGSCostingCode { get; set; } public virtual string COGSCostingCode2 { get; set; } public virtual string COGSCostingCode3 { get; set; } public virtual string COGSCostingCode4 { get; set; } public virtual string COGSCostingCode5 { get; set; } public virtual double CommisionPercent { get; set; } public virtual BoYesNoEnum ConsiderQuantity { get; set; } public virtual BoYesNoEnum ConsumerSalesForecast { get; set; } public virtual BoCorInvItemStatus CorrectionInvoiceItem { get; set; } public virtual double CorrInvAmountToDiffAcct { get; set; } public virtual double CorrInvAmountToStock { get; set; } public virtual string CostingCode { get; set; } public virtual string CostingCode2 { get; set; } public virtual string CostingCode3 { get; set; } public virtual string CostingCode4 { get; set; } public virtual string CostingCode5 { get; set; } public virtual int Count { get; } public virtual string CountryOrg { get; set; } public virtual string CreditOriginCode { get; set; } public virtual string CSTCode { get; set; } public virtual string CSTforCOFINS { get; set; } public virtual string CSTforIPI { get; set; } public virtual string CSTforPIS { get; set; } public virtual string Currency { get; set; } public virtual double DefectAndBreakup { get; set; } public virtual BoYesNoEnum DeferredTax { get; set; } public virtual double DiscountPercent { get; set; } public virtual BoYesNoEnum DistributeExpense { get; set; } public virtual int DocEntry { get; } public virtual BoYesNoEnum EnableReturnCost { get; set; } public virtual double EqualizationTaxPercent { get; } public virtual double ExciseAmount { get; set; } public virtual string ExLineNo { get; set; } public virtual Document_LinesAdditionalExpenses Expenses { get; } public virtual SAPbobsCOM.ExportProcesses ExportProcesses { get; } public virtual double Factor1 { get; set; } public virtual double Factor2 { get; set; } public virtual double Factor3 { get; set; } public virtual double Factor4 { get; set; } public virtual BoYesNoEnum FreeOfChargeBP { get; set; } public virtual string FreeText { get; set; } public virtual SAPbobsCOM.GeneratedAssets GeneratedAssets { get; } public virtual int GrossBase { get; set; } public virtual double GrossBuyPrice { get; set; } public virtual double GrossProfitTotalBasePrice { get; set; } public virtual double Height1 { get; set; } public virtual double Height2 { get; set; } public virtual int Height2Unit { get; set; } public virtual int Hight1Unit { get; set; } public virtual SAPbobsCOM.ImportProcesses ImportProcesses { get; } public virtual int Incoterms { get; set; } public virtual double InventoryQuantity { get; set; } public virtual string ItemCode { get; set; } public virtual string ItemDescription { get; set; } public virtual string ItemDetails { get; set; } public virtual BoDocItemType ItemType { get; } public virtual double LastBuyDistributeSum { get; } public virtual double LastBuyDistributeSumFc { get; } public virtual double LastBuyDistributeSumSc { get; } public virtual double LastBuyInmPrice { get; } public virtual double Lengh1 { get; set; } public virtual int Lengh1Unit { get; set; } public virtual double Lengh2 { get; set; } public virtual int Lengh2Unit { get; set; } public virtual int LineNum { get; } public virtual BoStatus LineStatus { get; set; } public virtual double LineTotal { get; set; } public virtual BoDocLineType LineType { get; set; } public virtual string LineVendor { get; set; } public virtual int LocationCode { get; set; } public virtual string MeasureUnit { get; set; } public virtual double NetTaxAmount { get; set; } public virtual double NetTaxAmountFC { get; set; } public virtual double NetTaxAmountSC { get; } public virtual double OpenAmount { get; } public virtual double OpenAmountFC { get; } public virtual double OpenAmountSC { get; } public virtual string OriginalItem { get; } public virtual double PackageQuantity { get; set; } public virtual int ParentLineNum { get; set; } public virtual BoYesNoEnum PartialRetirement { get; set; } public virtual int PickListIdNumber { get; } public virtual double PickQuantity { get; } public virtual BoYesNoEnum PickStatus { get; } public virtual BoDocumentLinePickStatus PickStatusEx { get; } public virtual string POTargetEntry { get; } public virtual int POTargetNum { get; } public virtual string POTargetRowNum { get; } public virtual double Price { get; set; } public virtual double PriceAfterVAT { get; set; } public virtual string ProjectCode { get; set; } public virtual double Quantity { get; set; } public virtual double Rate { get; set; } public virtual double RemainingOpenInventoryQuantity { get; } public virtual double RemainingOpenQuantity { get; } public virtual DateTime RequiredDate { get; set; } public virtual double RequiredQuantity { get; set; } public virtual double RetirementAPC { get; set; } public virtual double RetirementQuantity { get; set; } public virtual double ReturnCost { get; set; } public virtual double RowTotalFC { get; set; } public virtual double RowTotalSC { get; } public virtual int SalesPersonCode { get; set; } public virtual string SerialNum { get; set; } public virtual SAPbobsCOM.SerialNumbers SerialNumbers { get; } public virtual DateTime ShipDate { get; set; } public virtual int ShippingMethod { get; set; } public virtual string ShipToCode { get; set; } public virtual string ShipToDescription { get; set; } public virtual double Shortages { get; set; } public virtual double StockDistributesum { get; } public virtual double StockDistributesumForeign { get; } public virtual double StockDistributesumSystem { get; } public virtual double StockInmPrice { get; } public virtual string SupplierCatNum { get; set; } public virtual double Surpluses { get; set; } public virtual string SWW { get; set; } public virtual double TaxBeforeDPM { get; } public virtual double TaxBeforeDPMFC { get; } public virtual double TaxBeforeDPMSC { get; } public virtual string TaxCode { get; set; } public virtual SAPbobsCOM.TaxJurisdictions TaxJurisdictions { get; } public virtual BoYesNoEnum TaxLiable { get; set; } public virtual BoYesNoEnum TaxOnly { get; set; } public virtual double TaxPercentagePerRow { get; set; } public virtual double TaxPerUnit { get; } public virtual double TaxTotal { get; set; } public virtual BoTaxTypes TaxType { get; set; } public virtual string Text { get; } public virtual BoYesNoEnum ThirdParty { get; set; } public virtual double TotalEqualizationTax { get; } public virtual double TotalEqualizationTaxFC { get; } public virtual double TotalEqualizationTaxSC { get; } public virtual double TotalInclTax { get; } public virtual BoTransactionTypeEnum TransactionType { get; set; } public virtual int TransportMode { get; set; } public virtual BoItemTreeTypes TreeType { get; } public virtual double UnitPrice { get; set; } public virtual double UnitsOfMeasurment { get; set; } public virtual string UoMCode { get; } public virtual int UoMEntry { get; set; } public virtual string Usage { get; set; } public virtual BoYesNoEnum UseBaseUnits { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual string VatGroup { get; set; } public virtual string VendorNum { get; set; } public virtual int VisualOrder { get; } public virtual double Volume { get; set; } public virtual int VolumeUnit { get; set; } public virtual string WarehouseCode { get; set; } public virtual double Weight1 { get; set; } public virtual int Weight1Unit { get; set; } public virtual double Weight2 { get; set; } public virtual int Weight2Unit { get; set; } public virtual double Width1 { get; set; } public virtual int Width1Unit { get; set; } public virtual double Width2 { get; set; } public virtual int Width2Unit { get; set; } public virtual SAPbobsCOM.WithholdingTaxLines WithholdingTaxLines { get; } public virtual BoYesNoEnum WithoutInventoryMovement { get; set; } public virtual BoYesNoEnum WTLiable { get; set; } public extern Document_LinesClass(); 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...


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

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 Installments Document_Installments Object
A child object of Documents object representing the installments feature in marketing documents. Source tables:  INV6, OPCH6.
   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


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