ReqPlannedOrder.insertFromForm Method [AX 2012]

Fills in the ID of the order and updates various fields when a planned order is inserted from the planned orders form.

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
          public void insertFromForm(
            ReqPO _reqPO, 
            InventDim _inventDim, 
           [InventLocationId _fromInventLocationId, 
            InventLocationId _toInventLocationId, 
            boolean _runExplosion, 
            boolean _recalculateBomLevels])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void insertFromForm(
            ReqPO _reqPO, 
            InventDim _inventDim, 
           [InventLocationId _fromInventLocationId, 
            InventLocationId _toInventLocationId, 
            boolean _runExplosion, 
            boolean _recalculateBomLevels])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void insertFromForm(
            ReqPO _reqPO, 
            InventDim _inventDim, 
           [InventLocationId _fromInventLocationId, 
            InventLocationId _toInventLocationId, 
            boolean _runExplosion])

  Microsoft Dynamics AX 2012 (FPK)
          public void insertFromForm(
            ReqPO _reqPO, 
            InventDim _inventDim, 
           [InventLocationId _fromInventLocationId, 
            InventLocationId _toInventLocationId, 
            boolean _runExplosion])

  Microsoft Dynamics AX 2012 (SYS)
          public void insertFromForm(
            ReqPO _reqPO, 
            InventDim _inventDim, 
           [InventLocationId _fromInventLocationId, 
            InventLocationId _toInventLocationId, 
            boolean _runExplosion])

Run On

Server

Parameters

  • _reqPO
    Type: ReqPO Table
    The ReqPO record with the planned order data.
  • _inventDim
    Type: InventDim Table
    The inventory dimensions for the planned order.
  • _runExplosion
    Type: boolean
    Determines whether explosion should be performed after order creation; optional.
  • _recalculateBomLevels
    Type: boolean
    Determines if BOM levels should be recalculated; optional.

Exceptions

Exception Condition
Error

An exception is thrown if the validation of the planned order failed.

See Also

Reference

ReqPlannedOrder Class