cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

B1iF DI-API CompanyService GetItemPrice

705

Hello All,

For a customer I need te check the unitprice in a scenario

Therefore I want to use the ItemPrice Service. See SDK Documentation below.

Dim params As SAPbobsCOM.ItemPriceParams
Dim rtnParams As SAPbobsCOM.ItemPriceReturnParams
Try
params = vCmp.GetCompanyService.GetDataInterface(CompanyServiceDataInterfaces.csdiItemPriceParams)
params.CardCode = "C001"
params.ItemCode = "I002"
params.UoMEntry = 1
params.UoMQuantity = 2
params.InventoryQuantity=6
params.Currency = "EUR"
params.Date = "01.13.2013"
params.PriceList = 1
params.BlanketAgreementNumber = 2
params.BlanketAgreementLine = 1

rtnParams = vCmp.GetCompanyService.GetDataInterface(CompanyServiceDataInterfaces.csdiItemPriceReturnParams)
rtnParams = vCmp.GetCompanyService().GetItemPrice(params)

RCurrency = rtnParams.Currency
RPrice = rtnParams.Price
RDiscount = rtnParams.Discount

Catch ex As System.Exception
...
End Try

Is it possible to call this service in a DI batch call inside B1i?

Has somebody an example?

Mark

Accepted Solutions (0)

Answers (1)

Answers (1)

brendendraper
Explorer
0 Kudos

Hi All,

Anyone managed to get the above mentioned working in B1IF ?

Not exactly sure about the order of all these params below:

Kind Regards,

Brenden Draper