Page 44 "Sales Credit Memo"
Base Application · Microsoft.Sales.Document
- 88controls
- 32actions
- 26procedures
- 8events
- 4Learn pages
- 2countries replace it
- 6event subscribers
- 16objects it calls
- 8objects call it
Across versions
- BC23present
- BC241 events changed
- BC251 procedures removed
- BC261 events changed
- BC271 events added, 1 events removed
- BC28unchanged
- BC291 events removed
- BC30unchanged
Neighbourhood 39 connected objects and pages
Base Application · Microsoft.Sales.Document · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | Sales Credit Memo |
| SourceTable | Sales Header |
| PageType | Document |
Fields on this page
Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control’s own, else the bound field’s (marked).
| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | No. | No. | Specifies the number of the involved entry or record, according to the specified number series. |
| Customer No. | Sell-to Customer No. | Specifies the number of the customer who will receive the products and be billed by default. | |
| Customer Name | Sell-to Customer Name | Specifies the name of the customer who will receive the products and be billed by default. | |
| Customer Name 2 | Sell-to Customer Name 2 | Specifies an additional part of the name of the customer who will receive the products and be billed by default. from the table field | |
| Registration Number | Registration Number | Specifies the customer’s registration number. from the table field | |
| Posting Description | Posting Description | Specifies additional posting information for the document. After you post the document, the description can add detail to vendor and customer ledger entries. from the table field | |
| Sell-to | Address | Sell-to Address | Specifies the address where the customer is located. from the table field |
| Address 2 | Sell-to Address 2 | Specifies additional address information. from the table field | |
| City | Sell-to City | Specifies the city of the customer on the sales document. from the table field | |
| Control36 | Sell-to County | Sell-to County | Specifies the state, province or county of the address. from the table field |
| Sell-to | Post Code | Sell-to Post Code | Specifies the postal code. |
| Country/Region | Sell-to Country/Region Code | Specifies the country or region of the address. | |
| Contact No. | Sell-to Contact No. | Specifies the number of the contact person that the sales document will be sent to. from the table field | |
| Phone No. | SellToContact."Phone No." |
Specifies the telephone number of the contact person that the sales document will be sent to. | |
| Mobile Phone No. | SellToContact."Mobile Phone No." |
Specifies the mobile telephone number of the contact person that the sales document will be sent to. | |
SellToContact."E-Mail" |
Specifies the email address of the contact person that the sales document will be sent to. | ||
| General | Contact | Sell-to Contact | Specifies the name of the person to contact at the customer. |
| Your Reference | Your Reference | Specifies the customer’s reference. The contents will be printed on sales documents. | |
| Posting Date | Posting Date | Specifies the date when the posting of the sales document will be recorded. from the table field | |
| VAT Reporting Date | VAT Reporting Date | Specifies the date used to include entries on VAT reports in a VAT period. This is either the date that the document was created or posted, depending on your setting on the General Ledger Setup page. from the table field | |
| Document Date | Document Date | Specifies the date when the related document was created. from the table field | |
| Due Date | Due Date | Specifies when the related sales invoice must be paid. | |
| Incoming Document Entry No. | Incoming Document Entry No. | Specifies the number of the incoming document that this sales document is created for. from the table field | |
| External Document No. | External Document No. | Specifies a document number that refers to the customer’s or vendor’s numbering system. from the table field | |
| Salesperson Code | Salesperson Code | Specifies the name of the salesperson who is assigned to the customer. from the table field | |
| Campaign No. | Campaign No. | Specifies the number of the campaign that the document is linked to. | |
| Responsibility Center | Responsibility Center | Specifies the code of the responsibility center, such as a distribution hub, that is associated with the involved user, company, customer, or vendor. from the table field | |
| Assigned User ID | Assigned User ID | Specifies the ID of the user who is responsible for the document. from the table field | |
| Job Queue Status | Job Queue Status | Specifies the status of a job queue entry or task that handles the posting of sales credit memos. | |
| Status | Status | Specifies whether the document is open, waiting to be approved, has been invoiced for prepayment, or has been released to the next stage of processing. from the table field | |
| Applies-to Doc. Type | Applies-to Doc. 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. from the table field | |
| Applies-to Doc. No. | Applies-to Doc. No. | 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. from the table field | |
| Applies-to ID | Applies-to ID | Specifies the ID of entries that will be applied to when you choose the Apply Entries action. from the table field | |
| Work Description | WorkDescription | WorkDescription |
Specifies the products or services being offered. |
| General | Language Code | Language Code | Specifies the language to be used on printouts for this document. from the table field |
| Format Region | Format Region | Specifies the format to be used on printouts for this document. from the table field | |
| Content | SalesLines | part Page 96 “Sales Cr. Memo Subform” | — |
| Credit Memo Details | Currency Code | Currency Code | Specifies the currency of amounts on the sales document. from the table field |
| Company Bank Account Code | Company Bank Account Code | Specifies the bank account to use for bank information when the document is printed. from the table field | |
| Shipment Date | Shipment Date | Specifies when items on the document are shipped or were shipped. A shipment date is usually calculated from a requested delivery date plus lead time. from the table field | |
| Prices Including VAT | Prices Including VAT | Specifies if the Unit Price and Line Amount fields on document lines should be shown with or without VAT. from the table field | |
| VAT Country/Region Code | VAT Country/Region Code | Specifies the country or region code for the VAT. from the table field | |
| VAT Registration No. | VAT Registration No. | Specifies the customer’s VAT registration number for customers. from the table field | |
| Gen. Bus. Posting Group | Gen. Bus. Posting Group | Specifies the general business posting group that the sales document is linked to. The general business posting group is used to link the sales document to the appropriate general ledger account. from the table field | |
| VAT Bus. Posting Group | VAT Bus. Posting Group | Specifies the VAT specification of the involved customer or vendor to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. from the table field | |
| Customer Posting Group | Customer Posting Group | Specifies the customer s market type to link business transactions to. | |
| Payment Terms Code | Payment Terms Code | Specifies a formula that calculates the payment due date, payment discount date, and payment discount amount. from the table field | |
| Payment Method Code | Payment Method Code | Specifies how to make payment, such as with bank transfer, cash, or check. from the table field | |
| Reason Code | Reason Code | Specifies the reason code, a supplementary source code that enables you to trace the document. from the table field | |
| Shortcut Dimension 1 Code | Shortcut Dimension 1 Code | 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. from the table field | |
| Shortcut Dimension 2 Code | Shortcut Dimension 2 Code | 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. from the table field | |
| Payment Discount % | Payment Discount % | Specifies the payment discount percentage granted if the customer pays on or before the date entered in the Pmt. Discount Date field. | |
| Pmt. Discount Date | Pmt. Discount Date | Specifies the date on which the amount in the entry must be paid for a payment discount to be granted. from the table field | |
| Journal Templ. Name | Journal Templ. Name | Specifies the name of the journal template in which the sales header is to be posted. from the table field | |
| Location Code | Location Code | Specifies the code for the location where the items are to be received. When you select the customer and the customer has a location assigned, the value is taken from the Customer card. If the customer has no location, but a Responsibility Center is populated, the location code is taken from the Res… | |
| EU 3-Party Trade | EU 3-Party Trade | Specifies if the transaction is related to trade with a third party within the EU. from the table field | |
| Correction | Correction | Specifies the entry as a corrective entry. You can use the field if you need to post a corrective entry to a customer account. If you place a check mark in this field when posting a corrective entry, the system will post a negative debit instead of a credit or a negative credit instead of a debit. C… from the table field | |
| Bill-to | Name | Bill-to Name | Specifies the customer to whom you will send the sales invoice, when different from the customer that you are selling to. |
| Name 2 | Bill-to Name 2 | Specifies an additional part of the name of the customer that you send or sent the invoice or credit memo to. from the table field | |
| Address | Bill-to Address | Specifies the address of the customer that you will send the invoice to. from the table field | |
| Address 2 | Bill-to Address 2 | Specifies additional address information. from the table field | |
| City | Bill-to City | Specifies the city of the customer on the sales document. from the table field | |
| Control55 | Bill-to County | Bill-to County | Specifies the state, province or county of the address. from the table field |
| Bill-to | Post Code | Bill-to Post Code | Specifies the postal code. |
| Country/Region | Bill-to Country/Region Code | Specifies the country or region of the address. | |
| Contact No | Bill-to Contact No. | Specifies the number of the contact the invoice will be sent to. from the table field | |
| Contact | Bill-to Contact | Specifies the name of the person you should contact at the customer who you are sending the invoice to. | |
| Phone No. | BillToContact."Phone No." |
Specifies the telephone number of the person you should contact at the customer you are sending the invoice to. | |
| Mobile Phone No. | BillToContact."Mobile Phone No." |
Specifies the mobile telephone number of the person you should contact at the customer you are sending the invoice to. | |
BillToContact."E-Mail" |
Specifies the email address of the person you should contact at the customer you are sending the invoice to. | ||
| Foreign Trade | Transaction Specification | Transaction Specification | Specifies a specification of the document’s transaction, for the purpose of reporting to INTRASTAT. from the table field |
| Transaction Type | Transaction Type | Specifies the type of transaction that the document represents, for the purpose of reporting to INTRASTAT. from the table field | |
| Transport Method | Transport Method | Specifies the transport method, for the purpose of reporting to INTRASTAT. from the table field | |
| Exit Point | Exit Point | Specifies the point of exit through which you ship the items out of your country/region, for reporting to Intrastat. from the table field | |
| Area | Area | Specifies the country or region of origin for the purpose of Intrastat reporting. from the table field | |
| Rcvd-from Country/Region Code | Rcvd.-from Count./Region Code | Specifies the country or region from which the items are returned for the purpose of Intrastat reporting. from the table field | |
| FactBoxes | Document Check | part Page 9119 “Sales Doc. Check Factbox” | — |
| Documents | part Page 1178 “Doc. Attachment List Factbox” | — | |
| Control19 | part Page 9103 “Pending Approval FactBox” | — | |
| Control1903720907 | part Page 9080 “Sales Hist. Sell-to FactBox” | — | |
| Control1907234507 | part Page 9081 “Sales Hist. Bill-to FactBox” | — | |
| Control1902018507 | part Page 9082 “Customer Statistics FactBox” | — | |
| Control1900316107 | part Page 9084 “Customer Details FactBox” | — | |
| Control1906127307 | part Page 9087 “Sales Line FactBox” | — | |
| ApprovalFactBox | part Page 9092 “Approval FactBox” | — | |
| IncomingDocAttachFactBox | part Page 193 “Incoming Doc. Attach. FactBox” | — | |
| Control1907012907 | part Page 9108 “Resource Details FactBox” | — | |
| WorkflowStatus | part Page 1528 “Workflow Status FactBox” | — |
Actions
| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Credit Memo | Statistics | View statistical information, such as the value of posted entries, for the record. | Page 160 “Sales Statistics” |
| Customer | View or edit detailed information about the customer on the sales document. | Page 21 “Customer Card” | |
| Customer Statistics | View statistical information, such as the value of posted entries, for the sell-to customer on the sales document. | Page 151 “Customer Statistics” | |
| Comments | View or add comments for the record. | Page 67 “Sales Comment Sheet” | |
| Approvals | View a list of the records that are waiting to be approved. For example, you can see who requested the record to be approved, when it was sent, and when it is due to be approved. | ||
| Attachments | Add a file as an attachment. You can attach images as well as documents. | ||
| Customer | View or edit detailed information about the customer. | Page 21 “Customer Card” | |
| Dimensions | View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history. | ||
| Approval | Approve | Approve the requested changes. | |
| Reject | Reject the approval request. | ||
| Delegate | Delegate the approval to a substitute approver. | ||
| Comments | View or add comments for the record. | ||
| Release | Release | Release the document to the next stage of processing. You must reopen the document before you can make changes to it. | |
| Reopen | Reopen the document to change it after it has been approved. Approved documents have the Released status and must be opened before they can be changed. | ||
| Functions | Get Posted Document Lines to Reverse | Copy one or more posted sales document lines in order to reverse the original order. | |
| Calculate Invoice Discount | Calculate the invoice discount that applies to the sales credit memo. | ||
| Apply Entries | Select one or more ledger entries that you want to apply this record to so that the related posted documents are closed as paid or refunded. | ||
| Get Recurring Sales Lines | View a list of the standard sales lines that have been assigned to the customer to be used for recurring sales. | ||
| Copy Document | Copy document lines and header information from another sales document to this document. You can copy a posted sales invoice into a new sales invoice to quickly create a similar document. | ||
| Move Negative Lines | Prepare to create a replacement sales order in a sales return process. | ||
| Incoming Document | View Incoming Document | View any incoming document records and file attachments that exist for the entry or document. | |
| Select Incoming Document | Select an incoming document record and file attachment that you want to link to the entry or document. | ||
| Create Incoming Document from File | Create an incoming document record by selecting a file to attach, and then link the incoming document record to the entry or document. | ||
| Remove Incoming Document | Remove any incoming document records and file attachments. | ||
| Request Approval | Send Approval Request | Request approval of the document. | |
| Cancel Approval Request | Cancel the approval request. | ||
| Power Automate | Create approval flow | Create a new flow in Power Automate from a list of relevant flow templates. | |
| Posting | Post | Finalize the document or journal by posting the amounts and quantities to the related accounts in your company books. | |
| Test Report | View a test report so that you can find and correct any errors before you perform the actual posting of the journal or document. | ||
| Post and Send | Finalize and prepare to send the document according to the customer’s sending profile, such as attached to an email. The Send document to window opens first so you can confirm or select a sending profile. | ||
| Remove From Job Queue | Remove the scheduled processing of this record from the job queue. | ||
| Preview Posting | Review the different types of entries that will be created when you post the document or journal. |
Events published
OnAfterOnAfterGetRecord(var SalesHeader: Record "Sales Header")(integration)- subscribers: Codeunit 9070 “Document Errors Mgt.” OnAfterOnAfterGetRecordSalesCreditMemo
OnAfterSetControlAppearance(var SalesHeader: Record "Sales Header")(integration)OnPostOnAfterSetDocumentIsPosted(SalesHeader: Record "Sales Header"; var IsScheduledPosting: Boolean; var DocumentIsPosted: Boolean)(integration)OnShowPostedConfirmationMessageOnBeforeShowPostedDocument(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: boolean)(integration)OnPostDocumentOnBeforeOpenPage(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: boolean)(integration)OnBeforeOnQueryClosePage(var SalesHeader: Record "Sales Header"; DocumentIsPosted: Boolean; CloseAction: Action; var Result: Boolean; var IsHandled: Boolean)(integration)OnBeforeLookupBillToName(var Customer: Record Customer; SalesHeader: Record "Sales Header")+ BC27 (integration)
Trigger event subscribers
- OnAfterValidateEvent(Sell-to Customer Name): Codeunit 170 “Standard Codes Mgt.” OnAfterValidateSalesCreditMemoSellToCustomerName
- OnAfterValidateEvent(Sell-to Customer No.): Codeunit 170 “Standard Codes Mgt.” OnAfterValidateSalesCreditMemoSellToCustomerNo
- OnClosePageEvent: Codeunit 1508 “Notification Lifecycle Handler” OnCloseSalesCreditMemo
- OnModifyRecordEvent: Codeunit 9070 “Document Errors Mgt.” OnModifyRecordEventSalesCreditMemo
- OnOpenPageEvent: Codeunit 1508 “Notification Lifecycle Handler” OnOpenSalesCreditMemo
Procedures
CallPostDocument(PostingCodeunitID: Integer): Calls the document posting procedure with the specified posting codeunit.ShowPreview(): Shows a preview of the posting result without actually posting the document.RunBackgroundCheck(): Runs a background check for document errors.SetPostingGroupEditable(): Sets whether the posting group field should be editable based on customer settings.
Plus 14 local procedures.
Triggers
OnAfterGetCurrRecord, OnAfterGetRecord, OnDeleteRecord, OnInit, OnInsertRecord, OnNewRecord, OnOpenPage, OnQueryClosePage
Relations
- source table Table 36 “Sales Header”
Pages and codeunits on this table
- Page 9302 “Sales Credit Memos” (card page)
Extended by
- Page extension 20255 “Sales Credit Memo Extension”
- Page extension 30122 “Shpfy Sales Credit Memo”
- Page extension 5022 “SD Sales Cr. Memo”
- Page extension 5584 “Incoming Doc. Sales Cr. Memo”
- Page extension 6133 “E-Doc. Sales Credit Memo”
- Page extension 8067 “Sales Credit Memo”
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 1330 “Instruction Mgt.” (5 calls:
PostDocument → IsEnabled,PostDocument → ShowPostedConfirmationMessageCode,ShowPostedConfirmationMessage → ShowConfirm, …) - Codeunit 1535 “Approvals Mgmt.” (3 calls:
SetControlAppearance → CanCancelApprovalForRecord,SetControlAppearance → HasOpenApprovalEntries,SetControlAppearance → HasOpenApprovalEntriesForCurrentUser) - Codeunit 9070 “Document Errors Mgt.” (2 calls:
CheckShowBackgrValidationNotification → CheckShowEnableBackgrValidationNotification,SetControlAppearance → BackgroundValidationEnabled) - Codeunit 1320 “Lines Instruction Mgt.” (1 call:
CheckSalesCheckAllLinesHaveQuantityAssigned → SalesCheckAllLinesHaveQuantityAssigned) - Codeunit 1400 “DocumentNoVisibility” (1 call:
SetDocNoVisible → SalesDocumentNoIsVisible) - Codeunit 1543 “Workflow Webhook Management” (1 call:
SetControlAppearance → GetCanRequestAndCanCancel) - Codeunit 1563 “Privacy Notice” (1 call:
OnInit → GetPrivacyNoticeApprovalState) - Codeunit 1630 “Office Management” (1 call:
PostDocument → IsAvailable) - Codeunit 365 “Format Address” (1 call:
ActivateFields → UseCounty) - Codeunit 457 “Environment Information” (1 call:
OnOpenPage → IsSaaS) - Codeunit 57 “Document Totals” (1 call:
SaveInvoiceDiscountAmount → SalesRedistributeInvoiceDiscountAmountsOnDocument) - Codeunit 5700 “User Setup Management” (1 call:
OnNewRecord → GetSalesFilter) - Codeunit 6400 “Flow Service Management” (1 call:
OnInit → GetPowerAutomatePrivacyNoticeId) - Codeunit 700 “Page Management” (1 call:
PostDocument → PageRun) - Codeunit 799 “VAT Reporting Date Mgt” (1 call:
OnOpenPage → IsVATDateEnabled) - Codeunit 81 “Sales-Post (Yes/No)” (1 call:
ShowPreview → Preview)
Called by
- Codeunit 1303 “Correct Posted Sales Invoice” (2 calls:
CreateCorrectiveCreditMemo → (object),CreateCreditMemo → (object)) - Codeunit 1002 “Job Create-Invoice” (1 call:
OpenSalesInvoice → (object)) - Codeunit 5530 “Calc. Item Availability” (1 call:
RunSalesHeaderPage → (object)) - Codeunit 6620 “Copy Document Mgt.” (1 call:
ShowSalesDoc → (object)) - Codeunit 980 “Payment Registration Mgt.” (1 call:
ShowSalesHeaderRecords → (object)) - Codeunit 99000832 “Sales Line-Reserve” (1 call:
OnLookupDocument → (object)) - Table 18 “Customer” (1 call:
CreateAndShowNewCreditMemo → (object)) - Table 7275 “Sales Line AI Suggestions” (1 call:
RunSalesHeaderPage → (object))
Countries that replace it
Documented on Microsoft Learn
- Correct prepayments
- Deliver sales invoices with French specifics
- Process sales returns or cancellations
- Process sales return orders
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: "page", object_name: "Sales Credit Memo"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.