SAP Knowledge Base Article - Public

3085328 - You Want to Know How to Create a Down Payment with External Payment via Web Service

Symptom

You are facing error message when try to create a down payment with external payment via web service.

Environment

SAP Business ByDesign

Cause

Payment Control is only concerted about how the payment is made. Down payment document is not a form of payment and Down payment also requires payment.

Resolution

You can only create the sales order and maintain the external payment in the sales order first. And then create the down payment which linked to this sales order.

To create a down payment which linked to this sales order, you can refer to the below XML as sample:

<n0:DownPaymentInvoiceRequestBundleMaintainRequest_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<BusinessDocumentBasicMessageHeader/>
<DownPaymentInvoiceRequest actionCode="04">
<BaseBusinessTransactionDocumentID>EXTDP-2</BaseBusinessTransactionDocumentID>
<Name>Test Down Payment with sales order</Name>
<ProposedInvoiceDate>2021-07-22</ProposedInvoiceDate>
<ProposedDeviatingPostingDate>2021-07-22</ProposedDeviatingPostingDate>
<BusinessTransctionTypeCode>29</BusinessTransctionTypeCode>
<BuyerParty>
<InternalID>MC9785</InternalID>
</BuyerParty>
<SalesUnitParty>
<InternalID>MC42111</InternalID>
</SalesUnitParty>
<EmployeeResponsibleParty>
<InternalID>MC2471</InternalID>
</EmployeeResponsibleParty>
<CashDiscountTerms>
<Code>1002</Code>
</CashDiscountTerms>
<PricingTerms>
<PricingProcedureCode>PPNDP1</PricingProcedureCode>
<CurrencyCode>USD</CurrencyCode>
</PricingTerms>
<Amount currencyCode="USD">5000.0</Amount>
<BusinessTransactionDocumentReference>
<ID>945</ID>
<UUID>00163EAE-DF8C-1EDB-BABF-E34E20EF991B</UUID>
<TypeCode>114</TypeCode>
</BusinessTransactionDocumentReference>
</DownPaymentInvoiceRequest>
</n0:DownPaymentInvoiceRequestBundleMaintainRequest_sync>

Please note that the type code refer to the sales order type. The ID is the ID of the sales order in question and the UUID is the actually UUID of the sales order. All of these are needed.

Once this is done it will create the down payment that is linked to the sales order.

See Also

KBA   2973282 - You Receive Error Message "Price Component is not Valid" When Creating Sales Orders via Web Service Calls

KBA   2962396 - Sales Orders with External Payment are visible despite ReleaseCustomerRequest set to false

KBA   2239770 - A2X Sales Order with External Payment Cannot be Changed

Keywords

External Payment, Sales Order, Down Payment , KBA , SRD-CRM-ORD , Orders & Contracts , Problem

Product

SAP Business ByDesign all versions