cancel
Showing results for 
Search instead for 
Did you mean: 

Get prices with period and volume discount by Unit of Measures in DI-Server - SAP B1

Former Member
0 Kudos

Hi Experts,

In SAP Business One SDK I found a method that is used by DI-API which receive a lots of params like

  • CardCode
  • ItemCode
  • UoMEntry
  • UoMQuantity
  • InventoryQuantity
  • Currency
  • Date
  • PriceList
  • BlanketAgreementNumber
  • BlanketAgreementLine

I cannot find a method like this one in DI-SERVER and I need to get prices with period and volume discount defined by Unit of Measures.

I try with the next xml, and its works to get prices with period and volume discount. But I need to specify the UomEntry and UoMQuantity in some parameters to get that discounts for different unit of measures. And if it possible get the Discount applied to the price in the response.

REQUEST

<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>CFFCF8A5-84BA-4DE3-9287-41671D86DFA4</SessionID>
</env:Header>
<env:Body>
<dis:GetItemPrice xmlns:dis="http://www.sap.com/SBO/DIS">
<CardCode>C00001</CardCode>
<ItemCode>COMPRA</ItemCode>
<amount>16</amount>
<Date>20180122</Date>
</dis:GetItemPrice>
</env:Body>
</env:Envelope>

RESPONSE

<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<GetItemPriceResponse xmlns="http://www.sap.com/SBO/DIS">
<BOM>
<BO>
<AdmInfo>
<Object>oRecordset</Object>
</AdmInfo>
<Recordset>
<row>
<Price>10.000000</Price>
<Currency>$</Currency>
</row>
</Recordset>
</BO>
</BOM>
</GetItemPriceResponse>
</env:Body>

</env:Envelope>

Accepted Solutions (0)

Answers (0)