Page 42 "Sales Order"
Base Application · Microsoft.Sales.Document
- 119controls
- 67actions
- 37procedures
- 14events
- 10Learn pages
- 2countries replace it
- 9event subscribers
- 23objects it calls
- 11objects call it
Across versions
- BC23present
- BC241 procedures removed
- BC251 procedures removed
- BC261 events changed
- BC271 events added
- BC28unchanged
- BC291 events removed
- BC30unchanged
Neighbourhood 59 connected objects and pages
Base Application · Microsoft.Sales.Document · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | Sales Order |
| 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 | |
| Control114 | Quote No. | Quote No. | Specifies the number of the sales quote that the sales order was created from. You can track the number to sales quote documents that you have printed, saved, or emailed. from the table field |
| General | 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 | |
| Control123 | 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 Code | 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. | Sell-to Phone No. | Specifies the telephone number of the contact person that the sales document will be sent to. from the table field | |
| Mobile Phone No. | SellToContact."Mobile Phone No." |
Specifies the mobile telephone number of the contact person that the sales document will be sent to. | |
| Sell-to E-Mail | Specifies the email address of the contact person that the sales document will be sent to. from the table field | ||
| General | Contact | Sell-to Contact | Specifies the name of the person to contact at the customer. |
| No. of Archived Versions | No. of Archived Versions | Specifies the number of archived versions for this document. from the table field | |
| Document Date | Document Date | Specifies the date when the related document was created. from the table field | |
| 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 | |
| Order Date | Order Date | Specifies the date the order was created. The order date is also used to determine the prices and discounts on the document. | |
| Due Date | Due Date | Specifies when the related sales invoice must be paid. | |
| Requested Delivery Date | Requested Delivery Date | Specifies the date that the customer has asked for the order to be delivered. from the table field | |
| Promised Delivery Date | Promised Delivery Date | Specifies the date that you have promised to deliver the order, as a result of the Order Promising function. 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 | |
| Your Reference | Your Reference | Specifies the customer’s reference. The content will be printed on sales documents. 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. | |
| Opportunity No. | Opportunity No. | Specifies the number of the opportunity that the sales quote is assigned to. from the table field | |
| 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 orders. from the table field | |
| 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 | |
| Work Description | WorkDescription | WorkDescription |
Specifies the products or service being offered. |
| Content | SalesLines | part Page 46 “Sales Order Subform” | — |
| Invoice 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 | |
| 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 VAT registration number for customers. | |
| 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. from the table field | |
| 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 | |
| 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 | |
| Control76 | Payment Service | Rec.GetSelectedPaymentServicesText() |
Specifies the online payment service, such as PayPal, that customers can use to pay the sales document. |
| Invoice Details | 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 | |
| Direct Debit Mandate ID | Direct Debit Mandate ID | Specifies the direct-debit mandate that the customer has signed to allow direct debit collection of payments. from the table field | |
| Control90 | Ship-to | ShipToOptions |
Specifies the address that the products on the sales document are shipped to. Default (Sell-to Address): The same as the customer’s sell-to address. Alternate Ship-to Address: One of the customer’s alternate ship-to addresses. Custom Address: Any ship-to address that you specify in the fields below. |
| Control4 | Code | Ship-to Code | Specifies the code for another shipment address than the customer’s own address, which is entered by default. |
| Name | Ship-to Name | Specifies the name that products on the sales document will be shipped to. | |
| Name 2 | Ship-to Name 2 | Specifies an additional part of the name that products on the sales document will be shipped to. from the table field | |
| Address | Ship-to Address | Specifies the address that products on the sales document will be shipped to. from the table field | |
| Address 2 | Ship-to Address 2 | Specifies additional address information. from the table field | |
| City | Ship-to City | Specifies the city of the customer on the sales document. from the table field | |
| Control297 | Ship-to County | Ship-to County | Specifies the state, province or county of the address. from the table field |
| Control4 | Post Code | Ship-to Post Code | Specifies the postal code. |
| Country/Region | Ship-to Country/Region Code | Specifies the customer’s country/region. | |
| Control90 | Phone No. | Ship-to Phone No. | Specifies the telephone number of the company’s shipping address. from the table field |
| Contact | Ship-to Contact | Specifies the name of the contact person at the address that products on the sales document will be shipped to. | |
| Shipment Method | Code | Shipment Method Code | Specifies how items on the sales document are shipped to the customer. |
| Agent | Shipping Agent Code | Specifies which shipping agent is used to transport the items on the sales document to the customer. | |
| Agent Service | Shipping Agent Service Code | Specifies the code that represents the default shipping agent service you are using for this sales order. | |
| Package Tracking No. | Package Tracking No. | Specifies the shipping agent’s package number. from the table field | |
| Control85 | Bill-to | BillToOptions |
Specifies the customer that the sales invoice will be sent to. Default (Customer): The same as the customer on the sales invoice. Another Customer: Any customer that you specify in the fields below. |
| Control82 | 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 | |
| Control130 | Bill-to County | Bill-to County | Specifies the state, province or county of the address. from the table field |
| Control82 | Post Code | Bill-to Post Code | Specifies the postal code. |
| Country/Region Code | 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. | ||
| Shipping and Billing | Location Code | Location Code | Specifies the code for the location from where the items are shipped. 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 Respo… 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 | |
| Shipping Advice | Shipping Advice | Specifies if the customer accepts partial shipment of orders. from the table field | |
| Outbound Whse. Handling Time | Outbound Whse. Handling Time | Specifies a date formula for the time it takes to get items ready to ship from this location. The time element is used in the calculation of the delivery date as follows: Shipment Date + Outbound Warehouse Handling Time = Planned Shipment Date + Shipping Time = Planned Delivery Date. from the table field | |
| Shipping Time | Shipping Time | Specifies how long it takes from when the items are shipped from the warehouse to when they are delivered. from the table field | |
| Late Order Shipping | Late Order Shipping | Indicates a delay in the shipment of one or more lines, or that the shipment date is either the same as or earlier than the work date. from the table field | |
| Combine Shipments | Combine Shipments | Specifies whether the order will be included when you use the Combine Shipments function. from the table field | |
| Completely Shipped | Completely Shipped | Specifies whether all the items on the order have been shipped or, in the case of inbound items, completely received. from the table field | |
| 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 | |
| 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 | |
| Prepayment | Prepayment % | Prepayment % | Specifies the prepayment percentage to use to calculate the prepayment for sales. from the table field |
| Compress Prepayment | Compress Prepayment | Specifies that prepayments on the sales order are combined if they have the same general ledger account for prepayments or the same dimensions. from the table field | |
| Prepmt. Payment Terms Code | Prepmt. Payment Terms Code | Specifies the code that represents the payment terms for prepayment invoices related to the sales document. from the table field | |
| Prepayment Due Date | Prepayment Due Date | Specifies when the prepayment invoice for this sales order is due. from the table field | |
| Prepmt. Payment Discount % | Prepmt. Payment Discount % | Specifies the payment discount percent granted on the prepayment if the customer pays on or before the date entered in the Prepmt. Pmt. Discount Date field. from the table field | |
| Prepmt. Pmt. Discount Date | Prepmt. Pmt. Discount Date | Specifies the last date the customer can pay the prepayment invoice and still receive a payment discount on the prepayment amount. from the table field | |
| FactBoxes | Document Check | part Page 9119 “Sales Doc. Check Factbox” | — |
| Documents | part Page 1178 “Doc. Attachment List Factbox” | — | |
| Control35 | part Page 9103 “Pending Approval FactBox” | — | |
| Control1903720907 | part Page 9080 “Sales Hist. Sell-to FactBox” | — | |
| Control1902018507 | part Page 9082 “Customer Statistics FactBox” | — | |
| Control1900316107 | part Page 9084 “Customer Details FactBox” | — | |
| Control1906127307 | part Page 9087 “Sales Line FactBox” | — | |
| Control1901314507 | part Page 9089 “Item Invoicing FactBox” | — | |
| ApprovalFactBox | part Page 9092 “Approval FactBox” | — | |
| IncomingDocAttachFactBox | part Page 193 “Incoming Doc. Attach. FactBox” | — | |
| Control1907012907 | part Page 9108 “Resource Details FactBox” | — | |
| Control1901796907 | part Page 9109 “Item Warehouse FactBox” | — | |
| Control1907234507 | part Page 9081 “Sales Hist. Bill-to FactBox” | — | |
| WorkflowStatus | part Page 1528 “Workflow Status FactBox” | — |
Actions
| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Order | Statistics | View statistical information, such as the value of posted entries, for the record. | Page 402 “Sales Order 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” | |
| 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. | ||
| 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. | ||
| Comments | View or add comments for the record. | Page 67 “Sales Comment Sheet” | |
| Assembly Orders | View ongoing assembly orders related to the sales order. | ||
| Attachments | Add a file as an attachment. You can attach images as well as documents. | ||
| Dynamics 365 Sales | Sales Order | View the selected sales order. | |
| Synchronize | Send updated data to Dynamics 365 Sales. | ||
| Coupling | Set Up Coupling | Create or modify the coupling to a Dynamics 365 Sales order. | |
| Delete Coupling | Delete the coupling to a Dynamics 365 Sales order. | ||
| Dynamics 365 Sales | Synchronization Log | View integration synchronization jobs for the sales order table. | |
| Documents | Shipments | View related posted sales shipments. | Page 142 “Posted Sales Shipments” |
| Invoices | View a list of ongoing sales invoices for the order. | ||
| Warehouse | Invt. Put-away/Pick Lines | View items that are inbound or outbound on inventory put-away or inventory pick documents for the sales order. | Page 5774 “Warehouse Activity List” |
| Warehouse Shipment Lines | View ongoing warehouse shipments for the document, in advanced warehouse configurations. | Page 7341 “Whse. Shipment Lines” | |
| Warehouse Pick Lines | View items that are outbound on warehouse pick documents for the sales order. | Page 5785 “Warehouse Activity Lines” | |
| Prepayment | Prepayment Invoices | View related posted sales invoices that involve a prepayment. | Page 143 “Posted Sales Invoices” |
| Prepayment Credit Memos | View related posted sales credit memos that involve a prepayment. | Page 144 “Posted Sales Credit Memos” | |
| History | Interaction Log Entries | View a list of interaction log entries related to this document. | |
| 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. | ||
| Create Purchase Document | Create Purchase Orders | Create one or more new purchase orders to buy the items that are required by this sales document, minus any quantity that is already available. | |
| Create Purchase Invoice | Create a new purchase invoice to buy all the items that are required by the sales document, even if some of the items are already available. | ||
| Functions | Calculate Invoice Discount | Calculate the invoice discount that applies to the sales order. | |
| Get Recurring Sales Lines | Insert sales document lines that you have set up for the customer as recurring. Recurring sales lines could be for a monthly replenishment order or a fixed freight expense. | ||
| 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. | ||
| Archive Document | Send the document to the archive, for example because it is too soon to delete it. Later, you delete or reprocess the archived document. | ||
| Send IC Sales Order | Send the sales order to the intercompany outbox or directly to the intercompany partner if automatic transaction sending is enabled. | ||
| Reject IC Sales Order | Deletes the order and sends the rejection to the company that created it. | ||
| 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. | ||
| Plan | Order Promising | Calculate the shipment and delivery dates based on the item’s known and expected availability dates, and then promise the dates to the customer. | |
| Demand Overview | Get an overview of demand for your items when planning sales, production, projects, or service management and when they will be available. | ||
| Planning | Open a tool for manual supply planning that displays all new demand along with availability information and suggestions for supply. It provides the visibility and tools needed to plan for demand from sales lines and component lines and then create different types of supply orders directly. | ||
| 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. | |
| Warehouse | Create Inventory Put-away/Pick | Create an inventory put-away or inventory pick to handle items on the document according to a basic warehouse configuration that does not require warehouse receipt or shipment documents. | |
| Create Warehouse Shipment | Create a warehouse shipment to start a pick a ship process according to an advanced warehouse configuration. | ||
| Posting | Post | Finalize the document or journal by posting the amounts and quantities to the related accounts in your company books. | |
| Post and New | Post the sales document and create a new, empty one. | ||
| 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. | ||
| 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. | ||
| 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. | ||
| Pro Forma Invoice | View or print the pro forma sales invoice. | ||
| Prepayment | Prepayment Test Report | Preview the prepayment transactions that will results from posting the sales document as invoiced. | |
| Post Prepayment Invoice | Post the specified prepayment information. | ||
| Post and Print Prepmt. Invoice | Post the specified prepayment information and print the related report. | ||
| Preview Prepmt. Invoice Posting | Review the different types of entries that will be created when you post the prepayment invoice. | ||
| Post Prepayment Credit Memo | Create and post a credit memo for the specified prepayment information. | ||
| Post and Print Prepmt. Cr. Memo | Create and post a credit memo for the specified prepayment information and print the related report. | ||
| Preview Prepmt. Cr. Memo Posting | Review the different types of entries that will be created when you post the prepayment credit memo. | ||
| Work Order | Prepare to registers actual item quantities or time used in connection with the sales order. For example, the document can be used by staff who perform any kind of processing work in connection with the sales order. It can also be exported to Excel if you need to process the sales line data further. | ||
| Pick Instruction | Print a picking list that shows which items to pick and ship for the sales order. If an item is assembled to order, then the report includes rows for the assembly components that must be picked. Use this report as a pick instruction to employees in charge of picking sales items or assembly component… | ||
| Order Confirmation | Email Confirmation | Send a sales order confirmation by email. The attachment is sent as a .pdf. | |
| Action96 | Print Confirmation | Print a sales order confirmation. | |
| Attach as PDF | Create a PDF file and attach it to the document. |
Events published
OnAfterValidateShippingOptions(var SalesHeader: Record "Sales Header"; ShipToOptions: Option "Default (Sell-to Address)","Alternate Shipping Address","Custom Address")(integration)OnAfterOnAfterGetRecord(var SalesHeader: Record "Sales Header")(integration)- subscribers: Codeunit 9070 “Document Errors Mgt.” OnAfterOnAfterGetRecordSalesOrder
OnBeforePostSalesOrder(var SalesHeader: Record "Sales Header"; PostingCodeunitID: Integer; Navigate: Enum "Navigate After Posting")(integration)OnBeforeShowReleaseNotification(var SalesHeader: Record "Sales Header"; var Result: Boolean; var IsHandled: Boolean)(integration)OnBeforeValidateShipToOptions(var SalesHeader: Record "Sales Header"; ShipToOptions: Option "Default (Sell-to Address)","Alternate Shipping Address","Custom Address"; var IsHandled: Boolean)(integration)OnPostOnAfterSetDocumentIsPosted(SalesHeader: Record "Sales Header"; var IsScheduledPosting: Boolean; var DocumentIsPosted: Boolean)(integration)OnPostOnBeforeSalesHeaderInsert(var SalesHeader: Record "Sales Header")(integration)OnAfterGetCurrRecordOnBeforeCheckItemAvailabilityInLines(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)(integration)OnOnAfterGetCurrRecordOnBeforeSalesHeaderCheck(var SalesHeader: Record "Sales Header")(integration)OnValidateShipToOptionsOnAfterShipToAddressListGetRecord(var ShipToAddress: Record "Ship-to Address"; var SalesHeader: Record "Sales Header")(integration)OnBeforeQueryClosePage(var DocumentIsScheduledForPosting: Boolean; var SalesHeader: Record "Sales Header"; CloseAction: Action; ShowReleaseNotification: Boolean; DocumentIsPosted: Boolean; var Result: Boolean; var IsHandled: Boolean)(integration)OnQueryClosePageOnBeforeConfirmCloseUnposted(var DocumentIsPosted: 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.” OnAfterValidateSalesOrderSellToCustomerName
- OnAfterValidateEvent(Sell-to Customer No.): Codeunit 170 “Standard Codes Mgt.” OnAfterValidateSalesOrderSellToCustomerNo
- OnClosePageEvent: Codeunit 1508 “Notification Lifecycle Handler” OnCloseSalesOrder
- OnModifyRecordEvent: Codeunit 9070 “Document Errors Mgt.” OnModifyRecordEventSalesOrder
- OnNewRecordEvent: Codeunit 4323 “SOA Awareness Notifications” SalesOrderOnNewRecordEvent
- OnOpenPageEvent: Codeunit 1508 “Notification Lifecycle Handler” OnOpenSalesOrder, Codeunit 1952 “LP Subscribers” OnOpenSalesOrder, Codeunit 4306 “SOA Session Filter” SetFiltersOnOpenSalesOrderPage
Procedures
PostSalesOrder(PostingCodeunitID: Integer; Navigate: Enum "Navigate After Posting")(protected)RunBackgroundCheck(): Runs a background check for document errors.UpdatePaymentService()(protected)UpdateShipToBillToGroupVisibility(): Updates the visibility of ship-to and bill-to address option groups.SetPostingGroupEditable(): Sets whether the posting group field should be editable based on customer settings.CheckNotificationsOnce(): Sets a flag to check notifications once on the next update.
Plus 17 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 9305 “Sales Order List” (card page)
Extended by
- Page extension 1956 “LPP Sales Order”
- Page extension 20258 “Sales Order Ext”
- Page extension 30115 “Shpfy Sales Order”
- Page extension 4410 “Sales Order Ext”
- Page extension 5031 “SD Sales Order”
- Page extension 5586 “Incoming Doc. Sales Order”
- Page extension 6131 “E-Doc. Sales Order”
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.” (6 calls:
OnQueryClosePage → ShowConfirmUnreleased,PostSalesOrder → IsEnabled,PostSalesOrder → ShowPostedConfirmationMessageCode, …) - Codeunit 1535 “Approvals Mgmt.” (3 calls:
SetControlVisibility → CanCancelApprovalForRecord,SetControlVisibility → HasOpenApprovalEntries,SetControlVisibility → HasOpenApprovalEntriesForCurrentUser) - Codeunit 427 “ICInboxOutboxMgt” (2 calls:
OnAfterGetRecord → IsSalesHeaderFromIncomingIC,OnOpenPage → IsSalesHeaderFromIncomingIC) - Codeunit 443 “Sales-Post Prepayment (Yes/No)” (2 calls:
ShowPrepmtCrMemoPreview → Preview,ShowPrepmtInvoicePreview → Preview) - Codeunit 9070 “Document Errors Mgt.” (2 calls:
CheckShowBackgrValidationNotification → CheckShowEnableBackgrValidationNotification,SetControlVisibility → BackgroundValidationEnabled) - Codeunit 1302 “Customer Mgt.” (1 call:
UpdateShipToBillToGroupVisibility → CalculateShipBillToOptions) - Codeunit 1320 “Lines Instruction Mgt.” (1 call:
PostSalesOrder → SalesCheckAllLinesHaveQuantityAssigned) - Codeunit 1400 “DocumentNoVisibility” (1 call:
SetDocNoVisible → SalesDocumentNoIsVisible) - Codeunit 1543 “Workflow Webhook Management” (1 call:
SetControlVisibility → GetCanRequestAndCanCancel) - Codeunit 1563 “Privacy Notice” (1 call:
OnInit → GetPrivacyNoticeApprovalState) - Codeunit 1630 “Office Management” (1 call:
OnOpenPage → IsAvailable) - Codeunit 312 “Cust-Check Cr. Limit” (1 call:
OnAfterGetCurrRecord → SalesHeaderCheck) - Codeunit 365 “Format Address” (1 call:
ActivateFields → UseCounty) - Codeunit 404 “IC Feedback” (1 call:
ShowPostedConfirmationMessage → ShowIntercompanyMessage) - Codeunit 457 “Environment Information” (1 call:
OnOpenPage → IsSaaS) - Codeunit 5330 “CRM Integration Management” (1 call:
OnOpenPage → IsCRMIntegrationEnabled) - Codeunit 5331 “CRM Coupling Management” (1 call:
OnAfterGetCurrRecord → IsRecordCoupledToCRM) - 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 799 “VAT Reporting Date Mgt” (1 call:
OnOpenPage → IsVATDateEnabled) - Codeunit 81 “Sales-Post (Yes/No)” (1 call:
ShowPreview → Preview) - Codeunit 9179 “Application Area Mgmt. Facade” (1 call:
OnOpenPage → IsBasicCountryEnabled)
Called by
- Codeunit 5991 “Sales Warehouse Mgt.” (2 calls:
OnShowSourceDocCard → (object),OnShowSourceDocumentCard → (object)) - Codeunit 1322 “Correct PstdSalesInv (Yes/No)” (1 call:
CancelPostedInvoiceAndOpenSalesOrder → (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)) - Codeunit 99000850 “Sales Line-Planning” (1 call:
OrderPlanningOnBeforeShowDemandOrder → (object)) - Table 18 “Customer” (1 call:
CreateAndShowNewOrder → (object)) - Table 4592 “SOA KPI Entry” (1 call:
OpenCard → (object)) - Table 7275 “Sales Line AI Suggestions” (1 call:
RunSalesHeaderPage → (object)) - Table 904 “Assemble-to-Order Link” (1 call:
ShowSales → (object))
Countries that replace it
Documented on Microsoft Learn
- Archive sales, purchase, project, and service documents
- Track order lines to related documents
- Correct prepayments
- Create prepayment invoices
- Use e-documents in sales
- Invoice prepayments
- Deliver sales invoices with French specifics
- Register new customers by creating a Customer Card
- Create a customer sales order and sell products
- Sustainability value chain in sales
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 Order"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.
Evidence 8 of 11 sources
- codesrc/Layers/W1/BaseApp/Sales/Document/SalesOrder.Page.alreleases/29.x @ ea08af5e
- learnArchive sales, purchase, project, and service documents
- learnTrack order lines to related documents
- learnCorrect prepayments
- learnCreate prepayment invoices
- learnUse e-documents in sales
- learnInvoice prepayments
- learnDeliver sales invoices with French specifics