Skip to Content

How to create a SalesOrder using ManageSalesOrderIn with PriceAndTaxCalculationItem?

Dear experts,

In BYD system, I'm trying to create a SalesOrder via web services ManageSalesOrderIn(MaintainBundle). It also include the priceComponent.
It does not work PriceAndTaxCalculationItem.

Can you tell me how to create sale order also include priceComponent ?
There is not document at standard help, I am crazy.

This is My code

http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob=" http://sap.com/xi/SAPGlobal20/Global" xmlns:glob1=" http://sap.com/xi/AP/Globalization">
<soapenv:Header/>
<soapenv:Body>
<glob:SalesOrderBundleMaintainRequest_sync>
<SalesOrder>
<BuyerID>wbtest02</BuyerID>
<!--Optional:-->
<Name>test02</Name>
<!--Optional:-->
<AccountParty>
<!--Optional:-->
<PartyID>C00006</PartyID>
</AccountParty>
<DeliveryTerms>
<CompleteDeliveryRequestedIndicator>1</CompleteDeliveryRequestedIndicator>
</DeliveryTerms>
<SalesAndServiceBusinessArea>
<!--Optional:-->
<DistributionChannelCode>02</DistributionChannelCode>
</SalesAndServiceBusinessArea>
<SalesUnitParty>
<PartyID>72997000</PartyID>
</SalesUnitParty>
<EmployeeResponsibleParty>
<PartyID>8000000021</PartyID>
</EmployeeResponsibleParty>
<PricingTerms>
<!--Optional:-->
<CurrencyCode>CNY</CurrencyCode>
<GrossAmountIndicator>false</GrossAmountIndicator>
</PricingTerms>
<Item>
<!--Optional:-->
<ItemProduct>
<!--Optional:-->
<ProductInternalID>1003</ProductInternalID>
<UnitOfMeasure>TNE</UnitOfMeasure>
</ItemProduct>
<ItemScheduleLine>
<Quantity unitCode="TNE">0.20</Quantity>
<QuantityTypeCode>MASS</QuantityTypeCode>
</ItemScheduleLine>
<PriceAndTaxCalculationItem>
<ItemMainPrice>
<TypeCode>7PRB</TypeCode>
<Rate>
<DecimalValue>152.0</DecimalValue>
<CurrencyCode>CNY</CurrencyCode>
<BaseDecimalValue>1.0</BaseDecimalValue>
<BaseMeasureUnitCode>TNE</BaseMeasureUnitCode>
</Rate>
</ItemMainPrice>
<ItemPriceComponent>
<TypeCode>7PRB</TypeCode>
<Rate>
<DecimalValue>152.0</DecimalValue>
<CurrencyCode>CNY</CurrencyCode>
<BaseDecimalValue>1.0</BaseDecimalValue>
<BaseMeasureUnitCode>TNE</BaseMeasureUnitCode>
</Rate>
</ItemPriceComponent>
</PriceAndTaxCalculationItem>
</Item>
<PriceAndTaxCalculation>
<MainPrice>
<TypeCode>7PRB</TypeCode>
<Rate>
<DecimalValue>152.0</DecimalValue>
<CurrencyCode>CNY</CurrencyCode>
<BaseDecimalValue>1.0</BaseDecimalValue>
<BaseMeasureUnitCode>TNE</BaseMeasureUnitCode>
</Rate>
</MainPrice>
<PriceComponent>
<TypeCode>7PRB</TypeCode>
<Rate>
<DecimalValue>152.0</DecimalValue>
<CurrencyCode>CNY</CurrencyCode>
<BaseDecimalValue>1.0</BaseDecimalValue>
<BaseMeasureUnitCode>TNE</BaseMeasureUnitCode>
</Rate>
</PriceComponent>
</PriceAndTaxCalculation>
</SalesOrder>
</glob:SalesOrderBundleMaintainRequest_sync>
</soapenv:Body>
</soapenv:Envelope>

Thanks a lot.

Best Regards,

Benny

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 01, 2017 at 08:20 AM

    Hi experts,

    From this link: https://blogs.sap.com/2015/05/15/mass-changes-of-byd-data-using-excel-and-byd-web-services/

    I create a Excel template, two step to success.

    1.create the SalesOrder with the WebService

    2.update the price of SalesOrder with the same WebService

    updateprice.png

    The template can not upload, please send email to me ask for the template, huangb.mmsh@sinopec.com

    Best Regards,

    Benny

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 27, 2017 at 12:45 PM

    Hi Benny, hope all is well.

    Please see below the usage of a PriceAndTaxCalculation with Freight.

    <n0:SalesOrderBundleMaintainRequest_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
    <BasicMessageHeader/>
    <SalesOrder>
    <ID>123</ID>
    <PriceAndTaxCalculation priceComponentListCompleteTransmissionIndicator="false">
    <PriceComponent actionCode="01">
    <TypeCode>7PR8</TypeCode>
    <Rate>
    <DecimalValue>7</DecimalValue>
    </Rate>
    </PriceComponent>
    </PriceAndTaxCalculation>
    </SalesOrder>
    </n0:SalesOrderBundleMaintainRequest_sync>

    Hope this does help you.

    Best regards,
    Henrique dos Santos

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Henrique,

      I find the result: Note: PriceAndTaxCalculation cannot be created but can only be modified. If you want to change the ‘Discount’ or ‘Freight’ charge, you must create the order first, and then make a second web-service request to update the sales order with the pricing information that is to be changed.

      If you want to change the price components for a sales order with external payment, you must update the payment information with the pricing changes in second web-service request.

      Thanks a lot.

      Benny

  • Jun 27, 2017 at 11:40 AM

    Hello Benny,

    Do you get any messages?

    Reg. the code values: Did you verify that the resp. code values exist in the C4C system?

    Bye,
    . Horst

    Add comment
    10|10000 characters needed characters exceeded