SAP Knowledge Base Article - Public

2712330 - Condition Based Downpayment amount missing in output


  • While using Condition Based Downpayment, on the output of the Customer Invoice the Downpayment amount is missing
  • The Downpayment is recognized and settled but not shown on the Customer Invoice


SAP S/4HANA Cloud All versions

Reproducing the Issue

  1. Create a Sales Order
  2. Post a Downpayment to FI
  3. Create the final Invoice


Missing functionality.


Download the form from the system and do the following changes:

  1. Add following new fields (I recommend to do that directly in the XML Source view of the Lifecycle designer):

    - “txtConditionType” in Subform “Form.bdyMain.frmSummaryInfoTermsConditions.frmRightSide.frmSummaryBlock.frmPricing.frmHiddenAmount”
    - “decDownPaymentAmount” in Subform “Form.frmHiddenGlobalFields”

  2. Bind txtConditionType to $.ConditionType

  3. Add some Scripting:
  • Filter out the ConditionTypes you don’t want to be displayed in the Pricing Table and save the downpayment amount for later use in field decDownPaymentAmount:

Form.bdyMain.frmSummaryInfoTermsConditions.frmRightSide.frmSummaryBlock.frmPricing::initialize - (FormCalc, client)

if (this.frmHiddenAmount.txtConditionType.rawValue == "AZWB")


Form.frmHiddenGlobalFields.decDownpaymentAmount.rawValue = this.frmHiddenAmount.decCalculatedAmount.rawValue

this.presence = "hidden"


if (this.frmHiddenAmount.txtConditionType.rawValue == "AZWA")


this.presence = "hidden"


  • Change the display of the DownPaymentOverviewBlock, to show it also in this scenario (add the new scripting after the existing one at this place!):

Form.bdyMain.frmSummaryInfoTermsConditions.frmRightSide.frmDownPaymentsOverviewBlock::initialize - (FormCalc, client)

if( not Form.frmHiddenGlobalFields.decDownpaymentAmount.rawValue == "" )


this.presence = "visible";


  • Fill Clearable Down Payment Amount (place the scripting instead of the existing one!)

Form.bdyMain.frmSummaryInfoTermsConditions.frmRightSide.frmDownPaymentsOverviewBlock.frmDownPaymentTotalAmount.txtAmountCurrency::initialize - (FormCalc, client)

this.rawValue = Concat(Form.frmHiddenGlobalFields.decDownpaymentAmount.formattedValue, " " , Form.frmHiddenGlobalFields.txtTransactionCurrency.rawValue )

  • Fill Open Total Amount (place the scripting instead of the existing one!)

Form.bdyMain.frmSummaryInfoTermsConditions.frmRightSide.frmDownPaymentsOverviewBlock.frmOpenAmount.txtAmountCurrency::initialize - (FormCalc, client)

this.rawValue = Form.bdyMain.frmSummaryInfoTermsConditions.frmRightSide.frmSummaryBlock.frmGrossAmount.frmHiddenAmount.decCalculatedAmount.rawValue - Form.frmHiddenGlobalFields.decDownpaymentAmount.rawValue

this.rawValue = Concat(this.rawValue, " " , Form.frmHiddenGlobalFields.txtTransactionCurrency.rawValue)


Condition Based Downpayment, Output, Downpayment, FI-AR, post, posting, Billing, Form, Layout , KBA , SD-BIL , Billing , Problem


SAP S/4HANA Cloud all versions