📚 SAP Business One SDK Help

Delete Method
See Also  Example

Description

Deletes the current line.

Returns a result value that indicates success or failure.

Syntax

Visual Basic
Public Sub Delete() 

Example

Deleting item warehouse information (C#)Copy Code
SAPbobsCOM.Items oItem; 
 
// Delete item warehouse info 
if(oItem.GetByKey("004") == true) 
{ 
    oItem.WhsInfo.SetCurrentLine(5); 
    oItem.WhsInfo.Delete();    
    oItem.Update(); 
} 

See Also