Skip to Content
0
Feb 02, 2023 at 07:35 AM

Sales Quote via webservice: Error while copying price components and tax details

101 Views Last edit Feb 02, 2023 at 01:12 PM 2 rev

Hi all!

I am using the ManageCustomerQuoteIn webservice to create new items to an existing sales quote, but get the below error:

Error while copying price components and tax details

This is the xml:

http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob=" http://sap.com/xi/SAPGlobal20/Global">

<soapenv:Header/>

<soapenv:Body>

<glob:CustomerQuoteBundleMaintainRequest_sync>

<BasicMessageHeader>

</BasicMessageHeader>

<CustomerQuote actionCode="04">

<ID>128</ID>

<Items actionCode="01">

<ID>30</ID>

<ItemProduct>

<ProductInternalID>C0H00-00213X017-316T</ProductInternalID>

</ItemProduct>

<PriceAndTaxCalculationItem>

<ItemMainPrice>

<Rate>

<DecimalValue>40</DecimalValue>

<CurrencyCode>EUR</CurrencyCode>

</Rate>

</ItemMainPrice>

</PriceAndTaxCalculationItem>

<FirstRequestedScheduleLine>

<Quantity>10</Quantity>

</FirstRequestedScheduleLine>

</Items>

</CustomerQuote>

</glob:CustomerQuoteBundleMaintainRequest_sync>

</soapenv:Body>

</soapenv:Envelope>

If I try to modify an existing item, I don't get the above error, only when I want to create a new one.

What am I doing wrong? What can cause this error message?

Thanks for the help!

UPDATE:

If I create an item without the itemMainPrice, then (even in the same call) create another item with the itemMainPrice, then I do not get the above error message. But after deleting the item which do not have the itemMainPrice and try to create another item, then the error message appears again. Is this how it should work? If yes, why?