SAP Knowledge Base Article - Public

3029266 - "Mandatory List Price missing for the price calculation" Error When Trying to Create a Sales Order with 0.00 Value via Webservice

Symptom

You are trying to create a Sales Order via Webservice where one or more items have the value of 0.00, however, the document is created as inconsistent with error "Item AB: Mandatory List Price missing for the price calculation" (Where AB Represents the line item ID).

Environment

SAP Business ByDesign

Reproducing the Issue

Example of Pricing sent in XML Request via API Testing Tool (e.g. SoapUI):

  <PriceAndTaxCalculationItem>
     <ItemMainPrice>
        <Rate>
           <DecimalValue>0.00</DecimalValue>
        </Rate>
     </ItemMainPrice>
  </PriceAndTaxCalculationItem>

Cause

This happens when the Price being sent in the Payload is 0 and no Currency Code has been maintained in the Payload as well.

Resolution

To avoid this issue, please ensure that the <CurrencyCode> tag is also maintained in the same Webservice call. You can find an example below, using the Currency Code for Euro:

  <PriceAndTaxCalculationItem>
     <ItemMainPrice>
        <Rate>
           <DecimalValue>0.00</DecimalValue>
           <CurrencyCode>EUR</CurrencyCode>
        </Rate>
     </ItemMainPrice>
  </PriceAndTaxCalculationItem>

Keywords

Web Service, Payload, Request, Response, Zero, 0, Value, Price, Error, Invalid, Ignore, Calculation , KBA , AP-SLO-SO , Sales Order , How To

Product

SAP Business ByDesign all versions