{"title":"Table 5820 Cost Element Buffer, procedures","url":"https://jonas-paprotka.de/ref/table/5820-cost-element-buffer/procedures/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":5820,"name":"Cost Element Buffer","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/table/5820-cost-element-buffer/","json":"https://jonas-paprotka.de/ref/table/5820-cost-element-buffer.json"},"aspect":"procedures","total":18,"rows":[{"name":"Initialize","sig":"(Boolean)","named":"(KeepRoundingResidual: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(KeepRoundingResidual: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"AddActualCost","sig":"(Option, Option, Decimal, Decimal)","named":"(NewType: Option; NewVarianceType: Option; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Unused","tag":"24.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":24,"spans":[{"from":17,"to":23,"named":"(NewType: Option; NewVarianceType: Option; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":24,"to":26,"named":"(NewType: Option; NewVarianceType: Option; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Unused","tag":"24.0"}}]},{"name":"AddActualCostElement","sig":"(Enum Cost Entry Type, Enum Cost Variance Type, Decimal, Decimal)","named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use AddActualCostElement(NewEntryType: Enum \"Cost Entry Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.","tag":"24.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":24,"spans":[{"from":17,"to":23,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":24,"to":26,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use AddActualCostElement(NewEntryType: Enum \"Cost Entry Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.","tag":"24.0"}}]},{"name":"AddExpectedCost","sig":"(Option, Option, Decimal, Decimal)","named":"(NewType: Option; NewVarianceType: Option; NewExpectedCost: Decimal; NewExpectedCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by AddExpectedCostElement();","tag":"17.0"},"range":"17-19","first":17,"last":19,"obsoleteSince":17,"spans":[{"from":17,"to":19,"named":"(NewType: Option; NewVarianceType: Option; NewExpectedCost: Decimal; NewExpectedCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by AddExpectedCostElement();","tag":"17.0"}}]},{"name":"AddExpectedCostElement","sig":"(Enum Cost Entry Type, Enum Cost Variance Type, Decimal, Decimal)","named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\"; NewExpectedCost: Decimal; NewExpectedCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use AddExpectedCostElement(NewEntryType: Enum \"Cost Entry Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.","tag":"24.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":24,"spans":[{"from":17,"to":23,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\"; NewExpectedCost: Decimal; NewExpectedCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null},{"from":24,"to":26,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\"; NewExpectedCost: Decimal; NewExpectedCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use AddExpectedCostElement(NewEntryType: Enum \"Cost Entry Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal) instead.","tag":"24.0"}}]},{"name":"RoundActualCost","sig":"(Decimal, Decimal, Decimal)","named":"(ShareOfTotalCost: Decimal; AmtRndgPrec: Decimal; AmtRndgPrecACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(ShareOfTotalCost: Decimal; AmtRndgPrec: Decimal; AmtRndgPrecACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ExcludeEntryFromAvgCostCalc","sig":"(Record Value Entry)","named":"(ValueEntry: Record \"Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(ValueEntry: Record \"Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ExcludeBufFromAvgCostCalc","sig":"(Record Inventory Adjustment Buffer)","named":"(InvtAdjmtBuffer: Record \"Inventory Adjustment Buffer\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(InvtAdjmtBuffer: Record \"Inventory Adjustment Buffer\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"Retrieve","sig":"(Option, Option)","named":"(NewType: Option; NewVarianceType: Option)","returns":"Boolean","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by GetElement().","tag":"17.0"},"range":"17-19","first":17,"last":19,"obsoleteSince":17,"spans":[{"from":17,"to":19,"named":"(NewType: Option; NewVarianceType: Option)","returns":"Boolean","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Replaced by GetElement().","tag":"17.0"}}]},{"name":"GetElement","sig":"(Enum Cost Entry Type, Enum Cost Variance Type)","named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use GetElement(NewEntryType: Enum \"Cost Entry Type\") instead.","tag":"24.0"},"range":"17-26","first":17,"last":26,"obsoleteSince":24,"spans":[{"from":17,"to":23,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null},{"from":24,"to":26,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewVarianceType: Enum \"Cost Variance Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"Use GetElement(NewEntryType: Enum \"Cost Entry Type\") instead.","tag":"24.0"}}]},{"name":"DeductOutbndValueEntryFromBuf","sig":"(Record Value Entry, Record Cost Element Buffer, Boolean)","named":"(OutbndValueEntry: Record \"Value Entry\"; CostElementBuf: Record \"Cost Element Buffer\"; IsAvgCostCalcTypeItem: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(OutbndValueEntry: Record \"Value Entry\"; CostElementBuf: Record \"Cost Element Buffer\"; IsAvgCostCalcTypeItem: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateAvgCostBuffer","sig":"(Record Cost Element Buffer, Integer)","named":"(CostElementBuf: Record \"Cost Element Buffer\"; LastValidEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(CostElementBuf: Record \"Cost Element Buffer\"; LastValidEntryNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateCostElementBuffer","sig":"(Record Cost Element Buffer)","named":"(AvgCostBuf: Record \"Cost Element Buffer\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(AvgCostBuf: Record \"Cost Element Buffer\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"AddActualCostElement","sig":"(Enum Cost Entry Type, Decimal, Decimal)","named":"(NewEntryType: Enum \"Cost Entry Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewActualCost: Decimal; NewActualCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"AddActualCostElement","sig":"(Enum Cost Entry Type, Record Value Entry)","named":"(NewEntryType: Enum \"Cost Entry Type\"; ValueEntry: Record \"Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(NewEntryType: Enum \"Cost Entry Type\"; ValueEntry: Record \"Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"AddExpectedCostElement","sig":"(Enum Cost Entry Type, Decimal, Decimal)","named":"(NewEntryType: Enum \"Cost Entry Type\"; NewExpectedCost: Decimal; NewExpectedCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(NewEntryType: Enum \"Cost Entry Type\"; NewExpectedCost: Decimal; NewExpectedCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"AddExpectedCostElement","sig":"(Enum Cost Entry Type, Record Value Entry)","named":"(NewEntryType: Enum \"Cost Entry Type\"; ValueEntry: Record \"Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(NewEntryType: Enum \"Cost Entry Type\"; ValueEntry: Record \"Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetElement","sig":"(Enum Cost Entry Type)","named":"(NewEntryType: Enum \"Cost Entry Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(NewEntryType: Enum \"Cost Entry Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]}]}