biuan SAP® BUSINESS ONE SDK
DTW Inventory / Item Master Data
API Item Uo M Packages / Delete
Delete Method

Description

Deletes the current line.

Returns a result value that indicates success or failure.

Syntax

Visual Basic
Public Sub Delete() 

Example

Deleting an object (Visual Basic)
Dim oOrder As SAPbobsCOM.Documents ' Order object Dim lRetCode As Integer ' Return Code ' New Order oOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders) ' Fill Order details oOrder.CardCode = "C40000" oOrder.CardName = "Earthshaker Corporation" oOrder.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO oOrder.DocDate = Today() oOrder.DocDueDate = Today() oOrder.DocCurrency = "USD" 'Fill 2 lines in the order oOrder.Lines.ItemCode = "A00001" oOrder.Lines.ItemDescription = "IBM Inforprint 1312" oOrder.Lines.Quantity = 1 oOrder.Lines.Price = 380 oOrder.Lines.TaxCode = "0" oOrder.Lines.LineTotal = 380 oOrder.Lines.Add() oOrder.Lines.ItemCode = "A00002" oOrder.Lines.ItemDescription = "IBM Infoprint 1222" oOrder.Lines.Quantity = 1 oOrder.Lines.Price = 380 oOrder.Lines.TaxCode = "0" oOrder.Lines.LineTotal = 380 ' Now we want to delete the second line in the Order oOrder.Lines.Delete() ' The Order will be added without the second line lRetCode = oOrder.Add

See Also

Related information


Item Uo M Type Enum ItemUoMTypeEnum Enumeration
The UoM type of the item.
   Parent: Item Uo M Packages ItemUoMPackages Object· Table: ITM4


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