Share via


SalesATPCalculation.calculateOnHand Method [AX 2012]

Calculates on hand inventory quantity for all records in specified _salesTmpATP parameter table buffer.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          protected void calculateOnHand(
            SalesTmpATP _salesTmpATP, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParm)

  Microsoft Dynamics AX 2012 R2 (SYS)
          protected void calculateOnHand(
            SalesTmpATP _salesTmpATP, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParm)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          protected void calculateOnHand(
            SalesTmpATP _salesTmpATP, 
            InventDim _inventDim, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParm)

  Microsoft Dynamics AX 2012 (FPK)
          protected void calculateOnHand(
            SalesTmpATP _salesTmpATP, 
            InventDim _inventDim, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParm)

  Microsoft Dynamics AX 2012 (SYS)
          protected void calculateOnHand(
            SalesTmpATP _salesTmpATP, 
            InventDim _inventDim, 
            InventDim _inventDimCriteria, 
            InventDimParm _inventDimParm)

Run On

Server

Parameters

  • _salesTmpATP
    Type: SalesTmpATP Table
    A table buffer for which on hand inventory quantity will be calculated.
  • _inventDimCriteria
    Type: InventDim Table
    Inventory dimensions criteria that is used to calculate on-hand inventory quantity.
  • _inventDimParm
    Type: InventDimParm Table
    Inventory dimension parameters that is used to calculate on-hand inventory quantity.

Remarks

In order to reflect an actual on hand inventory level, this method should be called after both actual and planned orders have been processed for every record in the specified _salesTmpATP parameter table buffer.

See Also

Reference

SalesATPCalculation Class