codeunitPlatform, DevOps & Performanceofficial - Microsoftderived - from the source, no model text

Codeunit 9500 "Sequence No. Mgt."

Base Application · Microsoft.Foundation.NoSeries

Across versions

  1. BC23-24present
  2. BC257 procedures added, 2 procedures removed
  3. BC267 procedures added, 1 procedures removed
  4. BC272 procedures added
  5. BC28unchanged
  6. BC292 events added
  7. BC30unchanged

Neighbourhood 60 connected objects and pages

Codeunit 22 "Item Jnl.-Post Line" (event subscribers)Item Jnl.-Post LineCodeunit 5912 "ServLedgEntries-Post" (event subscribers)Codeunit 7301 "Whse. Jnl.-Register Line" (event subscribers)Whse. Jnl.-Register LineCodeunit 6500 "Item Tracking Management" (calls, 3 links)Item Tracking ManagementTable 1514 "Sent Notification Entry" (calls, 3 links)Sent Notification EntryTable 7312 "Warehouse Entry" (calls, 3 links)Codeunit 1012 "Job Jnl.-Post Line" (calls, 2 links)Job Jnl.-Post LineCodeunit 12 "Gen. Jnl.-Post Line" (calls, 2 links)Codeunit 212 "Res. Jnl.-Post Line" (calls, 2 links)Res. Jnl.-Post LineCodeunit 22 "Item Jnl.-Post Line" (calls, 2 links)Item Jnl.-Post LineCodeunit 5051 "SegManagement" (calls, 2 links)SegManagementCodeunit 5763 "Whse.-Post Shipment" (calls, 2 links)Whse.-Post ShipmentCodeunit 80 "Sales-Post" (calls, 2 links)Codeunit 90 "Purch.-Post" (calls, 2 links)Purch.-PostCodeunit 99000891 "Mfg. Item Tracking Mgt." (calls, 2 links)Mfg. Item Tracking Mgt.Table 5062 "Attachment" (calls, 2 links)AttachmentTable 5065 "Interaction Log Entry" (calls, 2 links)Table 7313 "Warehouse Register" (calls, 2 links)Warehouse RegisterCodeunit 1021 "Job Jnl.-Post" (calls)Job Jnl.-PostCodeunit 19 "Gen. Jnl.-Post Preview" (calls)Codeunit 224 "EmplEntry-Apply Posted Entries" (calls)Codeunit 226 "CustEntry-Apply Posted Entries" (calls)Codeunit 227 "VendEntry-Apply Posted Entries" (calls)Codeunit 23 "Item Jnl.-Post Batch" (calls)Codeunit 231 "Gen. Jnl.-Post" (calls)Codeunit 241 "Item Jnl.-Post" (calls)Codeunit 442 "Sales-Post Prepayments" (calls)Codeunit 444 "Purchase-Post Prepayments" (calls)Codeunit 5636 "FA. Jnl.-Post" (calls)Codeunit 5706 "TransferOrder-Post (Yes/No)" (calls)Codeunit 5760 "Whse.-Post Receipt" (calls)Codeunit 5853 "Invt. Doc.-Post (Yes/No)" (calls)Codeunit 5884 "Phys. Invt. Order-Post" (calls)Codeunit 5912 "ServLedgEntries-Post" (calls)Codeunit 5940 "ServContractManagement" (calls)Codeunit 5981 "Service-Post (Yes/No)" (calls)Codeunit 699 "Exch. Rate Adjmt. Process" (calls)Codeunit 7301 "Whse. Jnl.-Register Line" (calls)Codeunit 7304 "Whse. Jnl.-Register Batch" (calls)Codeunit 7323 "Whse.-Act.-Post (Yes/No)" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Foundation.NoSeries · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
SingleInstance true
Permissions tabledata “Sequence No. Preview State” = rid

Events published

  • OnPreviewableLedgerEntry(TableNo: Integer; var IsPreviewable: Boolean) + BC25 (integration)
  • OnBeforeGetLastEntryNoFromTable(TableNo: Integer) + BC29 (integration): Integration event raised at the beginning of GetLastEntryNoFromTable, before the table is opened. Allows extensions to remove filters (for example global dimension filters) that could affect the last entry number lookup.
  • OnAfterGetLastEntryNoFromTable(TableNo: Integer) + BC29 (integration): Integration event raised at the end of GetLastEntryNoFromTable, after the last entry number has been read. Allows extensions to reapply filters that were removed in OnBeforeGetLastEntryNoFromTable.

Procedures

  • ClearState() + BC26: Clears allocations and other internal states
  • AllocateSeqNoBuffer(TableNo: Integer; NoOfEntries: Integer) + BC27: Allocates sequence numbers for a given table ID. if the sequence does not exist, it will be created.
  • GetNextSeqNo(TableNo: Integer): Integer: Returns the next buffered NumberSequence value for a given table ID. if the sequence does not exist, it will be created.
  • GetCurrentSeqNo(TableNo: Integer): Integer + BC26: Returns the current NumberSequence value for a given table ID. if the sequence does not exist, it will be created.
  • ValidateSeqNo(TableNo: Integer) + BC26: Ensures that the NumberSequence is not behind the last entry in the table. if the sequence does not exist, it will be created. The result will be cached for the current transaction. The cache can be cleared by calling ClearSequenceNoCheck.
  • ClearSequenceNoCheck() + BC26: Clears the cache that is used by procedure ValidateSeqNo(TableNo).
  • RebaseSeqNo(TableNo: Integer): Restarts or recreates the NumberSequence for the specified Table ID.
  • GetTableSequenceName(TableNo: Integer): Text + BC25: Returns the name of the NumberSequence for the specified Table ID.
  • GetTableSequenceName(PreviewMode: Boolean; TableNo: Integer): Text + BC25: Returns the name of the NumberSequence for the specified Table ID. We have one sequence for preview and one for non-preview.
  • StartPreviewMode() + BC25 (internal)
  • StopPreviewMode() + BC25 (internal)
  • SetPreviewMode(NewPreviewMode: Boolean) + BC26 (internal)

Plus 7 local procedures.

Called by

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.

Recent changes

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: "codeunit", object_name: "Sequence No. Mgt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources