---
id: object/codeunit/1954
type: object
title: Codeunit 1954 "LP Feature Table Helper"
summary: Codeunit 1954 "LP Feature Table Helper" in LatePaymentPredictor (Microsoft.Finance.Latepayment). 15 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - latepaymentpredictor
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: fa7e53d46eacc7c58eb6c5f396e0d18688cc5f529a22d7ddbf3525216caf5abf
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/LatePaymentPredictor/app/src/LPFeatureTableHelper.Codeunit.al
    title: src/Apps/W1/LatePaymentPredictor/app/src/LPFeatureTableHelper.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1954
name: LP Feature Table Helper
namespace: Microsoft.Finance.Latepayment
app: LatePaymentPredictor
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 16
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 3
  implements: 0
---

# Codeunit 1954 "LP Feature Table Helper"

> Codeunit 1954 "LP Feature Table Helper" in LatePaymentPredictor (Microsoft.Finance.Latepayment). 15 public procedures. Introduced in BC29, still in BC30.

LatePaymentPredictor · Microsoft.Finance.Latepayment · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/LatePaymentPredictor/app/src/LPFeatureTableHelper.Codeunit.al) · facts from BC29

## Procedures

- `ResetAndFillFeaturesTable(var LPMLInputData: Record "LP ML Input Data"; CustomerNo: Code[20]; BasedOnIncrement: Boolean; LastInvoicePostingDate: Date)`
- `SetBasicFilterOnSalesInvoiceHeader(var SalesInvoiceHeader: Record "Sales Invoice Header")`
- `SetFiltersOnSalesInvoiceHeaderToAddToInput(var LppSalesInvoiceHeaderInput: Query "LPP Sales Invoice Header Input"; CustomerNo: Code[20])`
- `CountLPMLInputData(CustomerNo: Code[20]; LastPostingDate: Date; var InvoiceCountOnOrBeforePostingDate: Integer; var InvoiceCountAfterPostingDate: Integer)`
- `CalculateNumberPaidInvoices(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Integer`
- `WasInvoiceHeaderPaidLate(LppSalesInvoiceHeaderInput: Query "LPP Sales Invoice Header Input"): Boolean`
- `CalculateNumberPaidLateInvoices(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Integer`
- `CalculateTotalPaidInvoicesAmount(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Decimal`
- `CalculateTotalPaidLateInvoicesAmount(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Decimal`
- `CalculateAveragePaidLateInvoicesDays(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Decimal`
- `CalculateNumberOutstandingInvoices(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Integer`
- `CalculateNumberOutstandingLateInvoices(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Integer`
- `CalculateTotalOutstandingInvoicesAmount(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Decimal`
- `CalculateTotalOutstandingLateInvoicesAmount(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Decimal`
- `CalculateAverageOutstandingDaysLate(InvoiceCreationDate: Date; InvoiceCustomerNo: Code[20]; LPMLInputData: Record "LP ML Input Data"): Decimal`

Plus 1 local procedures.

## Triggers

OnRun

## Called by

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Table 1951 "LP ML Input Data"](../table/1951.md) (11 calls: `CalculateFeatures → CalculateAverageOutstandingDaysLate`, `CalculateFeatures → CalculateAveragePaidLateInvoicesDays`, `CalculateFeatures → CalculateNumberOutstandingInvoices`, …)
- [Codeunit 1951 "LP Model Management"](../codeunit/1951.md) (5 calls: `IsEnoughDataAvailable → ResetAndFillFeaturesTable`, `IsEnoughDataAvailable → SetBasicFilterOnSalesInvoiceHeader`, `NewHistoricalDataAvailable → CountLPMLInputData`, …)
- [Codeunit 1950 "LP Prediction Mgt."](../codeunit/1950.md) (2 calls: `PredictIsLate → ResetAndFillFeaturesTable`, `PredictIsLateAllPayments → ResetAndFillFeaturesTable`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "LP Feature Table Helper")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
