Friday, May 14, 2010

Finding OnHand Info of an Item

 OnHand Info of an Item

static void FindingOnHandInfo(Args _args)
{
    ItemId itemId;
    InventDim inventDimCriteria;
    InventDimParm inventDimParm;
    InventOnhand inventOnhand = new InventOnhand();
    ;
    // Specify the item to get onhand info on
    itemId = "1001";
    // Specify the dimensions you want
    // to filter the onhand info on
    inventDimCriteria.InventColorId = "02";
    // Set the parameter flags active
    // according to which of the dimensions
    // in inventDimCriteria that are set
    inventDimParm.initFromInventDim(inventDimCriteria);
    // Specify the inventDim,
    // inventDimParm and itemId
    inventOnhand.parmInventDim(inventDimCriteria);
    inventOnhand.parmInventDimParm(inventDimParm);
    inventOnhand.parmItemId(itemId);
    // Retrieve the onhand info
    info(strfmt("Available Physical: %1",
    inventOnhand.availPhysical()));
    info(strfmt("On order: %1",inventOnhand.onOrder()));
}





The Output of the following Job will be as follows




Only one Post today Coz was really busy with the work   :(
But Still keep on checking the blogs many more to come

Till then keep on DAXing.......Happy DAX-ing     :)
 and yes Happy Weekend too...........................

No comments:

Post a Comment