cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create Sales Order by Web-services with tax code in line Item ?

former_member535084
Participant
0 Kudos
796

Hello Expert,

I created SO by Web-services, but it still missing tax code 509.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:y42="http://0050053356-one-off.sap.com/Y42K2VEHY_" xmlns:a2r="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5" xmlns:glob1="http://sap.com/xi/AP/Globalization">
   <soapenv:Body>
      <glob:SalesOrderBundleMaintainRequest_sync>
         <SalesOrder>
            <BuyerID>RS681923</BuyerID>
            <DataOriginTypeCode>2</DataOriginTypeCode>
            <BillToParty>
               <PartyID>1000070</PartyID>
               <Address>
                  <DisplayName>
                     <FormattedName>Chewy Inc.</FormattedName>
                  </DisplayName>
                  <PostalAddress>
                     <CountryCode>US</CountryCode>
                     <RegionCode>FL</RegionCode>
                     <CityName>Dania Beach</CityName>
                     <StreetPostalCode>33004</StreetPostalCode>
                     <AdditionalStreetPrefixName>Suite B-428</AdditionalStreetPrefixName>
                     <StreetName>1855 Griffin Road</StreetName>
                  </PostalAddress>
               </Address>
            </BillToParty>
            <AccountParty>
               <PartyID>1000070</PartyID>
            </AccountParty>
            <ProductRecipientParty>
               <PartyID>1000070</PartyID>
               <Address>
                  <DisplayName>
                     <FormattedName>Chewy, Inc. (IN - Clayton)</FormattedName>
                  </DisplayName>
                  <PostalAddress>
                     <CountryCode>US</CountryCode>
                     <RegionCode>IN</RegionCode>
                     <CityName>Clayton</CityName>
                     <StreetPostalCode>46118</StreetPostalCode>
                     <StreetName>1974 Innovation Blvd</StreetName>
                  </PostalAddress>
               </Address>
            </ProductRecipientParty>
            <SalesUnitParty>
               <PartyID>3100</PartyID>
            </SalesUnitParty>
            <TextCollection>
               <Text>
                  <TypeCode>10024</TypeCode>
                  <ContentText>Unless agreed upon separately in writing, Chewy reserves the right to cancel any PO, in whole or in part, via line item or otherwise, or reduce quantities. Such cancelations or modifications may be made by Chewy at any time prior to shipment.</ContentText>
               </Text>
            </TextCollection>
            <y42:EDI_SOURCE>1</y42:EDI_SOURCE>
            <a2r:EDI_BILLTOCODE>DCOTAAP</a2r:EDI_BILLTOCODE>
            <a2r:EDI_BILLTONAME>Chewy Inc.</a2r:EDI_BILLTONAME>
            <y42:EDIReferenceKey>1087576_201902</y42:EDIReferenceKey>
            <a2r:EDI_TRANSACTIONCONTROLNO>1172</a2r:EDI_TRANSACTIONCONTROLNO>
            <a2r:EDI_850_TRANSTYPE>00</a2r:EDI_850_TRANSTYPE>
            <a2r:EDI_TRANSACTIONPURPOSECODE>SA</a2r:EDI_TRANSACTIONPURPOSECODE>
            <a2r:EDI_PONO>RS681923</a2r:EDI_PONO>
            <a2r:EDI_PODATE>2019-05-30</a2r:EDI_PODATE>
            <a2r:EDI_INTERNALVENDORNUMBER>8180</a2r:EDI_INTERNALVENDORNUMBER>
            <a2r:EDI_GUESTNAME>Chewy Receiving Dept IN</a2r:EDI_GUESTNAME>
            <a2r:EDI_GUESTCONTACTINFO>(317)-539-8531</a2r:EDI_GUESTCONTACTINFO>
            <a2r:EDI_FREIGHTMETHODPAYMENT>PP</a2r:EDI_FREIGHTMETHODPAYMENT>
            <a2r:EDI_FREIGHTTERMSCODE>DE</a2r:EDI_FREIGHTTERMSCODE>
            <a2r:EDI_FREIGHTDESCRIPTION>Chewy, Inc. (IN - Clayton)</a2r:EDI_FREIGHTDESCRIPTION>
            <a2r:EDI_MESSAGE>Unless agreed upon separately in writing, Chewy reserves the right to cancel any PO, in whole or in part, via line item or otherwise, or reduce quantities. Such cancelations or modifications may be made by Chewy at any time prior to shipment.</a2r:EDI_MESSAGE>
            <a2r:EDI_TERMSDESCRIPTION>Net 60</a2r:EDI_TERMSDESCRIPTION>
            <a2r:EDI_DELIVERYDATE>2019-06-15</a2r:EDI_DELIVERYDATE>
            <a2r:EDI_INSTRUCTION>.</a2r:EDI_INSTRUCTION>
            <a2r:EDI_NUMBEROFLINEITEMS>1</a2r:EDI_NUMBEROFLINEITEMS>
            <a2r:EDI_SHIPTOCODE>CFC1</a2r:EDI_SHIPTOCODE>
            <Item>
               <ID>10000</ID>
               <ItemProduct>
                  <ProductInternalID>100-30502-01</ProductInternalID>
                  <UnitOfMeasure>EA</UnitOfMeasure>
               </ItemProduct>
               <ItemScheduleLine>
                  <Quantity>12.00</Quantity>
               </ItemScheduleLine>
               <PriceAndTaxCalculationItem>
                <CountryCode>US</CountryCode>
                <TaxationCharacteristicsCode listID="US">509</TaxationCharacteristicsCode>
                <TaxJurisdictionCode listID="US">CA</TaxJurisdictionCode>
            </PriceAndTaxCalculationItem>
               <p4:EDI_850DTL_UNITPRICE xmlns:p4="http://0050053356-one-off.sap.com/Y42K2VEHY_">74.9700</p4:EDI_850DTL_UNITPRICE>
               <p5:ChewyItemNo xmlns:p5="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">850522005430</p5:ChewyItemNo>
               <pB:EDI_PRODUCTCODE1 xmlns:pB="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">100-30502-01</pB:EDI_PRODUCTCODE1>
               <pC:EDI_PRODUCTCODE2 xmlns:pC="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">111012</pC:EDI_PRODUCTCODE2>
               <pD:EDI_PRODUCTCODE3 xmlns:pD="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">850522005430</pD:EDI_PRODUCTCODE3>
               <pF:EDI_PRODUCTCODEQUALIFIER1 xmlns:pF="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">VN</pF:EDI_PRODUCTCODEQUALIFIER1>
               <p10:EDI_PRODUCTCODEQUALIFIER2 xmlns:p10="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">SK</p10:EDI_PRODUCTCODEQUALIFIER2>
               <p11:EDI_PRODUCTCODEQUALIFIER3 xmlns:p11="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">UK</p11:EDI_PRODUCTCODEQUALIFIER3>
               <p13:EDI_PRODUCTDESCRIPTION xmlns:p13="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">WHISTLE 3 DOG/CAT GPS LOC ACTVTY TRCKR</p13:EDI_PRODUCTDESCRIPTION>
               <p14:EDI_Quantity xmlns:p14="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">12.00</p14:EDI_Quantity>
               <p15:EDI_UNITPRICE xmlns:p15="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">74.9700</p15:EDI_UNITPRICE>
               <p16:EDI_UOM xmlns:p16="http://sap.com/xi/AP/CustomerExtension/BYD/A2RN5">EA</p16:EDI_UOM>
            </Item>
         </SalesOrder>
      </glob:SalesOrderBundleMaintainRequest_sync>
   </soapenv:Body>
</soapenv:Envelope>

How can I created SO with tax code in line item ?

Regards

Quyen

former_member535084
Participant
0 Kudos

Hello may.thitsaoo,

Do you have any idea ?

Thanks,

Quyen

may_thitsaoo
Contributor

Hi Quyen,

Your xml data seems correct. I wonder its missing some item data and that cause tax code cannot be updated.

I am sorry that I am not able to check webservice test currently in my PC.

Regards,

May

Accepted Solutions (0)

Answers (1)

Answers (1)

arunml
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Quyen Nguyen,

You can refer to help center document from Service Explorer view of Application and User Management work center.

Inbound Service ManageSalesOrderIn

A specification of the general procedure for price and tax determination and valuation using attributes that are characteristic or relevant for the whole object.

Note: PriceAndTaxCalculation cannot be created but can only be modified. So this means that if the customer wishes to change the Discount or Freight charge, then the customer has to create the order first and then make a second web-service request to the update this sales order with the pricing information that is to be changed. Details on how to create a sample update request is mentioned below.

AttributesDescriptionactionCodeRefer to the General Rules for Using this Web Service section for more details.priceComponentListCompleteTransmissionIndicatorPriceComponent sub-node is of multiple cardinality.productTaxDetailsListCompleteTransmissionIndicatorProductTaxDetails sub-node is of multiple cardinality.withholdingTaxDetailsListCompleteTransmissionIndicatorWithholdingTaxDetails sub-node is of multiple cardinality.

Child Node – ProductTaxDetails (multiple cardinality)

The details determined for a specific type of product tax for the entire document.

Product taxes are taxes that are incurred for product-related business cases, such as purchasing, sales or consumption.

Best Regards,
Arun

former_member535084
Participant
0 Kudos

Hello run Mavinahally Lakshmikantha,

The solution sent 2 request seen to be not good enough for my services. I need to change a lot in production and It also risk.

How can I set up each accounts usually get a default tax code in Bydesign ?

If it is possible, I will suggest my customer.

Best Regards

Quyen