Symptom
The webservice call for CalculatePriceIn web service runs into error message "Price Calculation ended with error, for details check log/report incident " when you try to calculate the price from a extension field based price list.
Environment
SAP Business Bydesign.
Reproducing the Issue
- You create a CalculatePriceIn call to check the pricing for extension field based Price List with below sample request:
-
<n0:CalculatePricesRequest_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <CalculatePricesRequest> <Application>2</Application> <CurrencyCode>USD</CurrencyCode> <Item> <ID>1</ID> <ProductID>XXXXXXX</ProductID> <ProductTypeCode>1</ProductTypeCode> <Quantity unitCode="EA">1</Quantity> <QuantityTypeCode>EA</QuantityTypeCode> <n1:HeaderExtension xmlns:n1="http://sap.com/xi/AP/CustomerExtension/BYD/ZZZZZ">String 66</n1:HeaderExtension> </CalculatePricesRequest> </n0:CalculatePricesRequest_sync>
- You receive 0 value returns for the items and the following:
<Log>
<MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
<Item>
<SeverityCode>3</SeverityCode>
<Note>Price Calculation ended with error, for details check log/report incident</Note>
</Item>
</Log>
Note: The above mentioned data is a sample data only.
Cause
You have enabled the extension field which is defined at the header level to both the services Calculate Price - Price List and Calculate Price - Price Specification.
For example, If the extension field in Sales Order is in General tab, then use extension scenario CRM Pricing (Header) and the service Calculate Price – Price List.
If the field is in Sales Order is in Item tab, then use extension scenario CRM Pricing (Item) and the service Calculate Price – Price Specification.
Resolution
Kindly remove the extension field from the service Calculate Price – Price Specification and you will be able to get the correct results.
Keywords
CalculatePriceIn; Extension field; Error; , KBA , AP-PRC-PC , Calculation , Problem