Mapping: Debtor, Item, Clearing

Which SAP field becomes which Bilendo column — and how a clearing travels.

The Debtor Is the Contract Account

Items, the dunning procedure, payment method, and SEPA mandate are tied to the contract account, and a business partner can have several. Therefore: customer_number = ContractAccount, and the business partner becomes the grouping element (external_parent_id).

BilendoSAPRule
customer_numberContractAccountPartner.ContractAccountunchanged
external_parent_idContractAccountPartner.BusinessPartnerGroups the accounts of a partner
customer_name_1A_BusinessPartner.BusinessPartnerFullNamePerson: last name, first name
customer_street … customer_countryA_BusinessPartnerAddress (default address)ISO 2-letter country code
company_codeCAStandardCompanyCodeCompany code of the account
external_payment_termPaymentConditionKey
dunning_stopCABusPartnerAddlLockExstcCode / CABusPartnerPostgLockExstcCode setLock on the debtor (additional lock or posting lock)
Custom field "Dunning procedure" (mapped)CADunningProcedure→ Bilendo dunning area (see Dunning Procedure)
Custom field "Dunning grouping" (mapped)CADunningNoticeGroup→ Bilendo dunning group
Custom field "Payment method"CAPaymentMethodForIncgPaymentDirect debit indicator

The Open Item

Identity in Bilendo: contract · document number · company code · posting line. An item that is delivered again is updated.

BilendoSAP (BPItem)Rule
receipt_numberCADocumentNumberKey component
company_codeCompanyCodeKey component
external_positionCABPItemNumber + CARepetitionItemNumber + CASubItemNumberConcatenated, key component
erp_referenceCAContractUtility contract, key component
imported_customer_numberContractAccountPoints to the debtor
invoice_numberCAReferenceDocumentInvoice number from the customer's perspective
receipt_date / external_creation_dateDocumentDate / CAPostingDatePosting date is the delta anchor
due_dateCANetDueDateIn case of deferral, CADeferralDate applies
amount / currencyCAAmountInTransactionCurrency / TransactionCurrencyReceivable positive, payment negative
open_amountCAOpenAmountInTransactionCrcy (invoice view)0 for full clearing
external_doctype / external_doctype_hintCADocumentType / CAMainTransaction+CASubTransactionCustomer's mapping table
dunning_stopCAItemIsExcludedFromDunning · deferral · collections caseBilendo doesn't dun what SAP excludes
delete_indicatorCAReversedDocumentNumber setReversal withdraws the item
— (do not deliver)CAStatisticalItemCode ≠ emptyStatistical items are not receivables — exception: installment payments via the CDS view

Clearing