{"audience":"Dealer channel sales teams, credit and collection teams, finance and dealer rebate owners.","authorization_objects":[{"note":"Sales order authorization by sales organization","object":"V_VBAK_VKO"},{"note":"Authorization to display cheque documents","object":"F_BKPF_BUK"},{"note":"Sending external email to dealers","object":"S_OC_SEND"}],"components":[],"countries":[],"effort_days_max":15,"effort_days_min":10,"effort_size":"M","faq":[{"a":"No. Credit management keeps monitoring the dealer's total exposure; this enhancement tracks which orders consume a specific cheque. Both work together: an order of a dealer with an advance cheque can be released against the cheque balance even if the credit limit is used up, if setup allows it.","q":"Does this replace the credit check?"},{"a":"When the cheque is processed as dishonoured in FI, the cheque record is blocked; new orders are no longer deducted from it and the amounts already used are flagged as a risk in the list. Open orders can get a delivery block according to the setup.","q":"What happens if the cheque bounces?"},{"a":"The cheque, order and usage logic stays the same. On the rebate side, condition contracts are used instead of SD rebate agreements, and the link to the cheque is made with the contract number. A BAdI can be preferred over the user exit.","q":"What changes when moving to S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"The cheque opens the FI document and the order opens the sales order."},{"code":"email","label":"Send the result by email","note":"Dealers receive a weekly cheque usage summary."},{"code":"background","label":"Runs as a background job","note":""},{"code":"excel","label":"Export to Excel","note":""}],"functions":[{"name":"BAPI_AR_ACC_GETOPENITEMS","role":"Fetches the dealer's open cheque items when defining a cheque"},{"name":"SO_NEW_DOCUMENT_ATT_SEND_API1","role":"Sends the cheque usage summary to the dealer"}],"gap":"Received cheques are posted in FI as special G/L transactions, and credit management can take them into account in the exposure. But standard SAP cannot tie a specific cheque to specific orders, reduce the cheque's remaining balance per order or show which order was covered by which cheque. A rebate or discount agreement granted with a commitment cheque is not linked to the cheque automatically either.","id":"sd-advance-cheque-order-allocation","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-19","logic":"1. The cheque master data screen creates an advance cheque record from the received cheque document posted in FI (BSID special G/L item, cheque details in BSED: cheque number, bank, place of issue, due date); the cheque type (advance, commitment), valid sales area, usage start and end date and an optional rebate agreement number are entered. The record is kept in a custom cheque table.\n2. When a sales order is saved, USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ runs (in S/4HANA the same check can also be built with BADI_SD_SALES_BASIC). If the dealer, sales area and order type are enabled for cheque usage in setup, the valid cheques are sorted by due date.\n3. The order's net value (VBAK-NETWR; whether tax is included is chosen in setup) is deducted from the remaining balance of the first suitable cheque; if it is not enough, the next cheque is used. The usage line is written to the usage table with order number, amount and user, and the cheque reference is passed to the order's assignment field (VBAK-ZUONR).\n4. If the balance is not enough, the behaviour from setup is applied: warning, delivery block (VBAK-LIFSK) or blocking the save. If an order item is rejected, its value goes down or the order is deleted, the used amount is written back to the cheque.\n5. The usage list shows per cheque the initial amount, used, remaining, orders and due date. A weekly job emails each dealer a cheque usage summary with SO_NEW_DOCUMENT_ATT_SEND_API1.\n6. If the cheque is linked to a rebate agreement (KONA via VBO1 in ECC, a condition contract in S/4HANA), the agreement number is set on the order (VBAK-KNUMA); the period-end rebate calculation selects the orders covered by the cheque with this number.","module":"SD","object_type":"enhancement","output_columns":[{"calculated":false,"formula":"","label":"Cheque number","source_field":"BOENO","source_table":"BSED"},{"calculated":false,"formula":"","label":"Dealer","source_field":"KUNNR","source_table":"VBAK"},{"calculated":false,"formula":"","label":"Dealer name","source_field":"NAME1","source_table":"KNA1"},{"calculated":false,"formula":"","label":"Due date","source_field":"ZFBDT","source_table":"BSID"},{"calculated":false,"formula":"","label":"Cheque amount","source_field":"WRBTR","source_table":"BSID"},{"calculated":false,"formula":"","label":"Order","source_field":"VBELN","source_table":"VBAK"},{"calculated":true,"formula":"Amount of the order deducted from the cheque","label":"Used","source_field":null,"source_table":null},{"calculated":true,"formula":"Cheque amount − total used by all orders","label":"Remaining balance","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Rebate agreement","source_field":"KNUMA","source_table":"VBAK"},{"calculated":true,"formula":"Open, fully used, expired or insufficient balance","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"200510","kind":"select_option","label":"Dealer","name":"S_KUNNR","ref_field":"VBAK-KUNNR","required":false},{"example":"4471203","kind":"select_option","label":"Cheque number","name":"S_BOENO","ref_field":"BSED-BOENO","required":false},{"example":"01.10.2026 – 18.11.2026","kind":"select_option","label":"Order date","name":"S_ERDAT","ref_field":"VBAK-ERDAT","required":false},{"example":"X","kind":"checkbox","label":"Only cheques with a remaining balance","name":"P_OPEN","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Send summary email to dealers","name":"P_MAIL","ref_field":"","required":false}],"part_of":[],"performance":"At order save, read only that dealer's valid cheques by key fields; do not scan FI open items on every save and keep the cheque balance in the usage table. Lock the cheque record (ENQUEUE) so the same balance is not used twice by concurrent orders.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-advance-cheque-order-allocation","related":["sd-dealer-campaign-promotion","tr-cheque-note-portfolio","tr-credit-limit-upload-cheque-credit-check"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows received cheques as special G/L items; there is no link to orders and no remaining balance.","tcode":"FBL5N"},{"note":"Creates rebate agreements in ECC; does not track a cheque balance. In S/4HANA new agreements are managed as condition contracts.","tcode":"VBO1"}],"summary":"An enhancement that defines advance or commitment cheques received from dealers as master data and, when a sales order is saved, automatically deducts the order value from the balance of a suitable cheque. It provides a usage list per cheque and a summary email to the dealer; the cheque is linked to the dealer's rebate agreement so it can be used in the period-end rebate calculation.","tables":[{"access":"read","join_on":"","role":"Special G/L open item and due date of the received cheque","table":"BSID","variant":"both"},{"access":"read","join_on":"BSED-BUKRS = BSID-BUKRS AND BSED-BELNR = BSID-BELNR AND BSED-GJAHR = BSID-GJAHR","role":"Cheque details: cheque number, bank, place of issue","table":"BSED","variant":"both"},{"access":"read_write","join_on":"VBAK-KUNNR = BSID-KUNNR","role":"Order net value; cheque reference (ZUONR), delivery block and agreement number are set","table":"VBAK","variant":"both"},{"access":"read","join_on":"VBAP-VBELN = VBAK-VBELN","role":"Balance write-back for rejected or changed items","table":"VBAP","variant":"both"},{"access":"read","join_on":"KONA-KNUMA = VBAK-KNUMA","role":"Rebate agreement linked to the cheque (ECC)","table":"KONA","variant":"both"},{"access":"read","join_on":"KNA1-KUNNR = VBAK-KUNNR","role":"Dealer name and email address number","table":"KNA1","variant":"both"}],"title":"Automatic Consumption of Dealer Advance Cheques by Sales Orders, Usage List and Link to Rebate Agreements","url":"https://nekuhub.com/en/programs/dealer-advance-cheque-consumption-by-sales-orders/","vendor_id":"nekudos"}