Skip to Content
0

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

Jan 23 at 12:32 PM

37

avatar image
Former Member

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"?>
http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>CFFCF8A5-84BA-4DE3-9287-41671D86DFA4</SessionID>
</env:Header>
<env:Body>
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" ?>
http://www.w3.org/2003/05/soap-envelope">
<env:Body>
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>

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers