SAP Knowledge Base Article - Public

3021907 - How to Delete the Down Payment Via Webservices

Symptom

You want to Delete a Down Payment document.

Environment

SAP Business ByDesign

Reproducing the Issue

You sent your payload to ByD Systems but the Down Payment is not being cancelled.

   <soap:Body>

      <n1:DownPaymentCustomerInvoiceRequestBundleMaintainReqiest_sync>

         <BusinessDocumentBasicMessageHeader/>

         <DownPaymentInvoiceRequest actionCode="05">

            <ObjectNodeSenderTechnicalID>1</ObjectNodeSenderTechnicalID>

            <BaseBusinessTransactionDocumentID>XXXX</BaseBusinessTransactionDocumentID>

            <ProposedInvoiceDate>YYYY-MM-DD</ProposedInvoiceDate>

            <ProposedDeviatingPostingDate>YYYY-MM-DD</ProposedDeviatingPostingDate>

            <BuyerParty>11111</BuyerParty>

            <BillToParty>22222</BillToParty>

            <BillFromParty>33333</BillFromParty>

            <SalesUnitParty>44444</SalesUnitParty>

            <PayerParty>55555</PayerParty>

            <PricingTerms>

               <PricingProcedureCode>LLLLLL</PricingProcedureCode>

               <CurrencyCode>XYZ</CurrencyCode>

            </PricingTerms>

            <ExternalReferenceID>ABCDEFG</ExternalReferenceID>

            <Amount currencyCode="XYZ">94</Amount>

         </DownPaymentInvoiceRequest>

      </n1:DownPaymentCustomerInvoiceRequestBundleMaintainReqiest_sync>

   </soap:Body>

</soap:Envelope>

  • XXXX represents the ID of the Down Payment
  • YYYY-MM-DD represents the Date
  • 11111 represents the ID of Buyer Party
  • 22222 represents the ID of Bill To Party
  • 33333 represents the ID of Bill From Party
  • 44444 represents the ID of Sales Unit Party
  • 55555 represents the ID of Payer Party
  • LLLLLL represents the Pricing Procedure Code
  • XYZ represents de Currency Code
  • ABCDEFG represents the External Reference ID.

Cause

It is missing the tag CancelDownPaymentIndicator or the tag is sent but with wrong Action Code.

Resolution

It's necessary to have a CancelDownPaymentIndicator tag to cancel the document and the Action Code needs to be 04.

<DownPaymentInvoiceRequest actionCode="04">
<CancelDownPaymentIndicator>True</CancelDownPaymentIndicator>

Keywords

Down Payment, DownPaymentCustomerInvoice, SOAP,  Webservice, Cancel , KBA , AP-CI-CI , Customer Invoice , How To

Product

SAP Business ByDesign all versions