Sales Planning Line

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/99000800

Table Type: Company

Table Name: Sales Planning Line
Database Table Name: CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 99000800

Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how Sales Planning Line can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Sales Order No_]
   ,[Sales Order Line No_]
   ,[Item No_]
   ,[Description]
   ,[Shipment Date]
   ,[Available]
   ,[Next Planning Date]
   ,[Expected Delivery Date]
   ,[Planning Status]
   ,[Needs Replanning]
   ,[Variant Code]
   ,[Planned Quantity]
   ,[Low-Level Code]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Planning Line]
LEFT JOIN
   [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
      ON
         [Sales Planning Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Sales Planning Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Sales Planning Line].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Sales Planning Line table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Sales Order No. SearchSales Order No.NormalCode20Sales Order No_nvarchar(40)
2Sales Order Line No. Primary Key SearchSales Order Line No.NormalInteger4Sales Order Line No_int
3Item No. Primary Key SearchItem No.NormalCode20Item No_nvarchar(40)
Key to join to the Item table.

Show/hide example query

SELECT
	       [Sales Planning Line].[Item No_]
	       ,[Item].[No_]
	FROM
	       [CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Planning Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item]
	              ON
	                     [Sales Planning Line].[Item No_] = [Item].[No_]
4Description SearchDescriptionNormalText100Descriptionnvarchar(200)
5Shipment Date SearchShipment DateNormalDate4Shipment Datedatetime
6Available SearchAvailableNormalDecimal12Availabledecimal(38,38)
7Next Planning Date SearchNext Planning DateNormalDate4Next Planning Datedatetime
8Expected Delivery Date SearchExpected Delivery DateNormalDate4Expected Delivery Datedatetime
9Planning Status SearchPlanning StatusNormalOption4Planning Statusint
Available options are:
  • “None”
  • “Simulated”
  • “Planned”
  • “Firm Planned”
  • “Released”
  • “Inventory”
10Needs Replanning SearchNeeds ReplanningNormalBoolean4Needs Replanningtinyint
11Variant Code SearchVariant CodeNormalCode10Variant Codenvarchar(20)
Key to join to the Item Variant table.

Show/hide example query

SELECT
	       [Sales Planning Line].[Variant Code]
	       ,[Item Variant].[Code]
	FROM
	       [CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Planning Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
	              ON
	                     [Sales Planning Line].[Variant Code] = [Item Variant].[Code]
12Planned Quantity SearchPlanned QuantityNormalDecimal12Planned Quantitydecimal(38,38)
15Low-Level Code SearchLow-Level CodeNormalInteger4Low-Level Codeint
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Sales Planning Line].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Planning Line]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Sales Planning Line].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

Your email address will not be published. Required fields are marked *