|
|
发表于 2012/12/4 10:40:57
|
显示全部楼层
可以参见视图FS_MultiLevelBillAll,将脚本最后函数FS_MultiLevelBill中的参数%替换成你需要的那个父项物料即可,该脚本能获取到完整的该物料BOM清单
SELECT TopLevelItemNumber, ParentItemNumber, ParentItemDescription, ParentItemUM, ParentItemRevision, ParentItemMakeBuyCode, ParentItemType,
ParentItemStatus, ParentItemPlanningPolicy, ParentItemRunLeadTimeDays, ParentItemFixedLeadTimeDays, ParentItemInspectionLeadTimeDays,
ParentItemLotSizeQuantity, ParentItemDrawingNumber, ParentItemClass1, ParentItemClass2, ParentItemClass3, ParentItemClass4, ParentItemClass5,
ParentItemClass6, ParentItemClass7, ParentItemClass8, ParentItemGroupTechnologyCode, ParentItemFamilyItemNumber, ParentItemFamilySubgroup,
ParentItemVATProductCode, ComponentItemNumber, ComponentItemDescription, ComponentItemUM, ComponentItemPlanner, ComponentItemBuyer,
ComponentItemMakeBuyCode, ComponentItemRunLeadTimeDays, ComponentItemFixedLeadTimeDays, ComponentItemInspectionLeadTimeDays,
ComponentItemYieldPercentage, ComponentItemDecimalPrecision, PointOfUseID, OperationSequenceNumber, ComponentType, QuantityType,
RequiredQuantity, InEffectivityDate, OutEffectivityDate, LeadTimeOffsetDays, ScrapPercent, InRevision, OutRevision, ConfigurationGroup,
ConfigurationType, ConfigurationQuantity, BackflushStockroom, BackflushBin, IsScrapBackflushed, IsModuleOrNormal, TextID, BillLevel, BillLevelSort,
BillLevelQuantity, BillLevelConfigurationQuantity, ParentItemProductLineKey, ComponentItemProductLineKey, TopLevelItemKey, ParentItemKey,
ComponentItemKey, ConfigurationItemKey, BillOfMaterialRowVersion, BillOfMaterialKey
FROM dbo.FS_MultiLevelBill('%') AS T1 |
|