---
id: object/codeunit/6530
type: object
title: Codeunit 6530 "E-Doc. Remittance Advice Mgt."
summary: Codeunit 6530 "E-Doc. Remittance Advice Mgt." in EDocument (Microsoft.eServices.EDocument.RemittanceAdvice). 6 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - edocument
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: b7612bf978cfea533a0735eafef42f53191535a7c3bb70eb24ff86ea9a64d40b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/RemittanceAdvice/EDocRemittanceAdviceMgt.Codeunit.al
    title: src/Apps/W1/EDocument/app/src/RemittanceAdvice/EDocRemittanceAdviceMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9578
object_type: codeunit
object_id: 6530
name: E-Doc. Remittance Advice Mgt.
namespace: Microsoft.eServices.EDocument.RemittanceAdvice
app: EDocument
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: 7
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 6530 "E-Doc. Remittance Advice Mgt."

> Codeunit 6530 "E-Doc. Remittance Advice Mgt." in EDocument (Microsoft.eServices.EDocument.RemittanceAdvice). 6 public procedures. Introduced in BC29, still in BC30.

EDocument · Microsoft.eServices.EDocument.RemittanceAdvice · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/RemittanceAdvice/EDocRemittanceAdviceMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `CheckJournalPayment(AnchorGenJnlLine: Record "Gen. Journal Line")` (internal): Validates an unposted vendor payment journal line (and its group) is fit to build a remittance advice buffer from. Buffer derivation lives in the PEPPOL app (Codeunit "Remit. Advice Buffer Mgt.") so format apps can reuse it without a Core dependency.
- `CheckPostedPayment(PaymentVendLedgEntry: Record "Vendor Ledger Entry")` (internal): Validates a posted payment Vendor Ledger Entry is fit to build a remittance advice buffer from.
- `FindEDocument(var EDocument: Record "E-Document"; RecRef: RecordRef): Boolean` (internal): Finds the E-Document (of any type) whose "Document Record ID" matches the given record.
- `FindGroupAnchor(SourceGenJnlLine: Record "Gen. Journal Line"; var AnchorGenJnlLine: Record "Gen. Journal Line"): Boolean` (internal): Finds the lowest-numbered vendor line of the payment group (same journal template, batch, account no. and document no.) that the given journal line belongs to. The anchor is the group's stable handle: e-documents are created against it and looked up through it.
- `HasExportedGroup(AnchorGenJnlLine: Record "Gen. Journal Line"): Boolean` (internal): Returns true when any line of the payment group is flagged as having a remittance advice e-document created. Deliberately flag-based, not Record-ID-based: Gen. Journal Line numbers are reused after delete, so a Record ID lookup could match an unrelated older e-document.
- `MarkGroupExported(AnchorGenJnlLine: Record "Gen. Journal Line")` (internal): Flags every line of the payment group as having a remittance advice e-document created.

Plus 1 local procedures.

## Recent changes

- 2026-08-11 [#9578 [E-Documents Core] - Enabling remittance advice export via E-Documents (payment journal + posted payments)](../../changes/bcapps/9578.md) (main, BC30, feature, added)

## 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: "E-Doc. Remittance Advice Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
