biuan SAP® BUSINESS ONE SDK
API Alternative Items Service / Delete Item

Description

Deletes the alternative item specified in data structure OriginalItemParams (ItemCode and ItemName).

Syntax

Visual Basic
Public Sub DeleteItem( _
   ByVal pIOriginalItemParams As OriginalItemParams _
) 

Parameters

pIOriginalItemParams
Specifies the alternative item data structure you want to delete.

Example

Delete Item (Visual Basic)
' Alternative Items Code Sample ' This sample assumes you have SBODemo_US database installed Dim oCompanyService As SAPbobsCOM.CompanyService Dim AltItemsService As SAPbobsCOM.AlternativeItemsService Dim OriItem As SAPbobsCOM.OriginalItem Dim OriItemParams As SAPbobsCOM.OriginalItemParams Dim AltItem As SAPbobsCOM.AlternativeItem oCompanyService = oCompany.GetCompanyService AltItemsService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.AlternativeItemsService) OriItem = AltItemsService.GetDataInterface(SAPbobsCOM.AlternativeItemsServiceDataInterfaces.aisOriginalItem) OriItemParams = AltItemsService.GetDataInterface(SAPbobsCOM.AlternativeItemsServiceDataInterfaces.aisOriginalItemParams) 'Delete Alternative Item OriItemParams.ItemCode = "A00001" AltItemsService.DeleteItem(OriItemParams)

See Also

Related information


Original Item OriginalItem Object
A data structure object holding properties fo the AlternativeItemService.
   Parent: Alternative Items Service AlternativeItemsService Service· Table: OALI

Original Item Params OriginalItemParams Object
This object holds identification properties for the AlternativeItemsService (ItemCode and ItemName).
   Parent: Alternative Items Service AlternativeItemsService Service· Table: OALI

Alternative Items Service Data Interfaces AlternativeItemsServiceDataInterfaces Enumeration
AlternativeItemsService data interfaces.
   Parent: Alternative Items Service AlternativeItemsService Service· Table: OALI

Alternative Items Service AlternativeItemsService Service· Table: OALI
This service manages alternative items in SAP Business One (add, delete, get by key, and update). Source table: OALI.



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