---
id: object/codeunit/11516-ch
type: object
title: Codeunit 11516 "Swiss QR-Bill Incoming Doc" (CH)
summary: Codeunit 11516 "Swiss QR-Bill Incoming Doc" (CH) in the CH country layer (Microsoft.Bank.Payment). 11 public procedures, 3 events, 7 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - ch layer
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: ddf978a2db16dce254671d5102a194a16eb3cdad6133879772c60e2e0c282002
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/CH/SwissQRBill/app/src/IncomingDocuments/SwissQRBillIncomingDoc.Codeunit.al
    title: src/Apps/CH/SwissQRBill/app/src/IncomingDocuments/SwissQRBillIncomingDoc.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ch
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 11516
name: Swiss QR-Bill Incoming Doc
namespace: Microsoft.Bank.Payment
app: SwissQRBill
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: CH
counts:
  fields: 0
  procedures: 41
  events: 3
  subscribers: 7
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 11516 "Swiss QR-Bill Incoming Doc" (CH)

> Codeunit 11516 "Swiss QR-Bill Incoming Doc" (CH) in the CH country layer (Microsoft.Bank.Payment). 11 public procedures, 3 events, 7 event subscribers. Introduced in BC29, still in BC30.

CH country layer · Microsoft.Bank.Payment · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/CH/SwissQRBill/app/src/IncomingDocuments/SwissQRBillIncomingDoc.Codeunit.al) · facts from BC29

An object of the [CH localization](../../localizations/ch.md), not part of W1.

## Events published

- `OnBeforeFindVendorBankAccountWithGivenIBAN(var VendorBankAccount: Record "Vendor Bank Account"; SearchIBAN: Code[50]; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnUpdatePurchDocFromIncDocOnBeforeModify(var PurchaseHeader: Record "Purchase Header"; var IncomingDocument: Record "Incoming Document")` (integration)
- `OnQRBillImportDecodeBeforeQRBillImport(var IncomingDocument: Record "Incoming Document"; var QRCodeText: Text; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnBeforeGetJournalTemplateAndBatch subscribes to Table "Incoming Document" OnBeforeGetJournalTemplateAndBatch
- OnAfterCreateGenJnlLineFromIncomingDocFail subscribes to Table "Incoming Document" OnAfterCreateGenJnlLineFromIncomingDocFail
- OnAfterCreateGenJnlLineFromIncomingDocSuccess subscribes to Table "Incoming Document" OnAfterCreateGenJnlLineFromIncomingDocSuccess
- OnAfterCreatePurchHeaderFromIncomingDoc subscribes to Table "Incoming Document" OnAfterCreatePurchHeaderFromIncomingDoc
- AddSwissQRBillFieldsOnBeforeExtractHeaderFields subscribes to Table "Incoming Document Attachment" OnBeforeExtractHeaderFields
- GetSwissQRBillFieldsPathOnGetDataExchangePath subscribes to Table "Incoming Document" OnGetDataExchangePath
- ValidateSwissQRBillFieldsOnAfterSetValueOnExtractHeaderField subscribes to Table "Incoming Document Attachment" OnAfterSetValueOnExtractHeaderField

## Procedures

- `GetImportFailedTxt(): Text` (internal)
- `QRBillImportDecodeToPurchase(var IncomingDocument: Record "Incoming Document"; FromFile: Boolean): Boolean` (internal)
- `DrillDownVendorIBAN(IBAN: Code[50])` (internal)
- `CreateNewIncomingDocFromQRBill(FromFile: Boolean)` (internal)
- `ImportQRBillToIncomingDoc(var IncomingDocument: Record "Incoming Document"; FromFile: Boolean)` (internal)
- `CreateJournalAction(var IncomingDocument: Record "Incoming Document")` (internal)
- `CreatePurchaseInvoiceAction(var IncomingDocument: Record "Incoming Document")` (internal)
- `UpdateGenJournalLineFromIncomingDoc(var GenJournalLine: Record "Gen. Journal Line"; IncomingDocument: Record "Incoming Document")` (internal)
- `UpdatePurchDocFromIncDoc(var PurchaseHeader: Record "Purchase Header"; var IncomingDocument: Record "Incoming Document")`
- `BusinessValidation(var SwissQRBillBuffer: Record "Swiss QR-Bill Buffer" temporary; var IncomingDocument: Record "Incoming Document")` (internal)
- `GetCurrency(CurrencyCode: Code[10]): Code[10]` (internal)

Plus 20 local procedures.

## 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). 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: "Swiss QR-Bill Incoming Doc")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A CH country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
