biuan SAP® BUSINESS ONE SDK
API Special Prices Quantity Areas / 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)
Name=Code_VB>
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


Special Prices Quantity Areas SpecialPricesQuantityAreas Object· Table: SPP2
SpecialPricesQuantityAreas is a child object of SpecialPricesDataAreas object and represents special prices that are valid only for specified quantities and above. Source table: SPP2.
   Parent: Special Prices Data Areas SpecialPricesDataAreas Object· Table: SPP1


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