biuan SAP® BUSINESS ONE SDK
API Special Prices / Get By Key Discounts

Description

Retrieves the discounts for a specific item that apply to all business partners.

To retrieve discounts for a specific business partner, use the GetByKey method.

Syntax

Visual Basic
Public Function GetByKeyDiscounts( _
   ByVal ItemCode As String, _
   ByVal PriceListNum As Long _
) As Boolean

Parameters

ItemCode

The key of the item whose discounts are to be retrieved. This is a foreign key to the Items object.

PriceListNum
The key of the price list whose discounts are to be retrieved. This is a foreign key to the PriceLists object.

Example

Getting a special price (for all business partners) (Visual Basic)
Dim oSppDel As SAPbobsCOM.SpecialPrices oSppDel = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oSpecialPrices) Dim bret As Boolean = oSppDel.GetByKeyDiscounts("I0001", "Code1")

See Also

Related information


Special Prices Data Areas SpecialPricesDataAreas Object· Table: SPP1
SpecialPricesDataAreas is a child object of SpecialPrices object and represents special prices that are valid only for specified periods such as, holidays and season sales. Source table: SPP1.
   Parent: Special Prices SpecialPrices Object· Table: OSPP

Source Currency Enum SourceCurrencyEnum Enumeration
   Parent: Special Prices SpecialPrices Object· Table: OSPP

Special Prices SpecialPrices Object· Table: OSPP
Represents a discount for a specific item in a specific price list. The discount can apply to a specific business partner or for all business partners. Specific Partners: To view discounts for specific business partners, select Inventory --


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