SAP Knowledge Base Article - Public

2635218 - Updating Of Discounts By XML Requests In Sales Order

Symptom

You want to check how to update discount by both fix amount and percentage via webservice within a sales order

Environment

SAP Business ByDesign

Reproducing the Issue

When creating sales orders via webservice they are implemented with different kinds of discounts such as fix discount / discount by percentage

Cause

By default it is only possile to update fix discount or percentage within one webservice
There is only one main discount in the system which is "8PR6"

Resolution

To achieve an update of both the discounts by XML
you can overwrite as workaround the 8PRA as the "Gross Quality Loss fee" to "fix discount"

To update the discounts please send both the component in the same request

->"8PR6" in the main discount and "8PRA"


<PriceComponent>
<TypeCode>8PRA</TypeCode>
<Rate>
<DecimalValue>7</DecimalValue>
</Rate>
</PriceComponent>.

Keywords

XML, Discount, Update, Price Component, Webservice , KBA , AP-PRC-PC , Calculation , Problem

Product

SAP Business ByDesign 1711 ; SAP Business ByDesign 1802 ; SAP Business ByDesign 1805 ; SAP Business ByDesign 1808