You want to create an external customer invoice request via the web service ManageCustomerInvoiceRequestIn using the price component 7PRA as a discount, but the discount always displays a value of zero in the system instead of the value you are passing via the web service.
SAP Business ByDesign
Reproducing the Issue
Example of XML request sample you are sending for Discount:
But the value in the uploaded external customer invoice request for the discount is 0,00 USD in your system:
Go to Customer Invoicing work center.
Go to Invoice Requests view.
Open the external customer invoice request ABC you created (ABC represents the ID of the external customer invoice request).
Navigate to the Pricing and Invoicing tab.
Expand the line items:
You can see that the price component for discount has the value 0,00 USD.
The price component 7PRA is a quality loss fee and is a negative quantity, so the value of <DecimalValue> in the XML request has to be negative.
If you want to use the discount type code 7PRA you need to adapt your XML request and the tags under <PriceComponent> accordingly, as in the following sample payload:
Please note that you have to change the data in the sample request to reflect your own data, but you need to keep the minus sign '-' for <DecimalValue>.
Once you have adapted your payload, the price component will be taken into the invoice requests through web service as expected.
7PRA ; discount ; web service ; external ; customer invoice ; decimalvalue ; typecode ; negative ; xml , KBA , AP-CI-CIR , Customer Invoice Request , Problem