---
id: object/table/114
type: object
title: Table 114 "Sales Cr.Memo Header"
summary: Table 114 "Sales Cr.Memo Header" in Base Application (Microsoft.Sales.History). 123 fields, 21 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC24-28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 804673c0d974503339cd440f99bb3c2a63d36b14e72e0d86bedc4d8b6c4b25c4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/History/SalesCrMemoHeader.Table.al
    title: src/Layers/W1/BaseApp/Sales/History/SalesCrMemoHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/analysis-assist
    - https://learn.microsoft.com/dynamics365/business-central/analysis-mode
    - https://learn.microsoft.com/dynamics365/business-central/sales-how-process-sales-returns-orders
    - https://learn.microsoft.com/dynamics365/business-central/sales-how-process-sales-returns-cancellations
  objects: []
  features: []
  topics:
    - topic/business-central/analytics-business-intelligence-and-repo/ad-hoc-data-analysis
    - topic/business-central/business-functionality/sales
    - topic/business-central/copilot-and-agent-capabilities/analysis-assist
    - topic/dev-itpro/development/data-analytics-and-reporting
    - topic/dev-itpro/development/programming-in-the-al-language/tables-and-data/using-query-objects
  localizations:
    - localization/au
    - localization/be
    - localization/ca
    - localization/es
    - localization/fr
    - localization/it
    - localization/mx
    - localization/nl
    - localization/no
    - localization/nz
    - localization/ru
    - localization/se
    - localization/us
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 114
name: Sales Cr.Memo Header
namespace: Microsoft.Sales.History
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
source_major: "29"
obsolete: null
countries:
  - au
  - be
  - ca
  - es
  - fr
  - it
  - mx
  - nl
  - "no"
  - nz
  - ru
  - se
  - us
ms_search_form_ids: []
counts:
  fields: 123
  procedures: 32
  events: 9
  subscribers: 0
relations:
  out: 62
  referenced_by: 12
  pages: 4
  extended_by: 5
  event_subscribers: 5
  calls: 6
  called_by: 0
  implements: 0
---

# Table 114 "Sales Cr.Memo Header"

> Table 114 "Sales Cr.Memo Header" in Base Application (Microsoft.Sales.History). 123 fields, 21 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC24-28.

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

Learn documents this table through its pages: [Page 144 "Posted Sales Credit Memos"](../page/144.md) (3 Learn pages), [Page 134 "Posted Sales Credit Memo"](../page/134.md) (2).

## Properties

| Property | Value |
|---|---|
| Caption | Sales Cr.Memo Header |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 2 | Sell-to Customer No. | Code[20] | Specifies the number of the customer that you shipped the items on the credit memo to. | TableRelation [Table 18 "Customer"](../table/18.md); NotBlank |
| 3 | No. | Code[20] | Specifies the posted credit memo number. You cannot change the number because the document has already been posted. |  |
| 4 | Bill-to Customer No. | Code[20] | Specifies the number of the customer that you send or sent the credit memo to. | TableRelation [Table 18 "Customer"](../table/18.md); NotBlank |
| 5 | Bill-to Name | Text[100] | Specifies the name of the customer that you send or sent the invoice or credit memo to. |  |
| 6 | Bill-to Name 2 | Text[50] | Specifies an additional part of the name of the customer that you send or sent the credit memo to. |  |
| 7 | Bill-to Address | Text[100] | Specifies the address of the customer that the credit memo was sent to. |  |
| 8 | Bill-to Address 2 | Text[50] | Specifies additional address information. |  |
| 9 | Bill-to City | Text[30] | Specifies the city of the customer on the sales document. | TableRelation [Table 225 "Post Code"](../table/225.md) ("Post Code".City) |
| 10 | Bill-to Contact | Text[100] | Specifies the name of the person you regularly contact when you communicate with the customer to whom the credit memo was sent. |  |
| 11 | Your Reference | Text[35] | Specifies the customer's reference. The contents will be printed on sales documents. |  |
| 12 | Ship-to Code | Code[10] | Specifies a code for an alternate shipment address if you want to ship to another address than the one that has been entered automatically. This field is also used in case of drop shipment. | TableRelation [Table 222 "Ship-to Address"](../table/222.md) ("Ship-to Address".Code where("Customer No." = field("Sell-to Customer No."))) |
| 13 | Ship-to Name | Text[100] | Specifies the name of the customer at the address that the items are shipped to. |  |
| 14 | Ship-to Name 2 | Text[50] | Specifies an additional part of the name of the customer that the items were shipped to. |  |
| 15 | Ship-to Address | Text[100] | Specifies the address that the items were shipped to. |  |
| 16 | Ship-to Address 2 | Text[50] | Specifies additional address information. |  |
| 17 | Ship-to City | Text[30] | Specifies the city of the customer on the sales document. | TableRelation [Table 225 "Post Code"](../table/225.md) ("Post Code".City) |
| 18 | Ship-to Contact | Text[100] | Specifies the name of the person you regularly contact at the customer to whom the items were shipped. |  |
| 20 | Posting Date | Date | Specifies the date when the credit memo was posted. |  |
| 21 | Shipment Date | Date | — |  |
| 22 | Posting Description | Text[100] | Specifies any text that is entered to accompany the posting, for example for information to auditors. |  |
| 23 | Payment Terms Code | Code[10] | — | TableRelation [Table 3 "Payment Terms"](../table/3.md) (Payment Terms) |
| 24 | Due Date | Date | Specifies the date on which the shipment is due for payment. |  |
| 25 | Payment Discount % | Decimal | — |  |
| 26 | Pmt. Discount Date | Date | — |  |
| 27 | Shipment Method Code | Code[10] | Specifies the shipment method for the shipment. | TableRelation [Table 10 "Shipment Method"](../table/10.md) (Shipment Method) |
| 28 | Location Code | Code[10] | Specifies the location where the credit memo was registered. | TableRelation [Table 14 "Location"](../table/14.md) (Location where("Use As In-Transit" = const(false))) |
| 29 | Shortcut Dimension 1 Code | Code[20] | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1))) |
| 30 | Shortcut Dimension 2 Code | Code[20] | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))) |
| 31 | Customer Posting Group | Code[20] | Specifies the customer's market type to link business transactions to. | TableRelation [Table 92 "Customer Posting Group"](../table/92.md) (Customer Posting Group); not editable |
| 32 | Currency Code | Code[10] | Specifies the currency code of the credit memo. | TableRelation [Table 4 "Currency"](../table/4.md); not editable |
| 33 | Currency Factor | Decimal | — |  |
| 34 | Customer Price Group | Code[10] | — | TableRelation [Table 6 "Customer Price Group"](../table/6.md) (Customer Price Group) |
| 35 | Prices Including VAT | Boolean | — |  |
| 37 | Invoice Disc. Code | Code[20] | — |  |
| 40 | Customer Disc. Group | Code[20] | — | TableRelation [Table 340 "Customer Discount Group"](../table/340.md) (Customer Discount Group) |
| 41 | Language Code | Code[10] | — | TableRelation [Table 8 "Language"](../table/8.md) |
| 42 | Format Region | Text[80] | — | TableRelation "Language Selection"."Language Tag" |
| 43 | Salesperson Code | Code[20] | Specifies which salesperson is associated with the credit memo. | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) (Salesperson/Purchaser) |
| 46 | Comment | Boolean | — | FlowField: exist("Sales Comment Line" where("Document Type" = const("Posted Credit Memo"), "No." = field("No."), "Document Line No." = const(0))); not editable |
| 47 | No. Printed | Integer | Specifies how many times the document has been printed. | not editable |
| 51 | On Hold | Code[3] | — |  |
| 52 | Applies-to Doc. Type | Enum "Gen. Journal Document Type" | Specifies the type of the posted document that this document or journal line will be applied to when you post, for example to register payment. | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 53 | Applies-to Doc. No. | Code[20] | Specifies the number of the posted document that this document or journal line will be applied to when you post, for example to register payment. |  |
| 55 | Bal. Account No. | Code[20] | — | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 270 "Bank Account"](../table/270.md) (if ("Bal. Account Type" = const("G/L Account")) "G/L Account" else if ("Bal. Account Type" = const("Bank Account")) "Bank Account") |
| 60 | Amount | Decimal | Specifies the total of the amounts on all the credit memo lines, in the currency of the credit memo. The amount does not include VAT. | FlowField: sum("Sales Cr.Memo Line".Amount where("Document No." = field("No."))); not editable |
| 61 | Amount Including VAT | Decimal | Specifies the total of the amounts, including VAT, on all the lines on the document. | FlowField: sum("Sales Cr.Memo Line"."Amount Including VAT" where("Document No." = field("No."))); not editable |
| 70 | VAT Registration No. | Text[20] | Specifies the customer's VAT registration number for customers. |  |
| 72 | Registration Number | Text[50] | Registration No. <small>caption</small> |  |
| 73 | Reason Code | Code[10] | — | TableRelation [Table 231 "Reason Code"](../table/231.md) (Reason Code) |
| 74 | Gen. Bus. Posting Group | Code[20] | — | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 75 | EU 3-Party Trade | Boolean | Specifies whether the invoice was part of an EU 3-party trade transaction. |  |
| 76 | Transaction Type | Code[10] | — | TableRelation [Table 258 "Transaction Type"](../table/258.md) (Transaction Type) |
| 77 | Transport Method | Code[10] | — | TableRelation [Table 259 "Transport Method"](../table/259.md) (Transport Method) |
| 78 | VAT Country/Region Code | Code[10] | — | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 79 | Sell-to Customer Name | Text[100] | Specifies the name of the customer that you shipped the items on the credit memo to. |  |
| 80 | Sell-to Customer Name 2 | Text[50] | Specifies an additional part of the name of the customer who will receive the products and be billed by default. |  |
| 81 | Sell-to Address | Text[100] | Specifies the address of the customer that the items on the credit memo were sent to. |  |
| 82 | Sell-to Address 2 | Text[50] | Specifies additional address information. |  |
| 83 | Sell-to City | Text[30] | Specifies the city of the customer on the sales document. | TableRelation [Table 225 "Post Code"](../table/225.md) ("Post Code".City) |
| 84 | Sell-to Contact | Text[100] | Specifies the name of the contact person at the customer's main address. |  |
| 85 | Bill-to Post Code | Code[20] | Specifies the postal code of the customer's billing address. | TableRelation [Table 225 "Post Code"](../table/225.md) (Post Code) |
| 86 | Bill-to County | Text[30] | Specifies the state, province or county as a part of the address. |  |
| 87 | Bill-to Country/Region Code | Code[10] | Specifies the country or region of the address. | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 88 | Sell-to Post Code | Code[20] | Specifies the postal code of the customer's main address. | TableRelation [Table 225 "Post Code"](../table/225.md) (Post Code) |
| 89 | Sell-to County | Text[30] | Specifies the state, province or county as a part of the address. |  |
| 90 | Sell-to Country/Region Code | Code[10] | Specifies the country or region of the address. | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 91 | Ship-to Post Code | Code[20] | Specifies the postal code of the address that the items are shipped to. | TableRelation [Table 225 "Post Code"](../table/225.md) (Post Code) |
| 92 | Ship-to County | Text[30] | Specifies the state, province or county as a part of the address. |  |
| 93 | Ship-to Country/Region Code | Code[10] | Specifies the country or region of the address. | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 94 | Bal. Account Type | enum "Payment Balance Account Type" | — | enum [Enum 96 "Payment Balance Account Type"](../enum/96.md) |
| 97 | Exit Point | Code[10] | — | TableRelation [Table 282 "Entry/Exit Point"](../table/282.md) (Entry/Exit Point) |
| 98 | Correction | Boolean | Specifies the entry was posted as a corrective entry. |  |
| 99 | Document Date | Date | Specifies the date on which you created the sales document. |  |
| 100 | External Document No. | Code[35] | Specifies the external document number that is entered on the sales header that this line was posted from. |  |
| 101 | Area | Code[10] | — | TableRelation [Table 284 "Area"](../table/284.md) |
| 102 | Transaction Specification | Code[10] | — | TableRelation [Table 285 "Transaction Specification"](../table/285.md) (Transaction Specification) |
| 104 | Payment Method Code | Code[10] | Specifies the customer's method of payment. The program has copied the code from the Payment Method Code field on the sales header. | TableRelation [Table 289 "Payment Method"](../table/289.md) (Payment Method) |
| 105 | Shipping Agent Code | Code[10] | Specifies which shipping agent is used to transport the items on the sales document to the customer. | TableRelation [Table 291 "Shipping Agent"](../table/291.md) (Shipping Agent) |
| 106 | Package Tracking No. | Text[50] | Specifies the shipping agent's package number. |  |
| 107 | Pre-Assigned No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 108 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series); not editable |
| 111 | Pre-Assigned No. | Code[20] | Specifies the number of the credit memo that the posted credit memo was created from. |  |
| 112 | User ID | Code[50] | — | TableRelation User."User Name"; DataClassification EndUserIdentifiableInformation |
| 113 | Source Code | Code[10] | — | TableRelation [Table 230 "Source Code"](../table/230.md) (Source Code) |
| 114 | Tax Area Code | Code[20] | Specifies the tax area that is used to calculate and post sales tax. | TableRelation [Table 318 "Tax Area"](../table/318.md) (Tax Area) |
| 115 | Tax Liable | Boolean | Specifies if the customer or vendor is liable for sales tax. |  |
| 116 | VAT Bus. Posting Group | Code[20] | — | TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md) (VAT Business Posting Group) |
| 119 | VAT Base Discount % | Decimal | — |  |
| 134 | Prepmt. Cr. Memo No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 136 | Prepayment Credit Memo | Boolean | — |  |
| 137 | Prepayment Order No. | Code[20] | — |  |
| 163 | Company Bank Account Code | Code[20] | Specifies the bank account to use for bank information when the document is printed. | TableRelation [Table 270 "Bank Account"](../table/270.md) ("Bank Account" where("Currency Code" = field("Currency Code"))) |
| 166 | Alt. VAT Registration No. | Boolean | Alternative VAT Registration No. <small>caption</small> | not editable |
| 167 | Alt. Gen. Bus Posting Group | Boolean | Alternative Gen. Bus. Posting Group <small>caption</small> | not editable |
| 168 | Alt. VAT Bus Posting Group | Boolean | Alternative VAT Bus. Posting Group <small>caption</small> | not editable |
| 171 | Sell-to Phone No. | Text[30] | — |  |
| 172 | Sell-to E-Mail | Text[80] | Email <small>caption</small> |  |
| 179 | VAT Reporting Date | Date | Specifies the VAT date on the invoice. | not editable |
| 181 | Rcvd.-from Count./Region Code | Code[10] | Received-from Country/Region Code <small>caption</small> | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 200 | Work Description | BLOB | — |  |
| 210 | Ship-to Phone No. | Text[30] | Specifies the telephone number of the company's shipping address. |  |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |
| 710 | Document Exchange Identifier | Text[50] | — |  |
| 711 | Document Exchange Status | Enum "Sales Document Exchange Status" | Specifies the status of the document if you are using a document exchange service to send it as an electronic document. The status values are reported by the document exchange service. | enum [Enum 711 "Sales Document Exchange Status"](../enum/711.md) |
| 712 | Doc. Exch. Original Identifier | Text[50] | — |  |
| 1302 | Paid | Boolean | Specifies if the posted sales invoice that relates to this sales credit memo is paid. | FlowField: - exist("Cust. Ledger Entry" where("Entry No." = field("Cust. Ledger Entry No."), Open = filter(true))); not editable |
| 1303 | Remaining Amount | Decimal | Specifies the amount that remains to be paid for the posted sales invoice. | FlowField: sum("Detailed Cust. Ledg. Entry".Amount where("Cust. Ledger Entry No." = field("Cust. Ledger Entry No."))); not editable |
| 1304 | Cust. Ledger Entry No. | Integer | — | TableRelation [Table 21 "Cust. Ledger Entry"](../table/21.md) ("Cust. Ledger Entry"."Entry No."); not editable |
| 1305 | Invoice Discount Amount | Decimal | — | FlowField: sum("Sales Cr.Memo Line"."Inv. Discount Amount" where("Document No." = field("No."))); not editable |
| 1310 | Cancelled | Boolean | Specifies if the posted sales invoice that relates to this sales credit memo has been either corrected or canceled. | FlowField: exist("Cancelled Document" where("Source ID" = const(114), "Cancelled Doc. No." = field("No."))); not editable |
| 1311 | Corrective | Boolean | Specifies if the posted sales invoice has been either corrected or canceled by this sales credit memo. | FlowField: exist("Cancelled Document" where("Source ID" = const(112), "Cancelled By Doc. No." = field("No."))); not editable |
| 5050 | Campaign No. | Code[20] | — | TableRelation [Table 5071 "Campaign"](../table/5071.md) |
| 5052 | Sell-to Contact No. | Code[20] | Specifies the number of the contact at the customer who handles the credit memo. | TableRelation [Table 5050 "Contact"](../table/5050.md) |
| 5053 | Bill-to Contact No. | Code[20] | Specifies the number of the contact at the customer who handles the credit memo. | TableRelation [Table 5050 "Contact"](../table/5050.md) |
| 5055 | Opportunity No. | Code[20] | — | TableRelation [Table 5092 "Opportunity"](../table/5092.md) |
| 5700 | Responsibility Center | Code[10] | Specifies the code for the responsibility center that serves the customer on this sales document. | TableRelation [Table 5714 "Responsibility Center"](../table/5714.md) (Responsibility Center) |
| 5794 | Shipping Agent Service Code | Code[10] | Specifies which shipping agent service is used to transport the items on the sales document to the customer. | TableRelation [Table 5790 "Shipping Agent Services"](../table/5790.md) ("Shipping Agent Services".Code where("Shipping Agent Code" = field("Shipping Agent Code"))) |
| 6601 | Return Order No. | Code[20] | — |  |
| 6602 | Return Order No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 7000 | Price Calculation Method | Enum "Price Calculation Method" | — | enum [Enum 7000 "Price Calculation Method"](../enum/7000.md) |
| 7001 | Allow Line Disc. | Boolean | — |  |
| 7200 | Get Return Receipt Used | Boolean | — |  |
| 8001 | Draft Cr. Memo SystemId | Guid | Draft Cr. Memo System Id <small>caption</small> | DataClassification SystemMetadata |

## Keys

- Key1: No. (clustered)
- Key2: Pre-Assigned No.
- Key3: Return Order No.
- Key4: Sell-to Customer No.
- Key5: Prepayment Order No.
- Key6: Bill-to Customer No.
- Key7: Posting Date
- Key8: Document Exchange Status
- Key9: Salesperson Code

## Events published

- `OnBeforeEmailRecords(var ReportSelections: Record "Report Selections"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; DocTxt: Text; var ShowDialog: Boolean; var IsHandled: Boolean)` (integration): Raised before emailing sales credit memo records to customers.
- `OnBeforePrintRecords(var ReportSelections: Record "Report Selections"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; ShowRequestPage: Boolean; var IsHandled: Boolean)` (integration): Raised before printing sales credit memo records.
- `OnBeforeSendProfile(var ReportSelections: Record "Report Selections"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; DocTxt: Text; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile")` (integration): Raised before sending the sales credit memo using the document sending profile.
- `OnBeforeSendRecords(var ReportSelections: Record "Report Selections"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; DocTxt: Text; var IsHandled: Boolean)` (integration): Raised before sending sales credit memo records.
- `OnBeforeSetSecurityFilterOnRespCenter(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)` (integration): Raised before setting security filter on responsibility center for the sales credit memo.
- `OnLookupAppliesToDocNoOnAfterSetFilters(var CustLedgEntry: Record "Cust. Ledger Entry"; SalesCrMemoHeader: Record "Sales Cr.Memo Header")` (integration): Raised after setting filters when looking up the applies-to document number.
- `OnBeforeRunSalesInvoiceHeaderPage(var SalesInvoiceHeader: Record "Sales Invoice Header"; var PageID: Integer; var IsHandled: Boolean)` (integration): Raised before running the sales invoice header page when showing the cancelled invoice.
- `OnBeforeDoPrintToDocumentAttachment(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; ShowNotificationAction: Boolean; var IsHandled: Boolean)` (integration): Raised before printing to document attachment for the sales credit memo.
- `OnBeforeCheckNoPrinted(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)` (integration): Raised before checking if the credit memo has been printed.

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 1173 "Document Attachment Mgmt"](../codeunit/1173.md) DeleteAttachedDocumentsOnAfterDeleteSalesCreditMemoHeader, [Codeunit 5508 "Graph Mgt - Sal. Cr. Memo Buf."](../codeunit/5508.md) OnAfterDeleteSalesCreditMemoHeader
- OnAfterInsertEvent: [Codeunit 5508 "Graph Mgt - Sal. Cr. Memo Buf."](../codeunit/5508.md) OnAfterInsertSalesCreditMemoHeader
- OnAfterModifyEvent: [Codeunit 5508 "Graph Mgt - Sal. Cr. Memo Buf."](../codeunit/5508.md) OnAfterModifySalesCreditMemoHeader
- OnAfterRenameEvent: [Codeunit 5508 "Graph Mgt - Sal. Cr. Memo Buf."](../codeunit/5508.md) OnAfterRenameSalesCreditMemoHeader

## Procedures

- `SendRecords()`: Sends the credit memo records using the customer's document sending profile.
- `SendProfile(var DocumentSendingProfile: Record "Document Sending Profile")`: Sends the credit memo using a specific document sending profile.
- `StartTrackingSite()`: Opens the shipping agent's tracking website for this return shipment.
- `PrintRecords(ShowRequestPage: Boolean)`: Prints the selected credit memo records.
- `CheckNoPrinted()`: Validates that the credit memo has been printed at least once.
- `EmailRecords(ShowRequestPage: Boolean)`: Sends the credit memo records by email.
- `PrintToDocumentAttachment(var SalesCrMemoHeader: Record "Sales Cr.Memo Header")`: Prints the credit memos and saves them as document attachments.
- `Navigate()`: Opens the Navigate page to show related entries for this credit memo.
- `LookupAdjmtValueEntries()`: Opens a page showing value entries with adjustments for this credit memo.
- `GetCustomerVATRegistrationNumber(): Text`: Gets the customer's VAT registration number.
- `GetCustomerVATRegistrationNumberLbl(): Text`: Gets the label for the VAT registration number field.
- `GetLegalStatement(): Text`: Gets the legal statement from sales setup for printing on credit memos.
- `ShowDimensions()`: Shows the dimension set entries for this credit memo.
- `SetSecurityFilterOnRespCenter()`: Sets a security filter based on the user's responsibility center.
- `GetDocExchStatusStyle(): Text`: Gets the style class for displaying the document exchange status.
- `ShowActivityLog()`: Shows the activity log entries for this credit memo.
- `DocExchangeStatusIsSent(): Boolean`: Checks if the credit memo has been sent via document exchange.
- `ShowCanceledOrCorrInvoice()`: Shows the invoice that was canceled or corrected by this credit memo.
- `ShowCorrectiveInvoice()`: Opens the invoice that corrected this cancelled credit memo.
- `ShowCancelledInvoice()`: Opens the invoice that was cancelled by this corrective credit memo.
- `GetWorkDescription(): Text`: Retrieves the work description text from the BLOB field.

Plus 2 local procedures.

## Triggers

OnDelete

## Relations

- drill-down page [Page 144 "Posted Sales Credit Memos"](../page/144.md)
- lookup page [Page 144 "Posted Sales Credit Memos"](../page/144.md)
- Shipment Method Code: TableRelation [Table 10 "Shipment Method"](../table/10.md)
- Amount: CalcFormula [Table 115 "Sales Cr.Memo Line"](../table/115.md)
- Amount Including VAT: CalcFormula [Table 115 "Sales Cr.Memo Line"](../table/115.md)
- Invoice Discount Amount: CalcFormula [Table 115 "Sales Cr.Memo Line"](../table/115.md)
- Salesperson Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md)
- Location Code: TableRelation [Table 14 "Location"](../table/14.md)
- Bal. Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- Bill-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Sell-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Cancelled: CalcFormula [Table 1900 "Cancelled Document"](../table/1900.md)
- Corrective: CalcFormula [Table 1900 "Cancelled Document"](../table/1900.md)
- Paid: CalcFormula [Table 21 "Cust. Ledger Entry"](../table/21.md)
- Cust. Ledger Entry No.: TableRelation [Table 21 "Cust. Ledger Entry"](../table/21.md)
- Ship-to Code: TableRelation [Table 222 "Ship-to Address"](../table/222.md)
- Bill-to City: TableRelation [Table 225 "Post Code"](../table/225.md)
- Bill-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md)
- Sell-to City: TableRelation [Table 225 "Post Code"](../table/225.md)
- Sell-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md)
- Ship-to City: TableRelation [Table 225 "Post Code"](../table/225.md)
- Ship-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md)
- Source Code: TableRelation [Table 230 "Source Code"](../table/230.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.md)
- Gen. Bus. Posting Group: TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md)
- Transaction Type: TableRelation [Table 258 "Transaction Type"](../table/258.md)
- Transport Method: TableRelation [Table 259 "Transport Method"](../table/259.md)
- Bal. Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- Company Bank Account Code: TableRelation [Table 270 "Bank Account"](../table/270.md)
- Exit Point: TableRelation [Table 282 "Entry/Exit Point"](../table/282.md)
- Area: TableRelation [Table 284 "Area"](../table/284.md)
- Transaction Specification: TableRelation [Table 285 "Transaction Specification"](../table/285.md)
- Payment Method Code: TableRelation [Table 289 "Payment Method"](../table/289.md)
- Shipping Agent Code: TableRelation [Table 291 "Shipping Agent"](../table/291.md)
- Payment Terms Code: TableRelation [Table 3 "Payment Terms"](../table/3.md)
- No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Pre-Assigned No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Prepmt. Cr. Memo No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Return Order No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Tax Area Code: TableRelation [Table 318 "Tax Area"](../table/318.md)
- VAT Bus. Posting Group: TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md)
- Customer Disc. Group: TableRelation [Table 340 "Customer Discount Group"](../table/340.md)
- Shortcut Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Shortcut Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Remaining Amount: CalcFormula [Table 379 "Detailed Cust. Ledg. Entry"](../table/379.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Comment: CalcFormula [Table 44 "Sales Comment Line"](../table/44.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Bill-to Contact No.: TableRelation [Table 5050 "Contact"](../table/5050.md)
- Sell-to Contact No.: TableRelation [Table 5050 "Contact"](../table/5050.md)
- Campaign No.: TableRelation [Table 5071 "Campaign"](../table/5071.md)
- Opportunity No.: TableRelation [Table 5092 "Opportunity"](../table/5092.md)
- Responsibility Center: TableRelation [Table 5714 "Responsibility Center"](../table/5714.md)
- Shipping Agent Service Code: TableRelation [Table 5790 "Shipping Agent Services"](../table/5790.md)
- Customer Price Group: TableRelation [Table 6 "Customer Price Group"](../table/6.md)
- Language Code: TableRelation [Table 8 "Language"](../table/8.md)
- Bill-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Rcvd.-from Count./Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Sell-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Ship-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- VAT Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Customer Posting Group: TableRelation [Table 92 "Customer Posting Group"](../table/92.md)

## Referenced by

12 fields in 9 objects relate to this table (TableRelation or CalcFormula).

- [Table 18 "Customer"](../table/18.md): Bill-To No. of Pstd. Cr. Memos, No. of Pstd. Credit Memos
- [Table 1900 "Cancelled Document"](../table/1900.md): Cancelled By Doc. No., Cancelled Doc. No.
- [Table 8064 "Billing Line Archive"](../table/8064.md): Correction Document No., Document No.
- [Table 115 "Sales Cr.Memo Line"](../table/115.md): Document No.
- [Table 1313 "Activities Cue"](../table/1313.md): Sales CrM. - Pending Doc.Exch.
- [Table 30154 "Shpfy Suggest Payment"](../table/30154.md): Credit Memo No.
- [Table 36 "Sales Header"](../table/36.md): Last Prepmt. Cr. Memo No.
- [Table 8061 "Billing Line"](../table/8061.md): Correction Document No.
- [Table 9053 "Sales Cue"](../table/9053.md): Sales CrM. - Pending Doc.Exch.

## Pages and codeunits on this table

- [Page 134 "Posted Sales Credit Memo"](../page/134.md) (source table)
- [Page 1354 "Pstd. Sales Cr. Memo - Update"](../page/1354.md) (source table)
- [Page 144 "Posted Sales Credit Memos"](../page/144.md) (source table)
- [Page 398 "Sales Credit Memo Statistics"](../page/398.md) (source table)
- [Codeunit 1334 "Cancel PstdSalesCrM (Yes/No)"](../codeunit/1334.md) (codeunit runs on it)
- [Codeunit 1339 "Cancel Posted Sales Cr. Memo"](../codeunit/1339.md) (codeunit runs on it)
- [Codeunit 1408 "Sales Credit Memo Hdr. - Edit"](../codeunit/1408.md) (codeunit runs on it)
- [Codeunit 316 "Sales Cr. Memo-Printed"](../codeunit/316.md) (codeunit runs on it)

## Extended by

- [Table extension 30108 "Shpfy Sales Cr.Memo Header"](../tableextension/30108.md)
- [Table extension 5028 "SD Sales Cr.Memo Header"](../tableextension/5028.md)
- [Table extension 6167 "PostedSalesCrdMemoWithQR"](../tableextension/6167.md)
- [Table extension 6236 "Sust. Sales Cr. Memo Header"](../tableextension/6236.md)
- [Table extension 8057 "Sales Cr. Memo Header"](../tableextension/8057.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 452 "Report Distribution Management"](../codeunit/452.md) (3 calls: `EmailRecords → GetFullDocumentTypeText`, `SendProfile → GetFullDocumentTypeText`, `SendRecords → GetFullDocumentTypeText`)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (2 calls: `GetWorkDescription → LFSeparator`, `GetWorkDescription → TryReadAsTextWithSepAndFieldErrMsg`)
- [Codeunit 363 "PostSales-Delete"](../codeunit/363.md) (2 calls: `OnDelete → DeleteSalesCrMemoLines`, `OnDelete → IsDocumentDeletionAllowed`)
- [Codeunit 1535 "Approvals Mgmt."](../codeunit/1535.md) (1 call: `OnDelete → DeletePostedApprovalEntries`)
- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (1 call: `ShowDimensions → ShowDimensionSet`)
- [Codeunit 5700 "User Setup Management"](../codeunit/5700.md) (1 call: `SetSecurityFilterOnRespCenter → GetSalesFilter`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-28

## Countries that replace it

[AU](../../localizations/au.md), [BE](../../localizations/be.md), [CA](../../localizations/ca.md), [ES](../../localizations/es.md), [FR](../../localizations/fr.md), [IT](../../localizations/it.md), [MX](../../localizations/mx.md), [NL](../../localizations/nl.md), [NO](../../localizations/no.md), [NZ](../../localizations/nz.md), [RU](../../localizations/ru.md), [SE](../../localizations/se.md), [US](../../localizations/us.md)

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: "table", object_name: "Sales Cr.Memo Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
