Symptom
You would like to pass the Tax Code when creating a Down Payment Request via the webservice ManageDownPaymentCustomerInvoiceRequestIn.
Environment
SAP Business ByDesign
Cause
You can pass the Tax Code in the ProductTaxDetails node in the web service ManageDownPaymentCustomerInvoiceRequestIn.
The node ProductTaxDetails contain the TaxationCharacteristicsCode that is determined internally but can be changed externally (Note: If wrong tax code is sent then warning message is returned in response and internally determined tax-code is used).
The tax code depends on the country and represents the tax event, tax type and tax rate type. The tax event controls how taxes are posted in the tax return.
Please Note: the Tax Country cannot be changed via the web service since the element Tax Country is not available in the web service ManageDownPaymentCustomerInvoiceRequestIn
Resolution
Here an example payload:
<soap:Header/>
<soap:Body>
<glob:DownPaymentCustomerInvoiceRequestBundleMaintainReqiest_sync>
<BusinessDocumentBasicMessageHeader>
</BusinessDocumentBasicMessageHeader>
<!--1 or more repetitions:-->
<DownPaymentInvoiceRequest actionCode="01" xmlns="">
<BaseBusinessTransactionDocumentID>XXXXX</BaseBusinessTransactionDocumentID>
<ProposedInvoiceDate>XXXXX</ProposedInvoiceDate>
<ProposedDeviatingPostingDate>XXXX</ProposedDeviatingPostingDate>
<ReconciliationAccount>XXXX</ReconciliationAccount>
<BuyerParty>XXXXX</BuyerParty>
<BillToParty>XXXX</BillToParty>
<BillFromParty>XX</BillFromParty>
<SalesUnitParty>X</SalesUnitParty>
<PayerParty>XXXX</PayerParty>
<PricingTerms>
<PricingProcedureCode>XXXXXX</PricingProcedureCode>
<CurrencyCode>EUR</CurrencyCode>
</PricingTerms>
<ProductTaxDetails>
<ProductTaxationCharacteristicsCode listID="DE">501</ProductTaxationCharacteristicsCode>
</ProductTaxDetails>
<ExternalReferenceID>XXXXX</ExternalReferenceID>
<Amount currencyCode="EUR">1000.0</Amount>
<AgreementDescription />
<SalesOrderReference>258699</SalesOrderReference>
</DownPaymentInvoiceRequest>
</glob:DownPaymentCustomerInvoiceRequestBundleMaintainReqiest_sync>
</soap:Body>
</soap:Envelope>
Keywords
Down Payment; web service; API; Tax Code; Tax Country; ManageDownPaymentCustomerInvoiceRequestIn , KBA , AP-CI-CI , Customer Invoice , Problem
SAP Knowledge Base Article - Public