2

What's the main differences between the DI API methods for GetItemPrice?

The SBObob accepts less parameters (and returns a Recordset), but as far as I can tell it provides the accurate price for the item taking into accounts any Business Partner discounts and the quantity of the item, etc...

The CompanyService GetItemPrice call seems to take a lot more parameters AND returns a ItemPriceReturnParams object - but information is scarce in the SDK help file for this method. And there's no information on this return type as well... I've already searched the SAP archive forums... Also I'm using version 9.2.

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48

1 Answers1

1

ItemPriceReturnParams have three properties as you may know:

  • Currency
  • Discount
  • Price
Beqa Latsabidze
  • 212
  • 4
  • 12
  • So the main reason to use CompanyService GetItemPrice instead of SBObob Getitemprice is that the CompanyService one returns more information (currency, discount) where as the other one only returns price? I'm guessing the Price will always be the same, whichever method you use then, and the only reason to use CompanyService would be if you a) wanted to avoid ado objects and b) didn't need the currency or discount, is that correct? – Daniel Sampson Sep 29 '17 at 11:50