---
id: object/codeunit/1247
type: object
title: Codeunit 1247 "Process Gen. Journal  Lines"
summary: Codeunit 1247 "Process Gen. Journal  Lines" in Base Application (Microsoft.Bank.Statement). 3 public procedures, 4 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: cdcc00966c1d7ab332f9d1c2594f9c15fee4aa0d214687a0ae1461874e15c511
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/Statement/ProcessGenJournalLines.Codeunit.al
    title: src/Layers/W1/BaseApp/Bank/Statement/ProcessGenJournalLines.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: 1247
name: Process Gen. Journal  Lines
namespace: Microsoft.Bank.Statement
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 7
  events: 4
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 1
  implements: 0
---

# Codeunit 1247 "Process Gen. Journal  Lines"

> Codeunit 1247 "Process Gen. Journal  Lines" in Base Application (Microsoft.Bank.Statement). 3 public procedures, 4 events. Present since at least BC23, still in BC30.

Base Application · Microsoft.Bank.Statement · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/Statement/ProcessGenJournalLines.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Gen. Journal Line |
| Permissions | TableData "Data Exch." = rimd |

## Events published

- `OnAfterCreateGeneralJournalLineTemplate(var GenJournalLineTemplate: Record "Gen. Journal Line"; GenJournalLine: Record "Gen. Journal Line")` (integration): Integration event raised after creating a general journal line template during bank statement import.
- `OnAfterImportBankStatement(var GenJournalLine: Record "Gen. Journal Line"; GenJournalLineTemplate: Record "Gen. Journal Line")` (integration): Integration event raised after completing the bank statement import process.
- `OnBeforeImportBankStatement(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)` (integration): Integration event raised before starting the bank statement import process. Allows custom handling of the import operation.
- `OnBeforeUpdateGenJnlLinesProcedure(var GenJournalLineTemplate: Record "Gen. Journal Line"; var IsHandled: Boolean)` (integration): Integration event raised before updating general journal line document numbers. Allows custom handling of the document number update process.

## Procedures

- `ImportBankStatement(GenJnlLine: Record "Gen. Journal Line")`: Imports a bank statement from a file into general journal lines. Processes the data exchange format and creates new journal lines based on the imported bank transactions.
- `CreateGeneralJournalLineTemplate(var GenJournalLineTemplate: Record "Gen. Journal Line"; GenJournalLine: Record "Gen. Journal Line")`: Creates a template for general journal lines that will be used during bank statement import. Sets up the basic fields and document numbering for imported transactions.
- `UpdateGenJournalLines(var GenJournalLineTemplate: Record "Gen. Journal Line")`: Updates document numbers for general journal lines after importing a bank statement. Ensures sequential document numbering for the imported transactions.

## Triggers

OnRun

## Relations

- runs on [Table 81 "Gen. Journal Line"](../table/81.md)

## Calls

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.

- [Codeunit 1201 "Process Data Exch."](../codeunit/1201.md) (1 call: `OnRun → ProcessAllLinesColumnMapping`)

## Called by

- [Table 81 "Gen. Journal Line"](../table/81.md) (1 call: `ImportBankStatement → ImportBankStatement`)

## Across versions

- Present in: BC23-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: "Process Gen. Journal Lines")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
