Codeunit "Item Data Migration Facade"
ID 6113
Namespace: System.Integration
Properties
Methods
CreateItemIfNeeded
procedure CreateItemIfNeeded(ItemNoToSet: Code[20], ItemDescriptionToSet: Text[50], ItemDescription2ToSet: Text[50], ItemTypeToSet: Option): Boolean
Parameters
| Name |
Type |
Description |
|
ItemNoToSet
|
Code[20]
|
|
|
ItemDescriptionToSet
|
Text[50]
|
|
|
ItemDescription2ToSet
|
Text[50]
|
|
|
ItemTypeToSet
|
Option
|
|
Returns
CreateLocationIfNeeded
procedure CreateLocationIfNeeded(LocationCode: Code[10], LocationName: Text[50]): Boolean
Parameters
| Name |
Type |
Description |
|
LocationCode
|
Code[10]
|
|
|
LocationName
|
Text[50]
|
|
Returns
DoesItemExist
procedure DoesItemExist(ItemNo: Code[20]): Boolean
Parameters
| Name |
Type |
Description |
|
ItemNo
|
Code[20]
|
|
Returns
SetGlobalItem
procedure SetGlobalItem(ItemNo: Code[20]): Boolean
Parameters
| Name |
Type |
Description |
|
ItemNo
|
Code[20]
|
|
Returns
ModifyItem
procedure ModifyItem(RunTrigger: Boolean)
Parameters
| Name |
Type |
Description |
|
RunTrigger
|
Boolean
|
|
CreateSalesLineDiscountIfNeeded
Obsolete
This element will become obsolete from version 17.0. Replaced by the CreateSalesLineDiscountIfNeeded(SourceType: Enum "Price Source Type"; ...)
[Obsolete(Replaced by the CreateSalesLineDiscountIfNeeded(SourceType: Enum "Price Source Type"; ...),17.0)]
procedure CreateSalesLineDiscountIfNeeded(SalesTypeToSet: Option, SalesCodeToSet: Code[20], TypeToSet: Option, CodeToSet: Code[20], LineDiscountPercentToSet: Decimal): Boolean
Parameters
| Name |
Type |
Description |
|
SalesTypeToSet
|
Option
|
|
|
SalesCodeToSet
|
Code[20]
|
|
|
TypeToSet
|
Option
|
|
|
CodeToSet
|
Code[20]
|
|
|
LineDiscountPercentToSet
|
Decimal
|
|
Returns
CreateSalesLineDiscountIfNeeded
procedure CreateSalesLineDiscountIfNeeded(SourceType: Enum "Price Source Type", SourceNo: Code[20], AssetType: Enum "Price Asset Type", AssetNo: Code[20], MinimumQuantity: Decimal, LineDiscountPercent: Decimal): Boolean
Parameters
Returns
CreateCustDiscGroupIfNeeded
procedure CreateCustDiscGroupIfNeeded(CustDiscGroupCodeToSet: Code[20], DescriptionToSet: Text[50]): Boolean
Parameters
| Name |
Type |
Description |
|
CustDiscGroupCodeToSet
|
Code[20]
|
|
|
DescriptionToSet
|
Text[50]
|
|
Returns
CreateItemDiscGroupIfNeeded
procedure CreateItemDiscGroupIfNeeded(DiscGroupCodeToSet: Code[20], DescriptionToSet: Text[50]): Boolean
Parameters
| Name |
Type |
Description |
|
DiscGroupCodeToSet
|
Code[20]
|
|
|
DescriptionToSet
|
Text[50]
|
|
Returns
CreateSalesPriceIfNeeded
Obsolete
This element will become obsolete from version 16.0. Replaced by the CreateSalesPriceIfNeeded(SourceType: Enum "Price Source Type"; ...)
[Obsolete(Replaced by the CreateSalesPriceIfNeeded(SourceType: Enum "Price Source Type"; ...),16.0)]
procedure CreateSalesPriceIfNeeded(SalesTypeToSet: Option, SalesCodeToSet: Code[20], ItemNoToSet: Code[20], UnitPriceToSet: Decimal, CurrencyCodeToSet: Code[10], StartingDateToSet: Date, UnitOfMeasureToSet: Code[10], MinimumQuantityToSet: Decimal, VariantCodeToSet: Code[10]): Boolean
Parameters
| Name |
Type |
Description |
|
SalesTypeToSet
|
Option
|
|
|
SalesCodeToSet
|
Code[20]
|
|
|
ItemNoToSet
|
Code[20]
|
|
|
UnitPriceToSet
|
Decimal
|
|
|
CurrencyCodeToSet
|
Code[10]
|
|
|
StartingDateToSet
|
Date
|
|
|
UnitOfMeasureToSet
|
Code[10]
|
|
|
MinimumQuantityToSet
|
Decimal
|
|
|
VariantCodeToSet
|
Code[10]
|
|
Returns
CreateSalesPriceIfNeeded
procedure CreateSalesPriceIfNeeded(SourceType: Enum "Price Source Type", SourceNo: Code[20], CurrencyCode: Code[10], StartingDate: Date, AssetNo: Code[20], VariantCode: Code[10], UnitOfMeasure: Code[10], MinimumQuantity: Decimal, UnitPrice: Decimal): Boolean
Parameters
Returns
CreateTariffNumberIfNeeded
procedure CreateTariffNumberIfNeeded(NoToSet: Code[20], DescriptionToSet: Text[50], SupplementaryUnitToSet: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
NoToSet
|
Code[20]
|
|
|
DescriptionToSet
|
Text[50]
|
|
|
SupplementaryUnitToSet
|
Boolean
|
|
Returns
CreateUnitOfMeasureIfNeeded
procedure CreateUnitOfMeasureIfNeeded(CodeToSet: Code[10], DescriptionToSet: Text[10]): Boolean
Parameters
| Name |
Type |
Description |
|
CodeToSet
|
Code[10]
|
|
|
DescriptionToSet
|
Text[10]
|
|
Returns
CreateItemTrackingCodeIfNeeded
procedure CreateItemTrackingCodeIfNeeded(CodeToSet: Code[10], DescriptionToSet: Text[50], LotSpecificTrackingToSet: Boolean, SNSpecificTrackingToSet: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
CodeToSet
|
Code[10]
|
|
|
DescriptionToSet
|
Text[50]
|
|
|
LotSpecificTrackingToSet
|
Boolean
|
|
|
SNSpecificTrackingToSet
|
Boolean
|
|
Returns
CreateInventoryPostingSetupIfNeeded
procedure CreateInventoryPostingSetupIfNeeded(InventoryPostingGroupCode: Code[20], InventoryPostingGroupDescription: Text[50], LocationCode: Code[10]): Boolean
Parameters
| Name |
Type |
Description |
|
InventoryPostingGroupCode
|
Code[20]
|
|
|
InventoryPostingGroupDescription
|
Text[50]
|
|
|
LocationCode
|
Code[10]
|
|
Returns
CreateGeneralProductPostingSetupIfNeeded
procedure CreateGeneralProductPostingSetupIfNeeded(GeneralProdPostingGroupCode: Code[20], GeneralProdPostingGroupDescription: Text[50], GeneralBusPostingGroupCode: Code[20]): Boolean
Parameters
| Name |
Type |
Description |
|
GeneralProdPostingGroupCode
|
Code[20]
|
|
|
GeneralProdPostingGroupDescription
|
Text[50]
|
|
|
GeneralBusPostingGroupCode
|
Code[20]
|
|
Returns
CreateItemJournalBatchIfNeeded
procedure CreateItemJournalBatchIfNeeded(ItemJournalBatchCode: Code[10], NoSeriesCode: Code[20], PostingNoSeriesCode: Code[20])
Parameters
| Name |
Type |
Description |
|
ItemJournalBatchCode
|
Code[10]
|
|
|
NoSeriesCode
|
Code[20]
|
|
|
PostingNoSeriesCode
|
Code[20]
|
|
CreateItemJournalLine
procedure CreateItemJournalLine(ItemJournalBatchCode: Code[10], DocumentNo: Code[20], Description: Text[50], PostingDate: Date, Qty: Decimal, Amount: Decimal, LocationCode: Code[10], GenProdPostingGroupGode: Code[20])
Parameters
| Name |
Type |
Description |
|
ItemJournalBatchCode
|
Code[10]
|
|
|
DocumentNo
|
Code[20]
|
|
|
Description
|
Text[50]
|
|
|
PostingDate
|
Date
|
|
|
Qty
|
Decimal
|
|
|
Amount
|
Decimal
|
|
|
LocationCode
|
Code[10]
|
|
|
GenProdPostingGroupGode
|
Code[20]
|
|
SetItemJournalLineItemTracking
procedure SetItemJournalLineItemTracking(SerialNo: Code[50], LotNo: Code[50])
Parameters
| Name |
Type |
Description |
|
SerialNo
|
Code[50]
|
|
|
LotNo
|
Code[50]
|
|
SetItemJournalLineDimension
procedure SetItemJournalLineDimension(DimensionCode: Code[20], DimensionDescription: Text[50], DimensionValueCode: Code[20], DimensionValueName: Text[50])
Parameters
| Name |
Type |
Description |
|
DimensionCode
|
Code[20]
|
|
|
DimensionDescription
|
Text[50]
|
|
|
DimensionValueCode
|
Code[20]
|
|
|
DimensionValueName
|
Text[50]
|
|
CreateDefaultDimensionAndRequirementsIfNeeded
procedure CreateDefaultDimensionAndRequirementsIfNeeded(DimensionCode: Text[20], DimensionDescription: Text[50], DimensionValueCode: Code[20], DimensionValueName: Text[50])
Parameters
| Name |
Type |
Description |
|
DimensionCode
|
Text[20]
|
|
|
DimensionDescription
|
Text[50]
|
|
|
DimensionValueCode
|
Code[20]
|
|
|
DimensionValueName
|
Text[50]
|
|
CreateBOMComponent
procedure CreateBOMComponent(ComponentItemNo: Code[20], Quantity: Decimal, Position: Code[10], BOMType: Option)
Parameters
| Name |
Type |
Description |
|
ComponentItemNo
|
Code[20]
|
|
|
Quantity
|
Decimal
|
|
|
Position
|
Code[10]
|
|
|
BOMType
|
Option
|
|
SetItemTrackingCode
procedure SetItemTrackingCode(TrackingCodeToSet: Code[10])
Parameters
| Name |
Type |
Description |
|
TrackingCodeToSet
|
Code[10]
|
|
SetBaseUnitOfMeasure
procedure SetBaseUnitOfMeasure(BaseUnitOfMeasureToSet: Code[10])
Parameters
| Name |
Type |
Description |
|
BaseUnitOfMeasureToSet
|
Code[10]
|
|
SetPurchUnitOfMeasure
procedure SetPurchUnitOfMeasure(PurchUnitOfMeasureToSet: Code[10])
Parameters
| Name |
Type |
Description |
|
PurchUnitOfMeasureToSet
|
Code[10]
|
|
SetItemDiscGroup
procedure SetItemDiscGroup(ItemDiscGroupToSet: Code[20])
Parameters
| Name |
Type |
Description |
|
ItemDiscGroupToSet
|
Code[20]
|
|
SetTariffNo
procedure SetTariffNo(TariffNoToSet: Code[20])
Parameters
| Name |
Type |
Description |
|
TariffNoToSet
|
Code[20]
|
|
SetCostingMethod
procedure SetCostingMethod(CostingMethodToSet: Option)
Parameters
| Name |
Type |
Description |
|
CostingMethodToSet
|
Option
|
|
SetUnitCost
procedure SetUnitCost(UnitCostToSet: Decimal)
Parameters
| Name |
Type |
Description |
|
UnitCostToSet
|
Decimal
|
|
SetStandardCost
procedure SetStandardCost(StandardCostToSet: Decimal)
Parameters
| Name |
Type |
Description |
|
StandardCostToSet
|
Decimal
|
|
SetVendorItemNo
procedure SetVendorItemNo(VendorItemNoToSet: Text[20])
Parameters
| Name |
Type |
Description |
|
VendorItemNoToSet
|
Text[20]
|
|
SetNetWeight
procedure SetNetWeight(NetWeightToSet: Decimal)
Parameters
| Name |
Type |
Description |
|
NetWeightToSet
|
Decimal
|
|
SetUnitVolume
procedure SetUnitVolume(UnitVolumeToSet: Decimal)
Parameters
| Name |
Type |
Description |
|
UnitVolumeToSet
|
Decimal
|
|
SetBlocked
procedure SetBlocked(BlockedToSet: Boolean)
Parameters
| Name |
Type |
Description |
|
BlockedToSet
|
Boolean
|
|
SetStockoutWarning
procedure SetStockoutWarning(IsStockoutWarning: Boolean)
Parameters
| Name |
Type |
Description |
|
IsStockoutWarning
|
Boolean
|
|
SetPreventNegativeInventory
procedure SetPreventNegativeInventory(IsPreventNegativeInventory: Boolean)
Parameters
| Name |
Type |
Description |
|
IsPreventNegativeInventory
|
Boolean
|
|
SetReorderQuantity
procedure SetReorderQuantity(ReorderQuantityToSet: Decimal)
Parameters
| Name |
Type |
Description |
|
ReorderQuantityToSet
|
Decimal
|
|
SetAlternativeItemNo
procedure SetAlternativeItemNo(AlternativeItemNoToSet: Code[20])
Parameters
| Name |
Type |
Description |
|
AlternativeItemNoToSet
|
Code[20]
|
|
SetVendorNo
procedure SetVendorNo(VendorNoToSet: Code[20]): Boolean
Parameters
| Name |
Type |
Description |
|
VendorNoToSet
|
Code[20]
|
|
Returns
SetUnitPrice
procedure SetUnitPrice(UnitPriceToSet: Decimal)
Parameters
| Name |
Type |
Description |
|
UnitPriceToSet
|
Decimal
|
|
SetUnitListPrice
procedure SetUnitListPrice(UnitListPriceToSet: Decimal)
Parameters
| Name |
Type |
Description |
|
UnitListPriceToSet
|
Decimal
|
|
SetLastDateModified
procedure SetLastDateModified(LastDateModifiedToSet: Date)
Parameters
| Name |
Type |
Description |
|
LastDateModifiedToSet
|
Date
|
|
SetLastModifiedDateTime
procedure SetLastModifiedDateTime(LastModifiedDateTimeToSet: DateTime)
Parameters
| Name |
Type |
Description |
|
LastModifiedDateTimeToSet
|
DateTime
|
|
CreateCustomerPriceGroupIfNeeded
procedure CreateCustomerPriceGroupIfNeeded(CodeToSet: Code[10], DescriptionToSet: Text[50], PriceIncludesVatToSet: Boolean): Code[10]
Parameters
| Name |
Type |
Description |
|
CodeToSet
|
Code[10]
|
|
|
DescriptionToSet
|
Text[50]
|
|
|
PriceIncludesVatToSet
|
Boolean
|
|
Returns
| Type |
Description |
|
Code[10]
|
|
SetInventoryPostingSetupInventoryAccount
procedure SetInventoryPostingSetupInventoryAccount(InventoryPostingGroupCode: Code[20], LocationCode: Code[10], InventoryAccountCode: Code[20])
Parameters
| Name |
Type |
Description |
|
InventoryPostingGroupCode
|
Code[20]
|
|
|
LocationCode
|
Code[10]
|
|
|
InventoryAccountCode
|
Code[20]
|
|
SetGeneralPostingSetupInventoryAdjmntAccount
procedure SetGeneralPostingSetupInventoryAdjmntAccount(GeneralProdPostingGroupCode: Code[20], GeneralBusPostingGroupCode: Code[10], InventoryAdjmntAccountCode: Code[20])
Parameters
| Name |
Type |
Description |
|
GeneralProdPostingGroupCode
|
Code[20]
|
|
|
GeneralBusPostingGroupCode
|
Code[10]
|
|
|
InventoryAdjmntAccountCode
|
Code[20]
|
|
SetInventoryPostingGroup
procedure SetInventoryPostingGroup(InventoryPostingGroupCode: Code[20]): Boolean
Parameters
| Name |
Type |
Description |
|
InventoryPostingGroupCode
|
Code[20]
|
|
Returns
SetGeneralProductPostingGroup
procedure SetGeneralProductPostingGroup(GenProductPostingGroupCode: Code[20]): Boolean
Parameters
| Name |
Type |
Description |
|
GenProductPostingGroupCode
|
Code[20]
|
|
Returns
SetSearchDescription
procedure SetSearchDescription(SearchDescriptionToSet: Code[50])
Parameters
| Name |
Type |
Description |
|
SearchDescriptionToSet
|
Code[50]
|
|
Events
OnMigrateItem
[IntegrationEvent(True,False)]
local procedure OnMigrateItem(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemPrice
[IntegrationEvent(True,False)]
local procedure OnMigrateItemPrice(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemSalesLineDiscount
[IntegrationEvent(True,False)]
local procedure OnMigrateItemSalesLineDiscount(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemTrackingCode
[IntegrationEvent(True,False)]
local procedure OnMigrateItemTrackingCode(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateCostingMethod
[IntegrationEvent(True,False)]
local procedure OnMigrateCostingMethod(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemUnitOfMeasure
[IntegrationEvent(True,False)]
local procedure OnMigrateItemUnitOfMeasure(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemDiscountGroup
[IntegrationEvent(True,False)]
local procedure OnMigrateItemDiscountGroup(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemTariffNo
[IntegrationEvent(True,False)]
local procedure OnMigrateItemTariffNo(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemDimensions
[IntegrationEvent(True,False)]
local procedure OnMigrateItemDimensions(RecordIdToMigrate: RecordId)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
OnMigrateItemPostingGroups
[IntegrationEvent(True,False)]
local procedure OnMigrateItemPostingGroups(RecordIdToMigrate: RecordId, ChartOfAccountsMigrated: Boolean)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
|
ChartOfAccountsMigrated
|
Boolean
|
|
OnMigrateInventoryTransactions
[IntegrationEvent(True,False)]
local procedure OnMigrateInventoryTransactions(RecordIdToMigrate: RecordId, ChartOfAccountsMigrated: Boolean)
Parameters
| Name |
Type |
Description |
|
RecordIdToMigrate
|
RecordId
|
|
|
ChartOfAccountsMigrated
|
Boolean
|
|
See also