Codeunit 6113 Item Data Migration Facade

Base Application, System.Integration

src/Layers/W1/BaseApp/System/DataMigration/ItemDataMigrationFacade.Codeunit.al52 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 23, trigger

  1. 28callsCodeunit 6101 Data Migration Status Facade HasMigratedChartOfAccounts
  2. 31raisesOnMigrateItem
  3. 32raisesOnMigrateItemTrackingCode
  4. 33raisesOnMigrateCostingMethod
  5. 34raisesOnMigrateItemUnitOfMeasure
  6. 35raisesOnMigrateItemDiscountGroup
  7. 36raisesOnMigrateItemSalesLineDiscount
  8. 37raisesOnMigrateItemPrice
  9. 38raisesOnMigrateItemTariffNo
  10. 39raisesOnMigrateItemDimensions
  11. 43raisesOnMigrateItemPostingGroups
  12. 44raisesOnMigrateInventoryTransactions

CreateItemIfNeeded line 60

  1. 72validatesTable 27 Item No.
  2. 73validatesTable 27 Item Description
  3. 74validatesTable 27 Item Description 2
  4. 75validatesTable 27 Item Type
  5. 76writesTable 27 Item Insert(true)

CreateLocationIfNeeded line 83

  1. 91validatesTable 14 Location Code
  2. 92validatesTable 14 Location Name
  3. 93writesTable 14 Location Insert(true)

ModifyItem line 111

  1. 116writesTable 27 Item Modify

CreateSalesLineDiscountIfNeeded line 119

  1. 124callsCodeunit 7001 Price Calculation Mgt. IsExtendedPriceCalculationEnabled
  2. 127callsSalesDiscTypeToSourceType
  3. 128callsDiscTypeToAssetType
  4. 140validatesTable 7004 Sales Line Discount Sales Type
  5. 141validatesTable 7004 Sales Line Discount Sales Code
  6. 142validatesTable 7004 Sales Line Discount Type
  7. 143validatesTable 7004 Sales Line Discount Code
  8. 144validatesTable 7004 Sales Line Discount Line Discount %
  9. 145writesTable 7004 Sales Line Discount Insert(true)

CreateSalesLineDiscountIfNeeded line 159

  1. 163callsInitSalesPriceListLine
  2. 167callsFindPriceListLine
  3. 169callsInsertPriceListLine

CreateCustDiscGroupIfNeeded line 173

  1. 181validatesTable 340 Customer Discount Group Code
  2. 182validatesTable 340 Customer Discount Group Description
  3. 183writesTable 340 Customer Discount Group Insert(true)

CreateItemDiscGroupIfNeeded line 187

  1. 195validatesTable 341 Item Discount Group Code
  2. 196validatesTable 341 Item Discount Group Description
  3. 197writesTable 341 Item Discount Group Insert(true)

CreateSalesPriceIfNeeded line 201

  1. 206callsCodeunit 7001 Price Calculation Mgt. IsExtendedPriceCalculationEnabled
  2. 209callsSalesPriceTypeToSourceType
  3. 218validatesTable 7002 Sales Price Sales Type
  4. 219validatesTable 7002 Sales Price Sales Code
  5. 220validatesTable 7002 Sales Price Item No.
  6. 221validatesTable 7002 Sales Price Starting Date
  7. 222validatesTable 7002 Sales Price Currency Code
  8. 222callsCodeunit 1797 Data Migration Facade Helper FixIfLcyCode
  9. 223validatesTable 7002 Sales Price Variant Code
  10. 224validatesTable 7002 Sales Price Unit of Measure Code
  11. 225validatesTable 7002 Sales Price Minimum Quantity
  12. 226validatesTable 7002 Sales Price Unit Price
  13. 228writesTable 7002 Sales Price Insert(true)

CreateSalesPriceIfNeeded line 260

  1. 264callsInitSalesPriceListLine
  2. 269callsFindPriceListLine
  3. 271callsInsertPriceListLine

InitSalesPriceListLine line 275, local

  1. 278validatesTable 7001 Price List Line Price Type
  2. 279validatesTable 7001 Price List Line Source Type
  3. 280validatesTable 7001 Price List Line Source No.
  4. 281validatesTable 7001 Price List Line Currency Code
  5. 281callsCodeunit 1797 Data Migration Facade Helper FixIfLcyCode
  6. 282validatesTable 7001 Price List Line Starting Date
  7. 283validatesTable 7001 Price List Line Asset Type
  8. 284validatesTable 7001 Price List Line Asset No.
  9. 285validatesTable 7001 Price List Line Variant Code
  10. 286validatesTable 7001 Price List Line Unit of Measure Code
  11. 287validatesTable 7001 Price List Line Minimum Quantity

InsertPriceListLine line 305, local

  1. 309callsCodeunit 7009 CopyFromToPriceListLine SetGenerateHeader
  2. 310callsCodeunit 7009 CopyFromToPriceListLine InitLineNo
  3. 311writesTable 7001 Price List Line Insert(true)

CreateTariffNumberIfNeeded line 314

  1. 322validatesTable 260 Tariff Number No.
  2. 323validatesTable 260 Tariff Number Description
  3. 324validatesTable 260 Tariff Number Supplementary Units
  4. 325writesTable 260 Tariff Number Insert(true)

CreateUnitOfMeasureIfNeeded line 329

  1. 337validatesTable 204 Unit of Measure Code
  2. 338validatesTable 204 Unit of Measure Description
  3. 339writesTable 204 Unit of Measure Insert(true)

CreateItemTrackingCodeIfNeeded line 343

  1. 351validatesTable 6502 Item Tracking Code Code
  2. 352validatesTable 6502 Item Tracking Code Description
  3. 353validatesTable 6502 Item Tracking Code Lot Specific Tracking
  4. 354validatesTable 6502 Item Tracking Code SN Specific Tracking
  5. 355writesTable 6502 Item Tracking Code Insert(true)

CreateInventoryPostingSetupIfNeeded line 359

  1. 366validatesTable 94 Inventory Posting Group Code
  2. 367validatesTable 94 Inventory Posting Group Description
  3. 368writesTable 94 Inventory Posting Group Insert(true)
  4. 374validatesTable 5813 Inventory Posting Setup Location Code
  5. 375validatesTable 5813 Inventory Posting Setup Invt. Posting Group Code
  6. 376writesTable 5813 Inventory Posting Setup Insert(true)

CreateGeneralProductPostingSetupIfNeeded line 381

  1. 388validatesTable 251 Gen. Product Posting Group Code
  2. 389validatesTable 251 Gen. Product Posting Group Description
  3. 390writesTable 251 Gen. Product Posting Group Insert(true)
  4. 396validatesTable 252 General Posting Setup Gen. Bus. Posting Group
  5. 397validatesTable 252 General Posting Setup Gen. Prod. Posting Group
  6. 398writesTable 252 General Posting Setup Insert(true)

CreateItemJournalBatchIfNeeded line 403

  1. 408callsCreateItemJournalTemplateIfNeeded
  2. 415validatesTable 233 Item Journal Batch Journal Template Name
  3. 416callsTable 233 Item Journal Batch SetupNewBatch
  4. 417validatesTable 233 Item Journal Batch Name
  5. 418validatesTable 233 Item Journal Batch Description
  6. 421writesTable 233 Item Journal Batch Insert(true)

CreateItemJournalTemplateIfNeeded line 425, local

  1. 433validatesTable 82 Item Journal Template Name
  2. 434validatesTable 82 Item Journal Template Type
  3. 435validatesTable 82 Item Journal Template Recurring
  4. 436writesTable 82 Item Journal Template Insert(true)

CreateItemJournalLine line 441

  1. 448callsCreateItemJournalTemplateIfNeeded
  2. 459validatesTable 83 Item Journal Line Journal Template Name
  3. 460validatesTable 83 Item Journal Line Journal Batch Name
  4. 461validatesTable 83 Item Journal Line Line No.
  5. 462validatesTable 83 Item Journal Line Entry Type
  6. 463validatesTable 83 Item Journal Line Document No.
  7. 464validatesTable 83 Item Journal Line Item No.
  8. 465validatesTable 83 Item Journal Line Location Code
  9. 466validatesTable 83 Item Journal Line Description
  10. 467validatesTable 83 Item Journal Line Document Date
  11. 468validatesTable 83 Item Journal Line Posting Date
  12. 469validatesTable 83 Item Journal Line Quantity
  13. 470validatesTable 83 Item Journal Line Amount
  14. 471validatesTable 83 Item Journal Line Gen. Bus. Posting Group
  15. 472validatesTable 83 Item Journal Line Gen. Prod. Posting Group
  16. 473writesTable 83 Item Journal Line Insert(true)

SetItemJournalLineItemTracking line 479

  1. 485callsCreateItemTracking

CreateItemTracking line 488, local

  1. 495callsCodeunit 99000830 Create Reserv. Entry CreateReservEntryFor
  2. 506callsCodeunit 99000830 Create Reserv. Entry CreateEntry

SetItemJournalLineDimension line 514

  1. 521validatesTable 83 Item Journal Line Dimension Set ID
  2. 522callsCodeunit 1797 Data Migration Facade Helper CreateDimensionSetId
  3. 525writesTable 83 Item Journal Line Modify(true)

CreateDefaultDimensionAndRequirementsIfNeeded line 528

  1. 536callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimension
  2. 537callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimensionValue
  3. 538callsCodeunit 1797 Data Migration Facade Helper CreateOnlyDefaultDimensionIfNeeded

CreateBOMComponent line 541

  1. 556validatesTable 90 BOM Component Parent Item No.
  2. 557validatesTable 90 BOM Component Line No.
  3. 558validatesTable 90 BOM Component Type
  4. 559validatesTable 90 BOM Component No.
  5. 560validatesTable 90 BOM Component Quantity per
  6. 561validatesTable 90 BOM Component Position
  7. 562writesTable 90 BOM Component Insert(true)

SetItemTrackingCode line 565

  1. 570validatesTable 27 Item Item Tracking Code

SetBaseUnitOfMeasure line 573

  1. 578validatesTable 27 Item Base Unit of Measure

SetPurchUnitOfMeasure line 581

  1. 590validatesTable 5404 Item Unit of Measure Item No.
  2. 591validatesTable 5404 Item Unit of Measure Code
  3. 592validatesTable 5404 Item Unit of Measure Qty. per Unit of Measure
  4. 593writesTable 5404 Item Unit of Measure Insert
  5. 596validatesTable 27 Item Purch. Unit of Measure

SetItemDiscGroup line 599

  1. 604validatesTable 27 Item Item Disc. Group

SetTariffNo line 607

  1. 612validatesTable 27 Item Tariff No.

SetCostingMethod line 615

  1. 620validatesTable 27 Item Costing Method

SetUnitCost line 623

  1. 628validatesTable 27 Item Unit Cost

SetStandardCost line 631

  1. 636validatesTable 27 Item Standard Cost

SetVendorItemNo line 639

  1. 644validatesTable 27 Item Vendor Item No.

SetNetWeight line 647

  1. 652validatesTable 27 Item Net Weight

SetUnitVolume line 655

  1. 660validatesTable 27 Item Unit Volume

SetBlocked line 663

  1. 668validatesTable 27 Item Blocked

SetStockoutWarning line 671

  1. 677validatesTable 27 Item Stockout Warning
  2. 679validatesTable 27 Item Stockout Warning

SetPreventNegativeInventory line 682

  1. 688validatesTable 27 Item Prevent Negative Inventory
  2. 690validatesTable 27 Item Prevent Negative Inventory

SetReorderQuantity line 693

  1. 698validatesTable 27 Item Reorder Quantity

SetAlternativeItemNo line 701

  1. 706validatesTable 27 Item Alternative Item No.

SetVendorNo line 709

  1. 719validatesTable 27 Item Vendor No.

SetUnitPrice line 724

  1. 729validatesTable 27 Item Unit Price

SetUnitListPrice line 732

  1. 737validatesTable 27 Item Unit List Price

SetLastDateModified line 740

  1. 745validatesTable 27 Item Last Date Modified

SetLastModifiedDateTime line 748

  1. 753validatesTable 27 Item Last DateTime Modified

CreateCustomerPriceGroupIfNeeded line 756

  1. 758callsCodeunit 1797 Data Migration Facade Helper CreateCustomerPriceGroupIfNeeded

SetInventoryPostingSetupInventoryAccount line 761

  1. 766validatesTable 5813 Inventory Posting Setup Inventory Account
  2. 767writesTable 5813 Inventory Posting Setup Modify(true)

SetGeneralPostingSetupInventoryAdjmntAccount line 770

  1. 775validatesTable 252 General Posting Setup Inventory Adjmt. Account
  2. 776writesTable 252 General Posting Setup Modify(true)

SetInventoryPostingGroup line 779

  1. 789validatesTable 27 Item Inventory Posting Group

SetGeneralProductPostingGroup line 794

  1. 804validatesTable 27 Item Gen. Prod. Posting Group

SetSearchDescription line 809

  1. 814validatesTable 27 Item Search Description