cancel
Showing results for 
Search instead for 
Did you mean: 

Add Tax details in sales order via API

Former Member
0 Kudos

I have created a sales order using the manage sales order api. Then i updated the order to add the freight and discount. But i was unable to add the tax value via api.

This is the request

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
   <soap:Body>
      <glob:SalesOrderBundleMaintainRequest_sync>
         <SalesOrder actionCode="02">
            <ID>2860</ID>
            <PriceAndTaxCalculation>
               <MainDiscount actionCode="04">
                  <TypeCode>0007</TypeCode>
                  <Rate>
                     <DecimalValue>20.00</DecimalValue>
                  </Rate>
               </MainDiscount>
               <PriceComponent actionCode="01">
                  <TypeCode>7PR8</TypeCode>
                  <Rate>
                     <DecimalValue>10.00</DecimalValue>
                  </Rate>
               </PriceComponent>
               <ProductTaxDetails actionCode="02">
                  <Rate>
                     <DecimalValue>100</DecimalValue>
                  </Rate>
               </ProductTaxDetails>
            </PriceAndTaxCalculation>
            <Item actionCode="02">
               <ID>10</ID>
               <PriceAndTaxCalculationItem>
                  <ItemMainDiscount>
                     <TypeCode>7PR6</TypeCode>
                     <Rate>
                        <DecimalValue>0.00</DecimalValue>
                     </Rate>
                  </ItemMainDiscount>
               </PriceAndTaxCalculationItem>
            </Item>
         </SalesOrder>
      </glob:SalesOrderBundleMaintainRequest_sync>
   </soap:Body>
</soap:Envelope>

Response

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
   <env:Header/>
   <env:Body>
      <n0:SalesOrderBundleMaintainConfirmation_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:K7Q:/1SAI/TAE88DF3AA925C3E49C60CC:804">
         <Log>
            <MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
            <Item>
               <TypeID>025(/MBF_A2X_CORE/)</TypeID>
               <CategoryCode>BPR.PUR</CategoryCode>
               <SeverityCode>3</SeverityCode>
               <Note>Update not possible; existing data for PRODUCT_TAX_DETAILS not fully specified</Note>
            </Item>
            <Item>
               <TypeID>007(/MBF_A2X_CORE/)</TypeID>
               <CategoryCode>BPR.PUR</CategoryCode>
               <SeverityCode>3</SeverityCode>
               <Note>Missing key specification for processing node SALES_ORDER PriceAndTaxCalculation.PRODUCT_TAX_DETAILS</Note>
            </Item>
         </Log>
      </n0:SalesOrderBundleMaintainConfirmation_sync>
   </env:Body>
</env:Envelope>

I checked the WSDL documentation, but couldn't find any reference.

Accepted Solutions (0)

Answers (0)